File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ typings/
66
66
67
67
# build output
68
68
lib /
69
+ esm
69
70
70
71
.DS_Store
71
72
Original file line number Diff line number Diff line change 3
3
"version" : " 6.1.0" ,
4
4
"description" : " Collection of React Hooks" ,
5
5
"main" : " lib/index.js" ,
6
+ "module" : " lib/es/index.js" ,
6
7
"files" : [
7
- " lib/"
8
+ " lib/" ,
9
+ " esm/"
8
10
],
9
11
"types" : " lib/index.d.ts" ,
10
12
"typings" : " lib/index.d.ts" ,
11
13
"scripts" : {
12
14
"start" : " yarn storybook" ,
13
15
"test" : " echo hmm..." ,
14
- "build" : " tsc" ,
15
- "clean" : " rimraf lib storybook-static" ,
16
+ "build:cjs" : " tsc" ,
17
+ "build:es" : " tsc -m esNext --outDir esm" ,
18
+ "build" : " yarn build:cjs && yarn build:es" ,
19
+ "clean" : " rimraf lib storybook-static esm" ,
16
20
"storybook" : " start-storybook -p 6008" ,
17
21
"storybook:build" : " build-storybook" ,
18
22
"storybook:upload" : " gh-pages -d storybook-static" ,
You can’t perform that action at this time.
0 commit comments