Skip to content

Commit 9b3ade5

Browse files
committed
build: build package with NodeNext module
1 parent 47f0488 commit 9b3ade5

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

src/legacy/compiler/__snapshots__/ts-compiler.spec.ts.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ exports[`TsCompiler getCompiledOutput isolatedModules true should transpile code
2020
{
2121
"allowSyntheticDefaultImports": undefined,
2222
"esModuleInterop": true,
23-
"module": 1,
23+
"module": 99,
2424
}
2525
`;
2626

src/legacy/config/config-set.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ describe('parsedTsConfig', () => {
7979
})
8080

8181
expect(cs.parsedTsConfig.options).toMatchObject({
82-
module: ts.ModuleKind.CommonJS,
82+
module: ts.ModuleKind.NodeNext,
8383
skipLibCheck: true,
8484
})
8585
})

tsconfig.build.json

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"module": "CommonJS",
54
"target": "ES5",
65
"declaration": true,
76
"stripInternal": true,

tsconfig.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
"noImplicitReturns": true,
1212
"skipLibCheck": true,
1313
"esModuleInterop": true,
14-
"moduleResolution": "node",
1514
"resolveJsonModule": true,
1615
"checkJs": false,
17-
"target": "es2015",
18-
"module": "ESNext",
19-
"lib": ["esnext"],
16+
"target": "ESNext",
17+
"module": "NodeNext",
18+
"moduleResolution": "NodeNext",
19+
"lib": ["ESNext"],
2020
"types": ["node", "./globals"]
2121
}
2222
}

tsconfig.spec.json

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"module": "CommonJS",
54
"target": "ES2015",
65
},
76
"includes": ["src/**/*.spec.ts"],

0 commit comments

Comments
 (0)