File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
dist /*
2
2
node_modules /*
3
+ legacy /index *
Original file line number Diff line number Diff line change @@ -16,7 +16,4 @@ npm-debug.log*
16
16
coverage
17
17
18
18
# legacy builds
19
- /legacy /index.cjs
20
- /legacy /index.cjs.map
21
- /legacy /index.js
22
- /legacy /index.js.map
19
+ /legacy /index *
Original file line number Diff line number Diff line change 5
5
"module" : " ./legacy/index.js"
6
6
},
7
7
"scripts" : {
8
- "unit" : " jest -c jest.config.json"
8
+ "unit" : " jest -c jest.config.json" ,
9
+ "emitDeclarations" : " tsc index.js --allowJs --skipLibCheck --declaration --emitDeclarationOnly --declarationMap"
9
10
},
10
11
"devDependencies" : {
11
12
"@babel/core" : " 7.17.9" ,
Original file line number Diff line number Diff line change 52
52
"scripts" : {
53
53
"prepublishOnly" : " pnpm test && pnpm build && del ./package && clean-publish" ,
54
54
"postpublish" : " del ./package" ,
55
- "emitDeclarations" : " tsc --emitDeclarationOnly" ,
55
+ "emitDeclarations:legacy" : " cd legacy && pnpm emitDeclarations" ,
56
+ "emitDeclarations:base" : " tsc --emitDeclarationOnly" ,
57
+ "emitDeclarations" : " pnpm emitDeclarations:base && pnpm emitDeclarations:legacy" ,
56
58
"build" : " rollup -c & pnpm emitDeclarations" ,
57
59
"unit" : " pnpm unit:base && pnpm unit:legacy" ,
58
60
"unit:base" : " jest -c jest.config.json" ,
You can’t perform that action at this time.
0 commit comments