Skip to content

Commit 81189c4

Browse files
committed
Use explicit imports of .ts files
1 parent 9d8a3af commit 81189c4

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

packages/multiply/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
}
2222
},
2323
"dependencies": {
24-
"@myrepo/sum": "workspace:^"
24+
"@myrepo/sum": "workspace:*"
2525
}
26-
}
26+
}

packages/multiply/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from "./multiply.js";
1+
export * from "./multiply.ts";

pnpm-lock.yaml

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

servers/nextjs-with-dependencies/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12-
"@myrepo/multiply": "workspace:^",
13-
"@myrepo/sum": "workspace:^",
12+
"@myrepo/multiply": "workspace:*",
13+
"@myrepo/sum": "workspace:*",
1414
"next": "15.1.6",
1515
"react": "^19.0.0",
1616
"react-dom": "^19.0.0"

tsconfig.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@
109109
"skipLibCheck": true /* Skip type checking all .d.ts files. */,
110110
"paths": {
111111
"@myrepo/*": ["./packages/*/src/index.ts"]
112-
}
112+
},
113+
"allowImportingTsExtensions": true,
114+
"rewriteRelativeImportExtensions": true
113115
},
114116
"exclude": [
115117
"node_modules",

0 commit comments

Comments
 (0)