Skip to content

Commit 4476440

Browse files
committed
fix: npm-app build to use relative paths for common module
- Install tsc-alias to resolve TypeScript path mappings to relative paths - Reorder build steps to copy dependencies before running tsc-alias - Ensures published npm package uses correct relative imports instead of module paths
1 parent 5c37b04 commit 4476440

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

bun.lock

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

npm-app/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
"commands": [
1919
"eslint src/index.ts",
2020
"tsc",
21-
"tsc-alias -p tsconfig.json",
2221
"mkdir -p dist/common",
2322
"cp -r ../common/dist/* dist/common",
2423
"mkdir -p dist/code-map",
2524
"cp -r ../packages/code-map/dist/* dist/code-map",
25+
"tsc-alias -p tsconfig.json",
2626
"mkdir -p dist/utils/__tests__",
2727
"cp -r src/utils/__tests__/*.txt dist/utils/__tests__"
2828
],

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"prettier": "3.3.2",
5656
"ts-node": "^10.9.2",
5757
"ts-pattern": "^5.5.0",
58+
"tsc-alias": "^1.8.16",
5859
"tsconfig-paths": "4.2.0",
5960
"types": "^0.1.1",
6061
"typescript": "5.5.4",

0 commit comments

Comments
 (0)