We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1532d9e commit 1f91319Copy full SHA for 1f91319
package.json
@@ -6,8 +6,8 @@
6
"type": "module",
7
"scripts": {
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",
+ "build:js": "npm_config_yes=true ipjs build --tests --main",
+ "build:types": "cp tsconfig.json dist && cp -a src vendor dist/ && cd dist && tsc --emitDeclarationOnly --declarationDir types",
11
"build:vendor": "npm run build:vendor:varint && npm run build:vendor:base-x",
12
"build:vendor:varint": "npx brrp -x varint > vendor/varint.js",
13
"build:vendor:base-x": "npx brrp -x @multiformats/base-x > vendor/base-x.js",
@@ -120,6 +120,9 @@
120
"*": {
121
"*": [
122
"types/*"
123
+ ],
124
+ "cjs/src/index.js": [
125
+ "types/index.d.ts"
126
]
127
}
128
0 commit comments