Skip to content

Commit

Permalink
chore: Moving to full ES modules. Updated tsconfigs
Browse files Browse the repository at this point in the history
  • Loading branch information
biomadeira committed Aug 10, 2022
1 parent 775a502 commit afd0535
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion tsconfig.cli.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "commonjs",
"module": "es2020",
"target": "es2020",
"sourceMap": false,
"declaration": false,
"outDir": "./bin"
Expand Down
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"compilerOptions": {
/* Basic Options */
// "incremental": true, /* Enable incremental compilation */
"target": "es6" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
"module": "es2015" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
"target": "es2020" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
"module": "es2020" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
// "lib": [
// "dom",
// "dom.iterable",
Expand Down Expand Up @@ -67,7 +67,7 @@
/* Advanced Options */
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */,
"resolveJsonModule": true /* Json support. */,
"watch": true /* tsc command in watch mode. */
"watch": false /* tsc command in watch mode. */
},
"exclude": ["node_modules", "**/*spec.ts", "src/jd-viewers-cli.ts"],
"include": ["**/*", "src/*", "*.ts"]
Expand Down

0 comments on commit afd0535

Please sign in to comment.