Skip to content

Commit

Permalink
feat!: publish with "main", distribute src & TS map to src
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Mar 30, 2021
1 parent 1532d9e commit 1f91319
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"type": "module",
"scripts": {
"build": "npm run build:js && npm run build:types",
"build:js": "npm_config_yes=true ipjs build --tests",
"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",
"build:vendor": "npm run build:vendor:varint && npm run build:vendor:base-x",
"build:vendor:varint": "npx brrp -x varint > vendor/varint.js",
"build:vendor:base-x": "npx brrp -x @multiformats/base-x > vendor/base-x.js",
Expand Down Expand Up @@ -120,6 +120,9 @@
"*": {
"*": [
"types/*"
],
"cjs/src/index.js": [
"types/index.d.ts"
]
}
}
Expand Down

0 comments on commit 1f91319

Please sign in to comment.