File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 6
6
"type" : " module" ,
7
7
"scripts" : {
8
8
"build" : " npm run build:js && npm run build:types" ,
9
- "build:js" : " npm_config_yes=true ipjs build --tests" ,
10
- "build:types" : " tsc --emitDeclarationOnly --declarationDir dist/ types" ,
9
+ "build:js" : " npm_config_yes=true ipjs build --tests --main " ,
10
+ "build:types" : " cp tsconfig.json dist && cp -a src vendor dist/ && cd dist && tsc --emitDeclarationOnly --declarationDir types" ,
11
11
"build:vendor" : " npm run build:vendor:varint && npm run build:vendor:base-x" ,
12
12
"build:vendor:varint" : " npx brrp -x varint > vendor/varint.js" ,
13
13
"build:vendor:base-x" : " npx brrp -x @multiformats/base-x > vendor/base-x.js" ,
120
120
"*" : {
121
121
"*" : [
122
122
" types/*"
123
+ ],
124
+ "cjs/src/index.js" : [
125
+ " types/index.d.ts"
123
126
]
124
127
}
125
128
}
You can’t perform that action at this time.
0 commit comments