Skip to content

Commit 310e8c1

Browse files
committed
refactor: 💡 tweak tsconfig
1 parent 7fe105c commit 310e8c1

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎__tests__/unit/index.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { format } from "prettier";
22
import { describe, expect, it } from "vitest";
3-
import * as plugin from "../../src/index";
3+
import * as plugin from "../../src/index.js";
44

55
describe("index", () => {
66
it("without options", async () => {

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
},
1010
"packageManager": "pnpm@9.12.3",
1111
"main": "dist/src/index.js",
12-
"files": ["dist", "src"],
1312
"exports": {
1413
".": {
1514
"import": "./dist/src/index.js"
1615
}
1716
},
17+
"files": ["dist", "src"],
1818
"dependencies": {
1919
"tslib": "~2.7"
2020
},

‎tsconfig.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"compilerOptions": {
33
"target": "ESNext",
4-
"module": "ESNext",
5-
"lib": ["ESNext", "DOM"],
6-
"moduleResolution": "Bundler",
4+
"module": "NodeNext",
5+
"lib": ["ESNext"],
6+
"moduleResolution": "NodeNext",
77
"rootDir": ".",
88
"outDir": "dist",
99
"allowSyntheticDefaultImports": true,

0 commit comments

Comments
 (0)