Skip to content

Commit

Permalink
Use node16 in tsconfig.json (#2052)
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeguerin authored Oct 11, 2023
1 parent b3a5345 commit ab0d41c
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/typespec-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"generate-tsp-only:rlc": "ts-node ./test/commands/gen-cadl-ranch.ts --tag=rlc",
"generate-tsp-only:modular": "ts-node ./test/commands/gen-cadl-ranch.ts --tag=modular",
"integration-test:alone": "npm run integration-test:alone:rlc && npm run integration-test:alone:modular",
"integration-test:alone:rlc": "cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 4000 ./test/integration/*.spec.ts",
"integration-test:alone:modular": "cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 4000 ./test/modularIntegration/*.spec.ts",
"integration-test:alone:rlc": "cross-env TS_NODE_PROJECT=tsconfig.integration.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 4000 ./test/integration/*.spec.ts",
"integration-test:alone:modular": "cross-env TS_NODE_PROJECT=tsconfig.integration.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 4000 ./test/modularIntegration/*.spec.ts",
"stop-test-server": "npx cadl-ranch server stop",
"unit-test": "npm run unit-test:rlc && npm run unit-test:modular",
"unit-test:rlc": "cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true --timeout 4000 './test/unit/**/*.spec.ts'",
Expand Down
4 changes: 4 additions & 0 deletions packages/typespec-ts/test/integration/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../../tsconfig.integration.json",
"include": ["./**/*.ts"]
}
3 changes: 2 additions & 1 deletion packages/typespec-ts/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"extends": "../tsconfig.test.json",
"include": ["./**/*.ts", "./**/**/*.ts"]
"include": ["./**/*.ts", "./**/**/*.ts"],
"exclude": ["./integration/**/*.ts"]
}
7 changes: 7 additions & 0 deletions packages/typespec-ts/tsconfig.integration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "Node"
}
}
4 changes: 2 additions & 2 deletions packages/typespec-ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"composite": true,
"lib": ["ES2019"],
"target": "es2019",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"module": "node16",
"moduleResolution": "node16",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
Expand Down
4 changes: 2 additions & 2 deletions packages/typespec-ts/tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "Node"
"module": "node16",
"moduleResolution": "node16"
}
}

0 comments on commit ab0d41c

Please sign in to comment.