Skip to content

Commit

Permalink
refactor: add a source map, update pkg exports
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Oct 7, 2024
1 parent d126f1f commit 0232cf2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,23 @@
"author": "Filip Skokan <panva.ip@gmail.com>",
"sideEffects": false,
"type": "module",
"exports": {
".": {
"types": "./build/index.d.ts",
"default": "./build/index.js"
},
"./package.json": "./package.json"
},
"main": "./build/index.js",
"types": "./build/index.d.ts",
"files": [
"build/index.js",
"build/index.js.map",
"build/index.d.ts"
],
"scripts": {
"_format": "find src test tap examples conformance -type f -name '*.ts' -o -name '*.mjs' -o -name '*.cjs' | xargs prettier",
"build": "rm -rf build && tsc && tsc --declaration true --emitDeclarationOnly true --removeComments false && tsc -p test && tsc -p examples && tsc -p conformance && tsc -p tap && npx --yes jsr publish --dry-run --allow-dirty",
"build": "rm -rf build && tsc --sourceMap && tsc --declaration true --emitDeclarationOnly true --removeComments false && tsc -p test && tsc -p examples && tsc -p conformance && tsc -p tap && npx --yes jsr publish --dry-run --allow-dirty",
"conformance": "bash -c 'source .node_flags.sh && ava --config conformance/ava.config.ts'",
"docs": "patch-package && typedoc",
"format": "npm run _format -- --write",
Expand Down

0 comments on commit 0232cf2

Please sign in to comment.