Skip to content

Commit

Permalink
build: build package with NodeNext module
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnpnl committed Aug 8, 2024
1 parent 47f0488 commit 9b3ade5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/legacy/compiler/__snapshots__/ts-compiler.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ exports[`TsCompiler getCompiledOutput isolatedModules true should transpile code
{
"allowSyntheticDefaultImports": undefined,
"esModuleInterop": true,
"module": 1,
"module": 99,
}
`;

Expand Down
2 changes: 1 addition & 1 deletion src/legacy/config/config-set.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe('parsedTsConfig', () => {
})

expect(cs.parsedTsConfig.options).toMatchObject({
module: ts.ModuleKind.CommonJS,
module: ts.ModuleKind.NodeNext,
skipLibCheck: true,
})
})
Expand Down
1 change: 0 additions & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"target": "ES5",
"declaration": true,
"stripInternal": true,
Expand Down
8 changes: 4 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"noImplicitReturns": true,
"skipLibCheck": true,
"esModuleInterop": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"checkJs": false,
"target": "es2015",
"module": "ESNext",
"lib": ["esnext"],
"target": "ESNext",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"lib": ["ESNext"],
"types": ["node", "./globals"]
}
}
1 change: 0 additions & 1 deletion tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"target": "ES2015",
},
"includes": ["src/**/*.spec.ts"],
Expand Down

0 comments on commit 9b3ade5

Please sign in to comment.