From 535bfdbf9a00ba76ab43ff831733a4cb9ad3439f Mon Sep 17 00:00:00 2001 From: Neil Campbell Date: Mon, 6 May 2024 12:03:40 +0800 Subject: [PATCH] fix: update the ts config to the correct settings --- .../production_python_smart_contract_typescript/tsconfig.json | 3 ++- .../starter_python_smart_contract_typescript/tsconfig.json | 3 ++- ...pescript' or use_typescript_jest %}tsconfig.json{% endif %} | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/generators/production_python_smart_contract_typescript/tsconfig.json b/examples/generators/production_python_smart_contract_typescript/tsconfig.json index 7c76204..fc75893 100644 --- a/examples/generators/production_python_smart_contract_typescript/tsconfig.json +++ b/examples/generators/production_python_smart_contract_typescript/tsconfig.json @@ -14,11 +14,12 @@ "forceConsistentCasingInFileNames": true, "allowJs": false, "allowSyntheticDefaultImports": true, + "module": "CommonJS", "moduleResolution": "Node", "resolveJsonModule": true, "isolatedModules": true, "noEmit": true }, - "include": ["src/**/*.ts"], + "include": ["smart_contracts/**/*.ts"], "exclude": ["node_modules", "dist", "coverage"] } diff --git a/examples/generators/starter_python_smart_contract_typescript/tsconfig.json b/examples/generators/starter_python_smart_contract_typescript/tsconfig.json index 7c76204..fc75893 100644 --- a/examples/generators/starter_python_smart_contract_typescript/tsconfig.json +++ b/examples/generators/starter_python_smart_contract_typescript/tsconfig.json @@ -14,11 +14,12 @@ "forceConsistentCasingInFileNames": true, "allowJs": false, "allowSyntheticDefaultImports": true, + "module": "CommonJS", "moduleResolution": "Node", "resolveJsonModule": true, "isolatedModules": true, "noEmit": true }, - "include": ["src/**/*.ts"], + "include": ["smart_contracts/**/*.ts"], "exclude": ["node_modules", "dist", "coverage"] } diff --git a/template_content/{% if deployment_language == 'typescript' or use_typescript_jest %}tsconfig.json{% endif %} b/template_content/{% if deployment_language == 'typescript' or use_typescript_jest %}tsconfig.json{% endif %} index 7c76204..fc75893 100644 --- a/template_content/{% if deployment_language == 'typescript' or use_typescript_jest %}tsconfig.json{% endif %} +++ b/template_content/{% if deployment_language == 'typescript' or use_typescript_jest %}tsconfig.json{% endif %} @@ -14,11 +14,12 @@ "forceConsistentCasingInFileNames": true, "allowJs": false, "allowSyntheticDefaultImports": true, + "module": "CommonJS", "moduleResolution": "Node", "resolveJsonModule": true, "isolatedModules": true, "noEmit": true }, - "include": ["src/**/*.ts"], + "include": ["smart_contracts/**/*.ts"], "exclude": ["node_modules", "dist", "coverage"] }