|
8 | 8 | "scripts": {
|
9 | 9 | "build": "npm run build:js && npm run build:types",
|
10 | 10 | "build:js": "npm_config_yes=true ipjs build --tests --main",
|
11 |
| - "build:types": "cp tsconfig.json dist && cp -a src vendor dist/ && cd dist && tsc --emitDeclarationOnly --declarationDir types", |
| 11 | + "build:types": "cp tsconfig.json dist && cp -a src vendor dist/ && cd dist && tsc --build", |
12 | 12 | "build:vendor": "npm run build:vendor:varint && npm run build:vendor:base-x",
|
13 | 13 | "build:vendor:varint": "npx brrp -x varint > vendor/varint.js",
|
14 | 14 | "build:vendor:base-x": "npx brrp -x @multiformats/base-x > vendor/base-x.js",
|
15 | 15 | "publish": "npm_config_yes=true ipjs publish",
|
16 | 16 | "lint": "standard",
|
17 |
| - "check": "tsc --noEmit --noErrorTruncation", |
| 17 | + "check": "tsc --build --noErrorTruncation", |
18 | 18 | "test:cjs": "npm run build:js && mocha dist/cjs/node-test/test-*.js && npm run test:cjs:browser",
|
19 | 19 | "test:node": "hundreds mocha test/test-*.js",
|
20 | 20 | "test:cjs:browser": "polendina --page --worker --serviceworker --cleanup dist/cjs/browser-test/test-*.js",
|
21 | 21 | "test:ts": "npm run build:types && npm run test --prefix test/ts-use",
|
22 | 22 | "test": "npm run lint && npm run test:node && npm run test:cjs && npm run test:ts",
|
23 | 23 | "test:node-v12": "mocha test/test-*.js && npm run test:cjs",
|
24 |
| - "coverage": "c8 --reporter=html mocha test/test-*.js && npm_config_yes=true npx st -d coverage -p 8080" |
| 24 | + "coverage": "c8 --reporter=html mocha test/test-*.js && npm_config_yes=true npx st -d coverage -p 8080", |
| 25 | + "prepare": "tsc --build" |
25 | 26 | },
|
26 | 27 | "c8": {
|
27 | 28 | "exclude": [
|
|
119 | 120 | "homepage": "https://github.com/multiformats/js-multiformats#readme",
|
120 | 121 | "typesVersions": {
|
121 | 122 | "*": {
|
122 |
| - "multiformats/*": [ |
| 123 | + "*": [ |
| 124 | + "types/*" |
| 125 | + ], |
| 126 | + "types/*": [ |
123 | 127 | "types/*"
|
124 | 128 | ]
|
125 | 129 | }
|
|
0 commit comments