Skip to content

Commit

Permalink
fix(template): Set scripts/ module resolution to match api/ (#11366)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe authored Aug 24, 2024
1 parent fadb9ef commit e8867e8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changesets/11366.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- fix(template): Set scripts/ module resolution to match api/ (#11366) by @Tobbe

Make the module resolution for `scripts/` be more predictable/stable, and match that of `api/`

See also https://github.com/redwoodjs/redwood/pull/11170
6 changes: 3 additions & 3 deletions __fixtures__/test-project/scripts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"noEmit": true,
"allowJs": true,
"esModuleInterop": true,
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"target": "ES2023",
"module": "Node16",
"moduleResolution": "Node16",
"paths": {
"$api/*": ["../api/*"],
"api/*": ["../api/*"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"compilerOptions": {
"noEmit": true,
"esModuleInterop": true,
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"target": "ES2023",
"module": "Node16",
"moduleResolution": "Node16",
"paths": {
"$api/*": ["../api/*"],
"api/*": ["../api/*"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"noEmit": true,
"allowJs": true,
"esModuleInterop": true,
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"target": "ES2023",
"module": "Node16",
"moduleResolution": "Node16",
"paths": {
"$api/*": ["../api/*"],
"api/*": ["../api/*"],
Expand Down

0 comments on commit e8867e8

Please sign in to comment.