Skip to content

Commit

Permalink
fix: resolve path alias in compiled js files (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
kieranroneill authored Apr 21, 2024
1 parent 8ae10f4 commit fed8ba7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
"node": ">=20.9.0"
},
"scripts": {
"build": "rm -rf dist && yarn build:declaration && yarn build:bundle",
"build": "rm -rf dist && yarn build:module && yarn build:bundle",
"build:bundle": "TS_NODE_PROJECT=\"tsconfig.webpack.json\" webpack",
"build:declaration": "tspc --build tsconfig.build.json --force",
"build:module": "tspc --build tsconfig.build.json --force",
"docs:build": "docusaurus build --out-dir .docs",
"docs:serve": "docusaurus serve --dir .docs --no-open",
"docs:start": "docusaurus start --no-open --port 8080",
Expand Down
5 changes: 5 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
"compilerOptions": {
"outDir": "dist",
"plugins": [
// resolve paths in .js files
{
"transform": "typescript-transform-paths"
},
// resolve paths in .d.ts files
{
"afterDeclarations": true,
"transform": "typescript-transform-paths"
Expand Down

0 comments on commit fed8ba7

Please sign in to comment.