@rushstack/heft-node-rig 2.3.5 → 2.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +24 -24
- package/README.md +30 -30
- package/package.json +3 -3
- package/profiles/default/config/api-extractor-task.json +21 -21
- package/profiles/default/config/heft.json +63 -63
- package/profiles/default/config/jest.config.json +3 -3
- package/profiles/default/config/rush-project.json +12 -12
- package/profiles/default/config/typescript.json +71 -71
- package/profiles/default/includes/eslint/mixins/friendly-locals.js +6 -6
- package/profiles/default/includes/eslint/mixins/packlets.js +6 -6
- package/profiles/default/includes/eslint/mixins/react.js +6 -6
- package/profiles/default/includes/eslint/mixins/tsdoc.js +6 -6
- package/profiles/default/includes/eslint/patch/custom-config-package-names.js +4 -4
- package/profiles/default/includes/eslint/patch/modern-module-resolution.js +4 -4
- package/profiles/default/includes/eslint/profile/node-trusted-tool.js +6 -6
- package/profiles/default/includes/eslint/profile/node.js +6 -6
- package/profiles/default/tsconfig-base.json +31 -31
package/LICENSE
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
@rushstack/heft-node-rig
|
|
2
|
-
|
|
3
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
-
|
|
5
|
-
MIT License
|
|
6
|
-
|
|
7
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
8
|
-
a copy of this software and associated documentation files (the
|
|
9
|
-
"Software"), to deal in the Software without restriction, including
|
|
10
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
11
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
12
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
13
|
-
the following conditions:
|
|
14
|
-
|
|
15
|
-
The above copyright notice and this permission notice shall be
|
|
16
|
-
included in all copies or substantial portions of the Software.
|
|
17
|
-
|
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
19
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
20
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
21
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
22
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
23
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
24
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1
|
+
@rushstack/heft-node-rig
|
|
2
|
+
|
|
3
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
+
|
|
5
|
+
MIT License
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
8
|
+
a copy of this software and associated documentation files (the
|
|
9
|
+
"Software"), to deal in the Software without restriction, including
|
|
10
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
11
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
12
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
13
|
+
the following conditions:
|
|
14
|
+
|
|
15
|
+
The above copyright notice and this permission notice shall be
|
|
16
|
+
included in all copies or substantial portions of the Software.
|
|
17
|
+
|
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
19
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
20
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
21
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
22
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
23
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
24
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
## @rushstack/heft-node-rig
|
|
2
|
-
|
|
3
|
-
A rig package for Node.js projects that build using [Heft](https://www.npmjs.com/package/@rushstack/heft)
|
|
4
|
-
build system. To learn more about rig packages, consult the
|
|
5
|
-
[@rushstack/rig-package](https://www.npmjs.com/package/@rushstack/rig-package) documentation.
|
|
6
|
-
|
|
7
|
-
This rig contains a single profile: `default`
|
|
8
|
-
|
|
9
|
-
To enable it, add a **rig.json** file to your project, as shown below:
|
|
10
|
-
|
|
11
|
-
**config/rig.json**
|
|
12
|
-
```js
|
|
13
|
-
{
|
|
14
|
-
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
|
|
15
|
-
|
|
16
|
-
"rigPackageName": "@rushstack/heft-node-rig"
|
|
17
|
-
}
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
The config files provided by this rig profile can be found in the [heft-node-rig/profiles/default](
|
|
21
|
-
https://github.com/microsoft/rushstack/tree/main/rigs/heft-node-rig/profiles/default) source folder.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
## Links
|
|
25
|
-
|
|
26
|
-
- [CHANGELOG.md](
|
|
27
|
-
https://github.com/microsoft/rushstack/blob/main/rigs/heft-node-rig/CHANGELOG.md) - Find
|
|
28
|
-
out what's new in the latest version
|
|
29
|
-
|
|
30
|
-
`@rushstack/heft-node-rig` is part of the [Rush Stack](https://rushstack.io/) family of projects.
|
|
1
|
+
## @rushstack/heft-node-rig
|
|
2
|
+
|
|
3
|
+
A rig package for Node.js projects that build using [Heft](https://www.npmjs.com/package/@rushstack/heft)
|
|
4
|
+
build system. To learn more about rig packages, consult the
|
|
5
|
+
[@rushstack/rig-package](https://www.npmjs.com/package/@rushstack/rig-package) documentation.
|
|
6
|
+
|
|
7
|
+
This rig contains a single profile: `default`
|
|
8
|
+
|
|
9
|
+
To enable it, add a **rig.json** file to your project, as shown below:
|
|
10
|
+
|
|
11
|
+
**config/rig.json**
|
|
12
|
+
```js
|
|
13
|
+
{
|
|
14
|
+
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
|
|
15
|
+
|
|
16
|
+
"rigPackageName": "@rushstack/heft-node-rig"
|
|
17
|
+
}
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
The config files provided by this rig profile can be found in the [heft-node-rig/profiles/default](
|
|
21
|
+
https://github.com/microsoft/rushstack/tree/main/rigs/heft-node-rig/profiles/default) source folder.
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
## Links
|
|
25
|
+
|
|
26
|
+
- [CHANGELOG.md](
|
|
27
|
+
https://github.com/microsoft/rushstack/blob/main/rigs/heft-node-rig/CHANGELOG.md) - Find
|
|
28
|
+
out what's new in the latest version
|
|
29
|
+
|
|
30
|
+
`@rushstack/heft-node-rig` is part of the [Rush Stack](https://rushstack.io/) family of projects.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/heft-node-rig",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.7",
|
|
4
4
|
"description": "A rig package for Node.js projects that build using Heft",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"eslint": "~8.7.0",
|
|
17
17
|
"jest-environment-node": "~29.5.0",
|
|
18
18
|
"typescript": "~5.0.4",
|
|
19
|
-
"@microsoft/api-extractor": "7.38.0",
|
|
20
19
|
"@rushstack/eslint-config": "3.4.1",
|
|
20
|
+
"@microsoft/api-extractor": "7.38.0",
|
|
21
21
|
"@rushstack/heft-api-extractor-plugin": "0.2.9",
|
|
22
|
-
"@rushstack/heft-jest-plugin": "0.
|
|
22
|
+
"@rushstack/heft-jest-plugin": "0.10.1",
|
|
23
23
|
"@rushstack/heft-lint-plugin": "0.2.9",
|
|
24
24
|
"@rushstack/heft-typescript-plugin": "0.2.9"
|
|
25
25
|
},
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configures the API Extractor task for the Heft build system.
|
|
3
|
-
*
|
|
4
|
-
* This optional additional file customizes how the Heft task is invoked. The main analysis is
|
|
5
|
-
* controlled by API Extractor's own "api-extractor.json" config file.
|
|
6
|
-
*/
|
|
7
|
-
{
|
|
8
|
-
"$schema": "https://developer.microsoft.com/json-schemas/heft/v0/api-extractor-task.schema.json"
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* If set to true, use the project's TypeScript compiler version for API Extractor's
|
|
12
|
-
* analysis. API Extractor's included TypeScript compiler can generally correctly
|
|
13
|
-
* analyze typings generated by older compilers, and referencing the project's compiler
|
|
14
|
-
* can cause issues. If issues are encountered with API Extractor's included compiler,
|
|
15
|
-
* set this option to true.
|
|
16
|
-
*
|
|
17
|
-
* This corresponds to API Extractor's "--typescript-compiler-folder" CLI option and
|
|
18
|
-
* "IExtractorInvokeOptions.typescriptCompilerFolder" API option. This option defaults to false.
|
|
19
|
-
*/
|
|
20
|
-
// "useProjectTypescriptVersion": true
|
|
21
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Configures the API Extractor task for the Heft build system.
|
|
3
|
+
*
|
|
4
|
+
* This optional additional file customizes how the Heft task is invoked. The main analysis is
|
|
5
|
+
* controlled by API Extractor's own "api-extractor.json" config file.
|
|
6
|
+
*/
|
|
7
|
+
{
|
|
8
|
+
"$schema": "https://developer.microsoft.com/json-schemas/heft/v0/api-extractor-task.schema.json"
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* If set to true, use the project's TypeScript compiler version for API Extractor's
|
|
12
|
+
* analysis. API Extractor's included TypeScript compiler can generally correctly
|
|
13
|
+
* analyze typings generated by older compilers, and referencing the project's compiler
|
|
14
|
+
* can cause issues. If issues are encountered with API Extractor's included compiler,
|
|
15
|
+
* set this option to true.
|
|
16
|
+
*
|
|
17
|
+
* This corresponds to API Extractor's "--typescript-compiler-folder" CLI option and
|
|
18
|
+
* "IExtractorInvokeOptions.typescriptCompilerFolder" API option. This option defaults to false.
|
|
19
|
+
*/
|
|
20
|
+
// "useProjectTypescriptVersion": true
|
|
21
|
+
}
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Defines configuration used by core Heft.
|
|
3
|
-
*/
|
|
4
|
-
{
|
|
5
|
-
"$schema": "https://developer.microsoft.com/json-schemas/heft/v0/heft.schema.json",
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Optionally specifies another JSON config file that this file extends from. This provides a way for standard
|
|
9
|
-
* settings to be shared across multiple projects.
|
|
10
|
-
*/
|
|
11
|
-
// "extends": "base-project/config/heft.json",
|
|
12
|
-
|
|
13
|
-
"aliasesByName": {
|
|
14
|
-
"start": {
|
|
15
|
-
"actionName": "build-watch",
|
|
16
|
-
"defaultParameters": ["--serve"]
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
"phasesByName": {
|
|
21
|
-
"build": {
|
|
22
|
-
"cleanFiles": [{ "includeGlobs": ["dist", "lib", "lib-commonjs"] }],
|
|
23
|
-
|
|
24
|
-
"tasksByName": {
|
|
25
|
-
"typescript": {
|
|
26
|
-
"taskPlugin": {
|
|
27
|
-
"pluginPackage": "@rushstack/heft-typescript-plugin"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"lint": {
|
|
31
|
-
"taskDependencies": ["typescript"],
|
|
32
|
-
"taskPlugin": {
|
|
33
|
-
"pluginPackage": "@rushstack/heft-lint-plugin"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"api-extractor": {
|
|
37
|
-
"taskDependencies": ["typescript"],
|
|
38
|
-
"taskPlugin": {
|
|
39
|
-
"pluginPackage": "@rushstack/heft-api-extractor-plugin"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"node-service": {
|
|
43
|
-
"taskDependencies": ["typescript"],
|
|
44
|
-
"taskPlugin": {
|
|
45
|
-
"pluginPackage": "@rushstack/heft",
|
|
46
|
-
"pluginName": "node-service-plugin"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
"test": {
|
|
53
|
-
"phaseDependencies": ["build"],
|
|
54
|
-
"tasksByName": {
|
|
55
|
-
"jest": {
|
|
56
|
-
"taskPlugin": {
|
|
57
|
-
"pluginPackage": "@rushstack/heft-jest-plugin"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Defines configuration used by core Heft.
|
|
3
|
+
*/
|
|
4
|
+
{
|
|
5
|
+
"$schema": "https://developer.microsoft.com/json-schemas/heft/v0/heft.schema.json",
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Optionally specifies another JSON config file that this file extends from. This provides a way for standard
|
|
9
|
+
* settings to be shared across multiple projects.
|
|
10
|
+
*/
|
|
11
|
+
// "extends": "base-project/config/heft.json",
|
|
12
|
+
|
|
13
|
+
"aliasesByName": {
|
|
14
|
+
"start": {
|
|
15
|
+
"actionName": "build-watch",
|
|
16
|
+
"defaultParameters": ["--serve"]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
"phasesByName": {
|
|
21
|
+
"build": {
|
|
22
|
+
"cleanFiles": [{ "includeGlobs": ["dist", "lib", "lib-commonjs"] }],
|
|
23
|
+
|
|
24
|
+
"tasksByName": {
|
|
25
|
+
"typescript": {
|
|
26
|
+
"taskPlugin": {
|
|
27
|
+
"pluginPackage": "@rushstack/heft-typescript-plugin"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"lint": {
|
|
31
|
+
"taskDependencies": ["typescript"],
|
|
32
|
+
"taskPlugin": {
|
|
33
|
+
"pluginPackage": "@rushstack/heft-lint-plugin"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"api-extractor": {
|
|
37
|
+
"taskDependencies": ["typescript"],
|
|
38
|
+
"taskPlugin": {
|
|
39
|
+
"pluginPackage": "@rushstack/heft-api-extractor-plugin"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"node-service": {
|
|
43
|
+
"taskDependencies": ["typescript"],
|
|
44
|
+
"taskPlugin": {
|
|
45
|
+
"pluginPackage": "@rushstack/heft",
|
|
46
|
+
"pluginName": "node-service-plugin"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
"test": {
|
|
53
|
+
"phaseDependencies": ["build"],
|
|
54
|
+
"tasksByName": {
|
|
55
|
+
"jest": {
|
|
56
|
+
"taskPlugin": {
|
|
57
|
+
"pluginPackage": "@rushstack/heft-jest-plugin"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@rushstack/heft-jest-plugin/includes/jest-shared.config.json"
|
|
3
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "@rushstack/heft-jest-plugin/includes/jest-shared.config.json"
|
|
3
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
{
|
|
2
|
-
"operationSettings": [
|
|
3
|
-
{
|
|
4
|
-
"operationName": "_phase:build",
|
|
5
|
-
"outputFolderNames": ["dist", "lib", "lib-commonjs", "temp"]
|
|
6
|
-
},
|
|
7
|
-
{
|
|
8
|
-
"operationName": "build",
|
|
9
|
-
"outputFolderNames": ["dist", "lib", "lib-commonjs", "temp"]
|
|
10
|
-
}
|
|
11
|
-
]
|
|
12
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"operationSettings": [
|
|
3
|
+
{
|
|
4
|
+
"operationName": "_phase:build",
|
|
5
|
+
"outputFolderNames": ["dist", "lib", "lib-commonjs", "temp"]
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"operationName": "build",
|
|
9
|
+
"outputFolderNames": ["dist", "lib", "lib-commonjs", "temp"]
|
|
10
|
+
}
|
|
11
|
+
]
|
|
12
|
+
}
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configures the TypeScript plugin for Heft. This plugin also manages linting.
|
|
3
|
-
*/
|
|
4
|
-
{
|
|
5
|
-
"$schema": "https://developer.microsoft.com/json-schemas/heft/v0/typescript.schema.json",
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Optionally specifies another JSON config file that this file extends from. This provides a way for standard
|
|
9
|
-
* settings to be shared across multiple projects.
|
|
10
|
-
*/
|
|
11
|
-
// "extends": "base-project/config/typescript.json",
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* If provided, emit these module kinds in addition to the modules specified in the tsconfig.
|
|
15
|
-
* Note that this option only applies to the main tsconfig.json configuration.
|
|
16
|
-
*/
|
|
17
|
-
"additionalModuleKindsToEmit": [
|
|
18
|
-
// {
|
|
19
|
-
// /**
|
|
20
|
-
// * (Required) Must be one of "commonjs", "amd", "umd", "system", "es2015", "esnext"
|
|
21
|
-
// */
|
|
22
|
-
// "moduleKind": "amd",
|
|
23
|
-
//
|
|
24
|
-
// /**
|
|
25
|
-
// * (Required) The name of the folder where the output will be written.
|
|
26
|
-
// */
|
|
27
|
-
// "outFolderName": "lib-amd"
|
|
28
|
-
// }
|
|
29
|
-
],
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* If true, emit CommonJS module output to the folder specified in the tsconfig "outDir" compiler option with the .cjs extension alongside (or instead of, if TSConfig specifies CommonJS) the default compilation output.
|
|
33
|
-
*/
|
|
34
|
-
// "emitCjsExtensionForCommonJS": true,
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* If true, emit ESNext module output to the folder specified in the tsconfig "outDir" compiler option with the .mjs extension alongside (or instead of, if TSConfig specifies ESNext) the default compilation output.
|
|
38
|
-
*/
|
|
39
|
-
// "emitMjsExtensionForESModule": true,
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* If true and "isolatedModules" is configured in tsconfig.json, use a worker thread to run transpilation concurrently with type checking and declaration emit.
|
|
43
|
-
*/
|
|
44
|
-
// "useTranspilerWorker": true
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Configures additional file types that should be copied into the TypeScript compiler's emit folders, for example
|
|
48
|
-
* so that these files can be resolved by import statements.
|
|
49
|
-
*/
|
|
50
|
-
"staticAssetsToCopy": {
|
|
51
|
-
/**
|
|
52
|
-
* File extensions that should be copied from the src folder to the destination folder(s).
|
|
53
|
-
*/
|
|
54
|
-
"fileExtensions": [".json"]
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Glob patterns that should be explicitly included.
|
|
58
|
-
*/
|
|
59
|
-
// "includeGlobs": [
|
|
60
|
-
// "some/path/*.js"
|
|
61
|
-
// ],
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Glob patterns that should be explicitly excluded. This takes precedence over globs listed
|
|
65
|
-
* in "includeGlobs" and files that match the file extensions provided in "fileExtensions".
|
|
66
|
-
*/
|
|
67
|
-
// "excludeGlobs": [
|
|
68
|
-
// "some/path/*.css"
|
|
69
|
-
// ]
|
|
70
|
-
}
|
|
71
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Configures the TypeScript plugin for Heft. This plugin also manages linting.
|
|
3
|
+
*/
|
|
4
|
+
{
|
|
5
|
+
"$schema": "https://developer.microsoft.com/json-schemas/heft/v0/typescript.schema.json",
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Optionally specifies another JSON config file that this file extends from. This provides a way for standard
|
|
9
|
+
* settings to be shared across multiple projects.
|
|
10
|
+
*/
|
|
11
|
+
// "extends": "base-project/config/typescript.json",
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* If provided, emit these module kinds in addition to the modules specified in the tsconfig.
|
|
15
|
+
* Note that this option only applies to the main tsconfig.json configuration.
|
|
16
|
+
*/
|
|
17
|
+
"additionalModuleKindsToEmit": [
|
|
18
|
+
// {
|
|
19
|
+
// /**
|
|
20
|
+
// * (Required) Must be one of "commonjs", "amd", "umd", "system", "es2015", "esnext"
|
|
21
|
+
// */
|
|
22
|
+
// "moduleKind": "amd",
|
|
23
|
+
//
|
|
24
|
+
// /**
|
|
25
|
+
// * (Required) The name of the folder where the output will be written.
|
|
26
|
+
// */
|
|
27
|
+
// "outFolderName": "lib-amd"
|
|
28
|
+
// }
|
|
29
|
+
],
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* If true, emit CommonJS module output to the folder specified in the tsconfig "outDir" compiler option with the .cjs extension alongside (or instead of, if TSConfig specifies CommonJS) the default compilation output.
|
|
33
|
+
*/
|
|
34
|
+
// "emitCjsExtensionForCommonJS": true,
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* If true, emit ESNext module output to the folder specified in the tsconfig "outDir" compiler option with the .mjs extension alongside (or instead of, if TSConfig specifies ESNext) the default compilation output.
|
|
38
|
+
*/
|
|
39
|
+
// "emitMjsExtensionForESModule": true,
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* If true and "isolatedModules" is configured in tsconfig.json, use a worker thread to run transpilation concurrently with type checking and declaration emit.
|
|
43
|
+
*/
|
|
44
|
+
// "useTranspilerWorker": true
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Configures additional file types that should be copied into the TypeScript compiler's emit folders, for example
|
|
48
|
+
* so that these files can be resolved by import statements.
|
|
49
|
+
*/
|
|
50
|
+
"staticAssetsToCopy": {
|
|
51
|
+
/**
|
|
52
|
+
* File extensions that should be copied from the src folder to the destination folder(s).
|
|
53
|
+
*/
|
|
54
|
+
"fileExtensions": [".json"]
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Glob patterns that should be explicitly included.
|
|
58
|
+
*/
|
|
59
|
+
// "includeGlobs": [
|
|
60
|
+
// "some/path/*.js"
|
|
61
|
+
// ],
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Glob patterns that should be explicitly excluded. This takes precedence over globs listed
|
|
65
|
+
* in "includeGlobs" and files that match the file extensions provided in "fileExtensions".
|
|
66
|
+
*/
|
|
67
|
+
// "excludeGlobs": [
|
|
68
|
+
// "some/path/*.css"
|
|
69
|
+
// ]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
2
|
-
// See LICENSE in the project root for license information.
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
extends: ['@rushstack/eslint-config/mixins/friendly-locals']
|
|
6
|
-
};
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
2
|
+
// See LICENSE in the project root for license information.
|
|
3
|
+
|
|
4
|
+
module.exports = {
|
|
5
|
+
extends: ['@rushstack/eslint-config/mixins/friendly-locals']
|
|
6
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
2
|
-
// See LICENSE in the project root for license information.
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
extends: ['@rushstack/eslint-config/mixins/packlets']
|
|
6
|
-
};
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
2
|
+
// See LICENSE in the project root for license information.
|
|
3
|
+
|
|
4
|
+
module.exports = {
|
|
5
|
+
extends: ['@rushstack/eslint-config/mixins/packlets']
|
|
6
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
2
|
-
// See LICENSE in the project root for license information.
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
extends: ['@rushstack/eslint-config/mixins/react']
|
|
6
|
-
};
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
2
|
+
// See LICENSE in the project root for license information.
|
|
3
|
+
|
|
4
|
+
module.exports = {
|
|
5
|
+
extends: ['@rushstack/eslint-config/mixins/react']
|
|
6
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
2
|
-
// See LICENSE in the project root for license information.
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
extends: ['@rushstack/eslint-config/mixins/tsdoc']
|
|
6
|
-
};
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
2
|
+
// See LICENSE in the project root for license information.
|
|
3
|
+
|
|
4
|
+
module.exports = {
|
|
5
|
+
extends: ['@rushstack/eslint-config/mixins/tsdoc']
|
|
6
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
2
|
-
// See LICENSE in the project root for license information.
|
|
3
|
-
|
|
4
|
-
require('@rushstack/eslint-config/patch/custom-config-package-names');
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
2
|
+
// See LICENSE in the project root for license information.
|
|
3
|
+
|
|
4
|
+
require('@rushstack/eslint-config/patch/custom-config-package-names');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
2
|
-
// See LICENSE in the project root for license information.
|
|
3
|
-
|
|
4
|
-
require('@rushstack/eslint-config/patch/modern-module-resolution');
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
2
|
+
// See LICENSE in the project root for license information.
|
|
3
|
+
|
|
4
|
+
require('@rushstack/eslint-config/patch/modern-module-resolution');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
2
|
-
// See LICENSE in the project root for license information.
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
extends: ['@rushstack/eslint-config/profile/node-trusted-tool']
|
|
6
|
-
};
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
2
|
+
// See LICENSE in the project root for license information.
|
|
3
|
+
|
|
4
|
+
module.exports = {
|
|
5
|
+
extends: ['@rushstack/eslint-config/profile/node-trusted-tool']
|
|
6
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
2
|
-
// See LICENSE in the project root for license information.
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
extends: ['@rushstack/eslint-config/profile/node']
|
|
6
|
-
};
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
2
|
+
// See LICENSE in the project root for license information.
|
|
3
|
+
|
|
4
|
+
module.exports = {
|
|
5
|
+
extends: ['@rushstack/eslint-config/profile/node']
|
|
6
|
+
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json.schemastore.org/tsconfig",
|
|
3
|
-
|
|
4
|
-
"compilerOptions": {
|
|
5
|
-
"outDir": "../../../../../lib",
|
|
6
|
-
"rootDir": "../../../../../src",
|
|
7
|
-
|
|
8
|
-
"forceConsistentCasingInFileNames": true,
|
|
9
|
-
"jsx": "react",
|
|
10
|
-
"declaration": true,
|
|
11
|
-
"sourceMap": true,
|
|
12
|
-
"declarationMap": true,
|
|
13
|
-
"inlineSources": true,
|
|
14
|
-
"experimentalDecorators": true,
|
|
15
|
-
"strict": true,
|
|
16
|
-
"useUnknownInCatchVariables": false,
|
|
17
|
-
"esModuleInterop": true,
|
|
18
|
-
"noEmitOnError": false,
|
|
19
|
-
"allowUnreachableCode": false,
|
|
20
|
-
|
|
21
|
-
"types": ["heft-jest"],
|
|
22
|
-
"typeRoots": ["../../../../../node_modules/@types", "../../node_modules/@types"],
|
|
23
|
-
|
|
24
|
-
"module": "commonjs",
|
|
25
|
-
"target": "es2017",
|
|
26
|
-
"lib": ["es2017"],
|
|
27
|
-
|
|
28
|
-
"incremental": true
|
|
29
|
-
},
|
|
30
|
-
"include": ["../../../../../src/**/*.ts", "../../../../../src/**/*.tsx"]
|
|
31
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json.schemastore.org/tsconfig",
|
|
3
|
+
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"outDir": "../../../../../lib",
|
|
6
|
+
"rootDir": "../../../../../src",
|
|
7
|
+
|
|
8
|
+
"forceConsistentCasingInFileNames": true,
|
|
9
|
+
"jsx": "react",
|
|
10
|
+
"declaration": true,
|
|
11
|
+
"sourceMap": true,
|
|
12
|
+
"declarationMap": true,
|
|
13
|
+
"inlineSources": true,
|
|
14
|
+
"experimentalDecorators": true,
|
|
15
|
+
"strict": true,
|
|
16
|
+
"useUnknownInCatchVariables": false,
|
|
17
|
+
"esModuleInterop": true,
|
|
18
|
+
"noEmitOnError": false,
|
|
19
|
+
"allowUnreachableCode": false,
|
|
20
|
+
|
|
21
|
+
"types": ["heft-jest"],
|
|
22
|
+
"typeRoots": ["../../../../../node_modules/@types", "../../node_modules/@types"],
|
|
23
|
+
|
|
24
|
+
"module": "commonjs",
|
|
25
|
+
"target": "es2017",
|
|
26
|
+
"lib": ["es2017"],
|
|
27
|
+
|
|
28
|
+
"incremental": true
|
|
29
|
+
},
|
|
30
|
+
"include": ["../../../../../src/**/*.ts", "../../../../../src/**/*.tsx"]
|
|
31
|
+
}
|