Skip to content

Commit

Permalink
build(pkg): fix exports / imports
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <[email protected]>
  • Loading branch information
unicornware committed Sep 9, 2024
1 parent 50eb1e4 commit 16a0aef
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
16 changes: 2 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,29 +38,17 @@
"dist"
],
"exports": {
".": {
"vitest": null,
"default": "./dist/index.mjs"
},
".": "./dist/index.mjs",
"./package.json": "./package.json"
},
"imports": {
"#format-message": {
"ts-node": "./src/internal/format-message.development.ts",
"development": "./dist/internal/format-message.development.mjs",
"production": "./dist/internal/format-message.mjs",
"default": "./dist/internal/format-message.mjs"
},
"#hide-stack-frames": {
"ts-node": "./src/internal/hide-stack-frames.ts",
"default": "./dist/internal/hide-stack-frames.mjs"
},
"#k-is-node-error": {
"ts-node": "./src/internal/k-is-node-error.ts",
"default": "./dist/internal/k-is-node-error.mjs"
},
"#k-is-node-error": "./dist/internal/k-is-node-error.mjs",
"#stack-trace": {
"ts-node": "./src/internal/stack-trace.ts",
"browser": "./dist/internal/stack-trace.browser.mjs",
"node": "./dist/internal/stack-trace.mjs",
"default": "./dist/internal/stack-trace.mjs"
Expand Down
3 changes: 3 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"noEmitOnError": true,
"paths": {
"#e": ["src/e"],
"#format-message": ["#format-message"],
"#k-is-node-error": ["#k-is-node-error"],
"#stack-trace": ["#stack-trace"],
"#src/*": ["src/*"]
},
"skipLibCheck": false,
Expand Down
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
"paths": {
"#e": ["src/e"],
"#fixtures/*": ["__fixtures__/*"],
"#format-message": ["src/internal/format-message.development.ts"],
"#k-is-node-error": ["src/internal/k-is-node-error.ts"],
"#src/*": ["src/*"],
"#stack-trace": ["src/internal/stack-trace.ts"],
"#tests/*": ["__tests__/*"]
},
"preserveConstEnums": true,
Expand Down

0 comments on commit 16a0aef

Please sign in to comment.