|
222 | 222 | "dist/**/*.js",
|
223 | 223 | "dist/types/**/*.d.ts",
|
224 | 224 | "!dist/node/webcrypto/**/*",
|
225 |
| - "!dist/types/**/*.i.d.ts", |
226 | 225 | "!dist/types/runtime/*",
|
227 |
| - "!dist/types/lib/*", |
228 |
| - "dist/types/lib/jwt_producer.d.ts" |
| 226 | + "!dist/types/lib/*" |
229 | 227 | ],
|
230 | 228 | "scripts": {
|
231 | 229 | "build": "tsc",
|
|
238 | 236 | "build-fast:node-webcrypto-cjs": "npm run-script runtime-node-webcrypto && npm run-script -s esbuild-find | xargs -0 esbuild --log-level=warning --platform=node --target=esnext --outdir=dist/node/webcrypto/cjs --format=cjs",
|
239 | 237 | "build-fast:node-webcrypto-esm": "npm run-script runtime-node-webcrypto && npm run-script -s esbuild-find | xargs -0 esbuild --log-level=warning --platform=node --target=esnext --outdir=dist/node/webcrypto/esm --format=esm && echo '{\"type\": \"module\"}'> dist/node/webcrypto/esm/package.json",
|
240 | 238 | "build:browser": "run-s runtime-browser 'build -- -p ./tsconfig/browser.json' && echo '{\"type\": \"module\"}'> dist/browser/package.json",
|
241 |
| - "build:deno": "npm run-script runtime-deno && find dist/deno -name '*.ts' -type f -print0 | xargs -0 sed -i '' -e \"s/@deno\\-expect\\-error/@ts-ignore/g\" -e \"s/\\.js'/.ts'/g\" -e \"s/\\.d'/.d.ts'/g\" && echo 'export type KeyObject = CryptoKey' > dist/deno/types.d.ts && tail -n +5 src/types.d.ts >> dist/deno/types.d.ts", |
| 239 | + "build:deno": "npm run-script runtime-deno && find dist/deno -name '*.ts' -type f -print0 | xargs -0 sed -i '' -e \"s/@deno\\-expect\\-error/@ts-ignore/g\" -e \"s/\\.js'/.ts'/g\" -e \"s/\\.d'/.d.ts'/g\"", |
242 | 240 | "build:types": "npm run-script build -- -p ./tsconfig/types.json && cd src && find . -name '*.d.ts' -maxdepth 2 -type f -exec gcp --parents \"{}\" ../dist/types \\; && cd .. && node ./tools/strip-dts-comments && run-s -s types:find | xargs -0 sed -i '' -e \"s/\\.js'/'/g\" -e \"s/\\.d'/'/g\"",
|
243 | 241 | "build:node-cjs": "run-s runtime-node 'build -- -p ./tsconfig/node-cjs.json'",
|
244 | 242 | "build:node-esm": "run-s runtime-node 'build -- -p ./tsconfig/node-esm.json' && echo '{\"type\": \"module\"}'> dist/node/esm/package.json",
|
|
263 | 261 | "runtime:refs": "run-s -s runtime:find | xargs -0 sed -i '' -e \"s/'\\.\\.\\//'\\.\\//g\" -e \"s/'\\.\\/\\.\\./'../g\"",
|
264 | 262 | "test": "npm run-script test-cjs && ava",
|
265 | 263 | "test-cloudflare-workers": "ava --timeout=5m --config ./test-cloudflare-workers.config.cjs",
|
266 |
| - "test-deno": "deno test --jobs --allow-net --allow-read test-deno", |
| 264 | + "test-deno": "deno test --reload --jobs --allow-net --allow-read test-deno", |
267 | 265 | "test-browsers": "find test-browser -type f -name '*.js' -print0 | xargs -0 npx esbuild --log-level=warning --outdir=dist-browser-tests --bundle && karma start",
|
268 | 266 | "test-cjs": "rm -rf test/cjs && find test -type f -name '*.mjs' -print0 | xargs -0 npx esbuild --log-level=warning --target=esnext --outdir=test/cjs --format=cjs",
|
269 | 267 | "test-cryptokey": "CRYPTOKEY=true npm test",
|
|
0 commit comments