Skip to content

Commit

Permalink
[Build] Update tsconfig to explicitly set target and module optio…
Browse files Browse the repository at this point in the history
…ns (#7845)

* bugfix: update tsconfig to set module to NodeNext and exclude openmct/e2e

* chore: remove unnecessary paths from exclude

- the `exclude` option only excludes files in the context of the `include` paths, if there are any. We can remove some of these because they don't match anything in the include paths.

* chore: fix capitalization for consistency

---------

Co-authored-by: Jesse Mazzella <[email protected]>
  • Loading branch information
unlikelyzero and ozyx authored Sep 16, 2024
1 parent fa8efa8 commit de122b9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/
{
"compilerOptions": {
"target": "ES6",
"baseUrl": "./",
"allowJs": true,
"checkJs": false,
Expand All @@ -14,14 +15,14 @@
"esModuleInterop": true,
"noImplicitOverride": true,
"noImplicitAny": false,
"outFile": "dist/types/index.d.ts"
"outFile": "dist/types/index.d.ts",
"module": "NodeNext",
"moduleResolution": "NodeNext"
},
"include": [
"src/api/**/*.js"
],
"exclude": [
"node_modules",
"dist",
"**/*Spec.js"
]
}

0 comments on commit de122b9

Please sign in to comment.