diff --git a/basics/basics-typescript/tsconfig.json b/basics/basics-typescript/tsconfig.json index bf7ad122..c2946b24 100644 --- a/basics/basics-typescript/tsconfig.json +++ b/basics/basics-typescript/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "esnext", "lib": ["esnext"], - "module": "commonjs", + "module": "nodenext", "allowJs": true, "declaration": true, "declarationMap": true, diff --git a/end-to-end-applications/typescript/ai-image-workflows/tsconfig.json b/end-to-end-applications/typescript/ai-image-workflows/tsconfig.json index c3473680..f23f9bf1 100644 --- a/end-to-end-applications/typescript/ai-image-workflows/tsconfig.json +++ b/end-to-end-applications/typescript/ai-image-workflows/tsconfig.json @@ -25,7 +25,7 @@ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ /* Modules */ - "module": "commonjs", /* Specify what module code is generated. */ + "module": "nodenext", /* Specify what module code is generated. */ // "rootDir": "./", /* Specify the root folder within your source files. */ // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ diff --git a/end-to-end-applications/typescript/food-ordering/app/tsconfig.json b/end-to-end-applications/typescript/food-ordering/app/tsconfig.json index 39a2c289..a89ad3ac 100644 --- a/end-to-end-applications/typescript/food-ordering/app/tsconfig.json +++ b/end-to-end-applications/typescript/food-ordering/app/tsconfig.json @@ -25,7 +25,7 @@ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ /* Modules */ - "module": "commonjs", /* Specify what module code is generated. */ + "module": "nodenext", /* Specify what module code is generated. */ // "rootDir": "./", /* Specify the root folder within your source files. */ // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ diff --git a/patterns-use-cases/async-signals-payment/async-signals-payment-typescript/tsconfig.json b/patterns-use-cases/async-signals-payment/async-signals-payment-typescript/tsconfig.json index bf7ad122..c2946b24 100644 --- a/patterns-use-cases/async-signals-payment/async-signals-payment-typescript/tsconfig.json +++ b/patterns-use-cases/async-signals-payment/async-signals-payment-typescript/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "esnext", "lib": ["esnext"], - "module": "commonjs", + "module": "nodenext", "allowJs": true, "declaration": true, "declarationMap": true, diff --git a/patterns-use-cases/durable-promises/durable-promises-typescript/tsconfig.json b/patterns-use-cases/durable-promises/durable-promises-typescript/tsconfig.json index bf7ad122..c2946b24 100644 --- a/patterns-use-cases/durable-promises/durable-promises-typescript/tsconfig.json +++ b/patterns-use-cases/durable-promises/durable-promises-typescript/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "esnext", "lib": ["esnext"], - "module": "commonjs", + "module": "nodenext", "allowJs": true, "declaration": true, "declarationMap": true, diff --git a/patterns-use-cases/payment-state-machine/payment-state-machine-typescript/tsconfig.json b/patterns-use-cases/payment-state-machine/payment-state-machine-typescript/tsconfig.json index a2f1b96b..4a47ea80 100644 --- a/patterns-use-cases/payment-state-machine/payment-state-machine-typescript/tsconfig.json +++ b/patterns-use-cases/payment-state-machine/payment-state-machine-typescript/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "esnext", "lib": ["esnext"], - "module": "commonjs", + "module": "nodenext", "allowJs": true, "declaration": true, "declarationMap": true, diff --git a/patterns-use-cases/sagas/sagas-typescript/tsconfig.json b/patterns-use-cases/sagas/sagas-typescript/tsconfig.json index bf7ad122..c2946b24 100644 --- a/patterns-use-cases/sagas/sagas-typescript/tsconfig.json +++ b/patterns-use-cases/sagas/sagas-typescript/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "esnext", "lib": ["esnext"], - "module": "commonjs", + "module": "nodenext", "allowJs": true, "declaration": true, "declarationMap": true, diff --git a/patterns-use-cases/state-machines/state-machines-typescript/tsconfig.json b/patterns-use-cases/state-machines/state-machines-typescript/tsconfig.json index bf7ad122..c2946b24 100644 --- a/patterns-use-cases/state-machines/state-machines-typescript/tsconfig.json +++ b/patterns-use-cases/state-machines/state-machines-typescript/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "esnext", "lib": ["esnext"], - "module": "commonjs", + "module": "nodenext", "allowJs": true, "declaration": true, "declarationMap": true, diff --git a/patterns-use-cases/ticket-reservation/ticket-reservation-typescript/tsconfig.json b/patterns-use-cases/ticket-reservation/ticket-reservation-typescript/tsconfig.json index 4f0702ad..fe4c5a35 100644 --- a/patterns-use-cases/ticket-reservation/ticket-reservation-typescript/tsconfig.json +++ b/patterns-use-cases/ticket-reservation/ticket-reservation-typescript/tsconfig.json @@ -25,7 +25,7 @@ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ /* Modules */ - "module": "commonjs" /* Specify what module code is generated. */, + "module": "nodenext" /* Specify what module code is generated. */, // "rootDir": "./", /* Specify the root folder within your source files. */ // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ diff --git a/templates/kotlin-gradle-lambda-cdk/tsconfig.json b/templates/kotlin-gradle-lambda-cdk/tsconfig.json index 464ed774..f2915dc2 100644 --- a/templates/kotlin-gradle-lambda-cdk/tsconfig.json +++ b/templates/kotlin-gradle-lambda-cdk/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "target": "ES2020", - "module": "commonjs", + "module": "nodenext", "lib": ["es2020", "dom"], "declaration": true, "strict": true, diff --git a/templates/typescript-lambda-cdk/tsconfig.json b/templates/typescript-lambda-cdk/tsconfig.json index 464ed774..f2915dc2 100644 --- a/templates/typescript-lambda-cdk/tsconfig.json +++ b/templates/typescript-lambda-cdk/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "target": "ES2020", - "module": "commonjs", + "module": "nodenext", "lib": ["es2020", "dom"], "declaration": true, "strict": true, diff --git a/templates/typescript/tsconfig.json b/templates/typescript/tsconfig.json index c3473680..f23f9bf1 100644 --- a/templates/typescript/tsconfig.json +++ b/templates/typescript/tsconfig.json @@ -25,7 +25,7 @@ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ /* Modules */ - "module": "commonjs", /* Specify what module code is generated. */ + "module": "nodenext", /* Specify what module code is generated. */ // "rootDir": "./", /* Specify the root folder within your source files. */ // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ diff --git a/tutorials/tour-of-restate-typescript/tsconfig.json b/tutorials/tour-of-restate-typescript/tsconfig.json index ac9e5534..c6ab6ed7 100644 --- a/tutorials/tour-of-restate-typescript/tsconfig.json +++ b/tutorials/tour-of-restate-typescript/tsconfig.json @@ -25,7 +25,7 @@ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ /* Modules */ - "module": "commonjs" /* Specify what module code is generated. */, + "module": "nodenext" /* Specify what module code is generated. */, // "rootDir": "./", /* Specify the root folder within your source files. */ // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */