Skip to content

Commit

Permalink
es modules: config changes
Browse files Browse the repository at this point in the history
Config changes as first step to convert to es modules.  This breaks everything.  Subsequent parts of this set will make it all work again.

Signed-off-by: Chris. Webster <[email protected]>
  • Loading branch information
webstech committed Aug 12, 2024
1 parent 46d6340 commit 67c9efb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
14 changes: 12 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"lib": "lib",
"test": "tests"
},
"type": "module",
"scripts": {
"build": "tsc",
"cleanbranch": "node ./build/script/delete-test-branches.js",
Expand Down Expand Up @@ -45,6 +46,7 @@
"@types/jsonwebtoken": "^9.0.6",
"@types/mailparser": "^3.4.4",
"@types/marked": "^6.0.0",
"@types/node": "^22.1.0",
"@types/nodemailer": "^6.4.15",
"@types/rfc2047": "^2.0.3",
"@typescript-eslint/eslint-plugin": "^7.18.0",
Expand Down
8 changes: 4 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"compilerOptions": {
/* Basic Options */
"target": "es2021", /* Specify ECMAScript target version. */
"module": "commonjs", /* Specify module code generation. */
"lib": ["es2021"], /* Specify library files to be included in the compilation. */
"target": "es2023", /* Specify ECMAScript target version. */
"module": "Node16", /* Specify module code generation. */
// "lib": ["es2023"], /* Specify library files to be included in the compilation. */
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
Expand Down Expand Up @@ -34,7 +34,7 @@
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */

/* Module Resolution Options */
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
// "moduleResolution": "Node16", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
Expand Down

0 comments on commit 67c9efb

Please sign in to comment.