Skip to content

Commit 218adcf

Browse files
feat: changed moduleResolution to NodeNext in TSConfig (#614)
## PR Checklist - [x] Addresses an existing open issue: fixes #610 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/template-typescript-node-package/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/template-typescript-node-package/blob/main/.github/CONTRIBUTING.md) were taken ## Overview Also adjusts string casing to PascalCase, since that's what the autocomplete gives.
1 parent a80d922 commit 218adcf

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/hydrate/steps/writing/creation/rootFiles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
292292
declaration: true,
293293
declarationMap: true,
294294
esModuleInterop: true,
295-
module: "esnext",
296-
moduleResolution: "node",
295+
module: "ESNext",
296+
moduleResolution: "NodeNext",
297297
outDir: "lib",
298298
resolveJsonModule: true,
299299
skipLibCheck: true,

src/hydrate/values/readAuthorIfExists.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { PartialPackageData } from "./types";
1+
import type { PartialPackageData } from "./types.js";
22

33
import { getNpmAuthor } from "../../shared/getNpmAuthor.js";
44

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"declaration": true,
44
"declarationMap": true,
55
"esModuleInterop": true,
6-
"module": "esnext",
7-
"moduleResolution": "node",
6+
"module": "ESNext",
7+
"moduleResolution": "NodeNext",
88
"outDir": "lib",
99
"resolveJsonModule": true,
1010
"skipLibCheck": true,

0 commit comments

Comments
 (0)