Skip to content

Commit 044f0b4

Browse files
committed
Get building without errors.
microsoft/TypeScript#54567
1 parent 3456ee5 commit 044f0b4

File tree

5 files changed

+18
-25
lines changed

5 files changed

+18
-25
lines changed

dist/src/wsv.js

+2-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/wsv.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tests/dev.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tests/wsv.test.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tsconfig.json

+13-18
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
1212

1313
/* Language and Environment */
14-
"target": "ES2020", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
14+
"target": "ES2020" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
1515
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
1616
// "jsx": "preserve", /* Specify what JSX code is generated. */
1717
// "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
@@ -24,9 +24,9 @@
2424
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
2525

2626
/* Modules */
27-
"module": "ES6", /* Specify what module code is generated. */
27+
"module": "ES6" /* Specify what module code is generated. */,
2828
// "rootDir": "./", /* Specify the root folder within your source files. */
29-
"moduleResolution": "node16", /* Specify how TypeScript looks up a file from a given module specifier. */
29+
"moduleResolution": "bundler" /* Specify how TypeScript looks up a file from a given module specifier. */,
3030
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
3131
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
3232
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
@@ -37,17 +37,17 @@
3737
// "noResolve": true, /* Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project. */
3838

3939
/* JavaScript Support */
40-
"allowJs": true, /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */
40+
"allowJs": true /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */,
4141
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
4242
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */
4343

4444
/* Emit */
45-
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
46-
"declarationMap": true, /* Create sourcemaps for d.ts files. */
45+
"declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
46+
"declarationMap": true /* Create sourcemaps for d.ts files. */,
4747
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
48-
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
48+
"sourceMap": true /* Create source map files for emitted JavaScript files. */,
4949
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */
50-
"outDir": "./dist", /* Specify an output folder for all emitted files. */
50+
"outDir": "./dist" /* Specify an output folder for all emitted files. */,
5151
// "removeComments": true, /* Disable emitting comments. */
5252
// "noEmit": true, /* Disable emitting files from a compilation. */
5353
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
@@ -69,12 +69,12 @@
6969
/* Interop Constraints */
7070
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
7171
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
72-
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */
72+
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */,
7373
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
74-
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
74+
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
7575

7676
/* Type Checking */
77-
"strict": true, /* Enable all strict type-checking options. */
77+
"strict": true /* Enable all strict type-checking options. */,
7878
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied `any` type.. */
7979
// "strictNullChecks": true, /* When type checking, take into account `null` and `undefined`. */
8080
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
@@ -96,13 +96,8 @@
9696

9797
/* Completeness */
9898
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
99-
"skipLibCheck": true /* Skip type checking all .d.ts files. */
99+
"skipLibCheck": true /* Skip type checking all .d.ts files. */
100100
},
101101
"include": ["src/**/*", "tests/**/*"],
102-
"exclude": [
103-
"./cypress.config.ts",
104-
"node_modules",
105-
"cypress",
106-
"**/*.cy.tsx"
107-
]
102+
"exclude": ["./cypress.config.ts", "node_modules", "cypress", "**/*.cy.tsx"]
108103
}

0 commit comments

Comments
 (0)