-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #161 from ckeditor/i/160-tsconfig
Other (generator): Aligned the produced configuration to changes in CKEditor 5. See ckeditor/ckeditor5#14173. Closes #160. Feature (tools): Karma will use the `tsconfig.test.json` file as a TypeScript configuration if it exists when executing automated tests. By default, it fallbacks to `tsconfig.json` file. MINOR BREAKING CHANGE (tools): The `typescript()` function exported from the `webpack-utils` module requires passing the `cwd` as the first argument. Optionally, you can pass the TypeScript configuration file name that should be used when processing TS files by `ts-loader`.
- Loading branch information
Showing
13 changed files
with
147 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
packages/ckeditor5-package-generator/lib/templates/ts/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"compilerOptions": { | ||
/** | ||
* TypeScript automagically loads typings from all "@types/*" packages if the "compilerOptions.types" array is not defined in | ||
* this file. However, if some dependencies have "@types/*" packages as their dependencies, they'll also be loaded as well. | ||
* As a result, TypeScript loaded "@types/node" which we don't want to use, because it allows using Node.js specific APIs that | ||
* are not available in the browsers. | ||
* | ||
* To avoid such issues, we defined this empty "types" to disable automatic inclusion of the "@types/*" packages. | ||
*/ | ||
"types": [], | ||
"lib": [ | ||
"ES2019", // Must match the "target". | ||
"ES2020.String", | ||
"DOM", | ||
"DOM.Iterable" | ||
], | ||
"noImplicitAny": true, | ||
"noImplicitOverride": true, | ||
"strict": true, | ||
"module": "es6", | ||
"target": "es2019", | ||
"sourceMap": true, | ||
"allowJs": true, | ||
"moduleResolution": "node", | ||
"typeRoots": [ | ||
"typings", | ||
"node_modules/@types" | ||
] | ||
}, | ||
"include": [ | ||
"./sample", | ||
"./src", | ||
"./typings" | ||
] | ||
} |
26 changes: 0 additions & 26 deletions
26
packages/ckeditor5-package-generator/lib/templates/ts/tsconfig.json.txt
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
packages/ckeditor5-package-generator/lib/templates/ts/tsconfig.test.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"types": [ | ||
"@types/mocha" | ||
], | ||
"sourceMap": true | ||
}, | ||
"include": [ | ||
"./sample", | ||
"./src", | ||
"./tests", | ||
"./typings" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters