Skip to content

Commit de031db

Browse files
authored
Merge pull request #21 from algorandfoundation/fix-tsconfig
fix: update the ts config to the correct settings
2 parents dc69a47 + 535bfdb commit de031db

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

examples/generators/production_python_smart_contract_typescript/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@
1414
"forceConsistentCasingInFileNames": true,
1515
"allowJs": false,
1616
"allowSyntheticDefaultImports": true,
17+
"module": "CommonJS",
1718
"moduleResolution": "Node",
1819
"resolveJsonModule": true,
1920
"isolatedModules": true,
2021
"noEmit": true
2122
},
22-
"include": ["src/**/*.ts"],
23+
"include": ["smart_contracts/**/*.ts"],
2324
"exclude": ["node_modules", "dist", "coverage"]
2425
}

examples/generators/starter_python_smart_contract_typescript/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@
1414
"forceConsistentCasingInFileNames": true,
1515
"allowJs": false,
1616
"allowSyntheticDefaultImports": true,
17+
"module": "CommonJS",
1718
"moduleResolution": "Node",
1819
"resolveJsonModule": true,
1920
"isolatedModules": true,
2021
"noEmit": true
2122
},
22-
"include": ["src/**/*.ts"],
23+
"include": ["smart_contracts/**/*.ts"],
2324
"exclude": ["node_modules", "dist", "coverage"]
2425
}

template_content/{% if deployment_language == 'typescript' or use_typescript_jest %}tsconfig.json{% endif %}

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@
1414
"forceConsistentCasingInFileNames": true,
1515
"allowJs": false,
1616
"allowSyntheticDefaultImports": true,
17+
"module": "CommonJS",
1718
"moduleResolution": "Node",
1819
"resolveJsonModule": true,
1920
"isolatedModules": true,
2021
"noEmit": true
2122
},
22-
"include": ["src/**/*.ts"],
23+
"include": ["smart_contracts/**/*.ts"],
2324
"exclude": ["node_modules", "dist", "coverage"]
2425
}

0 commit comments

Comments
 (0)