File tree 2 files changed +19
-5
lines changed
2 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 6
6
"bugs" : {
7
7
"url" : " https://github.com/gatsbyjs/gatsby/issues"
8
8
},
9
- "source" : " src/index.js" ,
10
9
"main" : " dist/index.js" ,
11
10
"module" : " dist/index.modern.mjs" ,
12
11
"types" : " index.d.ts" ,
16
15
],
17
16
"sideEffects" : false ,
18
17
"scripts" : {
19
- "build" : " microbundle -f cjs,modern --jsx React.createElement --generateTypes false" ,
20
- "watch" : " npm run build watch --no-compress" ,
18
+ "build" : " npm-run-all --npm-path npm -s build:cjs build:esm" ,
19
+ "build:cjs" : " microbundle -f cjs --jsx React.createElement --generateTypes false -i src/index-cjs.js -o dist/index.js" ,
20
+ "build:esm" : " microbundle -f modern --jsx React.createElement --generateTypes false -o dist/index.mjs" ,
21
+ "watch" : " npm-run-all --npm-path npm -p watch:cjs watch:esm" ,
22
+ "watch:cjs" : " npm run build:cjs watch --no-compress" ,
23
+ "watch:esm" : " npm run build:esm watch --no-compress" ,
21
24
"prepare" : " cross-env NODE_ENV=production npm run clean && npm run build" ,
22
25
"clean" : " del-cli dist/*"
23
26
},
30
33
"@testing-library/react" : " ^11.2.7" ,
31
34
"cross-env" : " ^7.0.3" ,
32
35
"del-cli" : " ^5.0.0" ,
33
- "microbundle" : " ^0.15.0"
36
+ "microbundle" : " ^0.15.0" ,
37
+ "npm-run-all" : " ^4.1.5"
34
38
},
35
39
"peerDependencies" : {
36
40
"@gatsbyjs/reach-router" : " ^1.3.5" ,
50
54
"engines" : {
51
55
"node" : " >=14.15.0"
52
56
}
53
- }
57
+ }
Original file line number Diff line number Diff line change
1
+ import * as Link from "./index.js"
2
+
3
+ module . exports = Link . default
4
+
5
+ Object . getOwnPropertyNames ( Link ) . forEach ( key => {
6
+ Object . defineProperty ( module . exports , key , {
7
+ value : Link [ key ] ,
8
+ enumerable : true ,
9
+ } )
10
+ } )
You can’t perform that action at this time.
0 commit comments