Skip to content

Commit

Permalink
must set moduleResolution to node16,
Browse files Browse the repository at this point in the history
should be targeting at least es6
  • Loading branch information
aaronmgdr committed Dec 1, 2023
1 parent ba7ca78 commit e5dc220
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/sdk/contractkit/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "@celo/typescript/tsconfig.library.json",
"compilerOptions": {
"moduleResolution": "node16",
"rootDir": "src",
"outDir": "lib",
"resolveJsonModule": true
Expand Down
7 changes: 3 additions & 4 deletions packages/typescript/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
"allowSyntheticDefaultImports": false,
"baseUrl": ".",
"importHelpers": true,
"jsx": "react",
"lib": ["es7", "esnext", "dom"],
"moduleResolution": "node",
"lib": ["es7", "esnext"],
"moduleResolution": "node16",
"noImplicitAny": true,
"noUnusedLocals": true,
"strictNullChecks": true,
"skipLibCheck": true,
"target": "es3",
"target": "es6",
"strict": true
},
"exclude": ["node_modules"]
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/tsconfig.library.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compileOnSave": false,
"compilerOptions": {
"lib": ["dom", "es2015", "es2016"],
"target": "es5",
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"jsx": "preserve",
Expand Down

0 comments on commit e5dc220

Please sign in to comment.