@rushstack/heft-web-rig 0.19.7 → 0.19.9

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.
Files changed (33) hide show
  1. package/LICENSE +24 -24
  2. package/README.md +35 -35
  3. package/package.json +10 -10
  4. package/profiles/app/config/heft.json +68 -68
  5. package/profiles/app/config/jest.config.json +3 -3
  6. package/profiles/app/config/rush-project.json +12 -12
  7. package/profiles/app/config/sass.json +65 -65
  8. package/profiles/app/config/typescript.json +98 -98
  9. package/profiles/app/includes/eslint/mixins/friendly-locals.js +6 -6
  10. package/profiles/app/includes/eslint/mixins/packlets.js +6 -6
  11. package/profiles/app/includes/eslint/mixins/react.js +6 -6
  12. package/profiles/app/includes/eslint/mixins/tsdoc.js +6 -6
  13. package/profiles/app/includes/eslint/patch/custom-config-package-names.js +4 -4
  14. package/profiles/app/includes/eslint/patch/modern-module-resolution.js +4 -4
  15. package/profiles/app/includes/eslint/profile/web-app.js +6 -6
  16. package/profiles/app/tsconfig-base.json +34 -34
  17. package/profiles/app/webpack-base.config.js +39 -39
  18. package/profiles/library/config/api-extractor-task.json +27 -27
  19. package/profiles/library/config/heft.json +68 -68
  20. package/profiles/library/config/jest.config.json +3 -3
  21. package/profiles/library/config/rush-project.json +12 -12
  22. package/profiles/library/config/sass.json +65 -65
  23. package/profiles/library/config/typescript.json +98 -98
  24. package/profiles/library/includes/eslint/mixins/friendly-locals.js +6 -6
  25. package/profiles/library/includes/eslint/mixins/packlets.js +6 -6
  26. package/profiles/library/includes/eslint/mixins/react.js +6 -6
  27. package/profiles/library/includes/eslint/mixins/tsdoc.js +6 -6
  28. package/profiles/library/includes/eslint/patch/custom-config-package-names.js +4 -4
  29. package/profiles/library/includes/eslint/patch/modern-module-resolution.js +4 -4
  30. package/profiles/library/includes/eslint/profile/web-app.js +6 -6
  31. package/profiles/library/tsconfig-base.json +34 -34
  32. package/profiles/library/webpack-base.config.js +50 -50
  33. package/shared/webpack-base.config.js +273 -273
package/LICENSE CHANGED
@@ -1,24 +1,24 @@
1
- @rushstack/heft-web-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-web-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,35 +1,35 @@
1
- ## @rushstack/heft-web-rig
2
-
3
- A rig package for web 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 provides the following profiles:
8
-
9
- - [app](./profiles/app/): For applications that get bundled using Webpack.
10
- - [library](./profiles/library/): For creating library packages to be consumed by other web projects. ***Also use this profile for a library meant to be used by both Node.js and web apps.***
11
-
12
-
13
- To enable it, add a **rig.json** file to your project, as shown below:
14
-
15
- **config/rig.json**
16
- ```js
17
- {
18
- "$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
19
-
20
- "rigPackageName": "@rushstack/heft-web-rig",
21
- "rigProfile": "library"
22
- }
23
- ```
24
-
25
- The config files provided by this rig profile can be found in the [heft-web-rig/profiles/library](
26
- https://github.com/microsoft/rushstack/tree/main/rigs/heft-web-rig/profiles/library) source folder.
27
-
28
-
29
- ## Links
30
-
31
- - [CHANGELOG.md](
32
- https://github.com/microsoft/rushstack/blob/main/rigs/heft-web-rig/CHANGELOG.md) - Find
33
- out what's new in the latest version
34
-
35
- `@rushstack/heft-web-rig` is part of the [Rush Stack](https://rushstack.io/) family of projects.
1
+ ## @rushstack/heft-web-rig
2
+
3
+ A rig package for web 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 provides the following profiles:
8
+
9
+ - [app](./profiles/app/): For applications that get bundled using Webpack.
10
+ - [library](./profiles/library/): For creating library packages to be consumed by other web projects. ***Also use this profile for a library meant to be used by both Node.js and web apps.***
11
+
12
+
13
+ To enable it, add a **rig.json** file to your project, as shown below:
14
+
15
+ **config/rig.json**
16
+ ```js
17
+ {
18
+ "$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
19
+
20
+ "rigPackageName": "@rushstack/heft-web-rig",
21
+ "rigProfile": "library"
22
+ }
23
+ ```
24
+
25
+ The config files provided by this rig profile can be found in the [heft-web-rig/profiles/library](
26
+ https://github.com/microsoft/rushstack/tree/main/rigs/heft-web-rig/profiles/library) source folder.
27
+
28
+
29
+ ## Links
30
+
31
+ - [CHANGELOG.md](
32
+ https://github.com/microsoft/rushstack/blob/main/rigs/heft-web-rig/CHANGELOG.md) - Find
33
+ out what's new in the latest version
34
+
35
+ `@rushstack/heft-web-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-web-rig",
3
- "version": "0.19.7",
3
+ "version": "0.19.9",
4
4
  "description": "A rig package for web browser projects that build using Heft",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -9,7 +9,7 @@
9
9
  "directory": "rigs/heft-web-rig"
10
10
  },
11
11
  "peerDependencies": {
12
- "@rushstack/heft": "^0.62.3"
12
+ "@rushstack/heft": "^0.63.1"
13
13
  },
14
14
  "dependencies": {
15
15
  "@types/heft-jest": "1.0.1",
@@ -32,17 +32,17 @@
32
32
  "webpack-bundle-analyzer": "~4.5.0",
33
33
  "webpack-merge": "~5.8.0",
34
34
  "webpack": "~5.82.1",
35
- "@microsoft/api-extractor": "7.38.0",
36
- "@rushstack/heft-api-extractor-plugin": "0.2.9",
37
35
  "@rushstack/eslint-config": "3.4.1",
38
- "@rushstack/heft-jest-plugin": "0.10.1",
39
- "@rushstack/heft-lint-plugin": "0.2.9",
40
- "@rushstack/heft-webpack5-plugin": "0.9.9",
41
- "@rushstack/heft-sass-plugin": "0.12.9",
42
- "@rushstack/heft-typescript-plugin": "0.2.9"
36
+ "@rushstack/heft-jest-plugin": "0.10.3",
37
+ "@rushstack/heft-api-extractor-plugin": "0.2.11",
38
+ "@microsoft/api-extractor": "7.38.2",
39
+ "@rushstack/heft-lint-plugin": "0.2.11",
40
+ "@rushstack/heft-sass-plugin": "0.12.11",
41
+ "@rushstack/heft-typescript-plugin": "0.2.11",
42
+ "@rushstack/heft-webpack5-plugin": "0.9.11"
43
43
  },
44
44
  "devDependencies": {
45
- "@rushstack/heft": "0.62.3"
45
+ "@rushstack/heft": "0.63.1"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "",
@@ -1,68 +1,68 @@
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-amd", "lib-commonjs", "lib-es6"] }],
23
-
24
- "tasksByName": {
25
- "sass": {
26
- "taskPlugin": {
27
- "pluginPackage": "@rushstack/heft-sass-plugin"
28
- }
29
- },
30
- "typescript": {
31
- "taskDependencies": ["sass"],
32
- "taskPlugin": {
33
- "pluginPackage": "@rushstack/heft-typescript-plugin"
34
- }
35
- },
36
- "lint": {
37
- "taskDependencies": ["typescript"],
38
- "taskPlugin": {
39
- "pluginPackage": "@rushstack/heft-lint-plugin"
40
- }
41
- },
42
- "api-extractor": {
43
- "taskDependencies": ["typescript"],
44
- "taskPlugin": {
45
- "pluginPackage": "@rushstack/heft-api-extractor-plugin"
46
- }
47
- },
48
- "webpack": {
49
- "taskDependencies": ["typescript"],
50
- "taskPlugin": {
51
- "pluginPackage": "@rushstack/heft-webpack5-plugin"
52
- }
53
- }
54
- }
55
- },
56
-
57
- "test": {
58
- "phaseDependencies": ["build"],
59
- "tasksByName": {
60
- "jest": {
61
- "taskPlugin": {
62
- "pluginPackage": "@rushstack/heft-jest-plugin"
63
- }
64
- }
65
- }
66
- }
67
- }
68
- }
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-amd", "lib-commonjs", "lib-es6"] }],
23
+
24
+ "tasksByName": {
25
+ "sass": {
26
+ "taskPlugin": {
27
+ "pluginPackage": "@rushstack/heft-sass-plugin"
28
+ }
29
+ },
30
+ "typescript": {
31
+ "taskDependencies": ["sass"],
32
+ "taskPlugin": {
33
+ "pluginPackage": "@rushstack/heft-typescript-plugin"
34
+ }
35
+ },
36
+ "lint": {
37
+ "taskDependencies": ["typescript"],
38
+ "taskPlugin": {
39
+ "pluginPackage": "@rushstack/heft-lint-plugin"
40
+ }
41
+ },
42
+ "api-extractor": {
43
+ "taskDependencies": ["typescript"],
44
+ "taskPlugin": {
45
+ "pluginPackage": "@rushstack/heft-api-extractor-plugin"
46
+ }
47
+ },
48
+ "webpack": {
49
+ "taskDependencies": ["typescript"],
50
+ "taskPlugin": {
51
+ "pluginPackage": "@rushstack/heft-webpack5-plugin"
52
+ }
53
+ }
54
+ }
55
+ },
56
+
57
+ "test": {
58
+ "phaseDependencies": ["build"],
59
+ "tasksByName": {
60
+ "jest": {
61
+ "taskPlugin": {
62
+ "pluginPackage": "@rushstack/heft-jest-plugin"
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
@@ -1,3 +1,3 @@
1
- {
2
- "extends": "@rushstack/heft-jest-plugin/includes/jest-web.config.json"
3
- }
1
+ {
2
+ "extends": "@rushstack/heft-jest-plugin/includes/jest-web.config.json"
3
+ }
@@ -1,12 +1,12 @@
1
- {
2
- "operationSettings": [
3
- {
4
- "operationName": "_phase:build",
5
- "outputFolderNames": ["dist", "lib", "lib-amd", "lib-commonjs", "lib-es6", "temp"]
6
- },
7
- {
8
- "operationName": "build",
9
- "outputFolderNames": ["dist", "lib", "lib-amd", "lib-commonjs", "lib-es6", "temp"]
10
- }
11
- ]
12
- }
1
+ {
2
+ "operationSettings": [
3
+ {
4
+ "operationName": "_phase:build",
5
+ "outputFolderNames": ["dist", "lib", "lib-amd", "lib-commonjs", "lib-es6", "temp"]
6
+ },
7
+ {
8
+ "operationName": "build",
9
+ "outputFolderNames": ["dist", "lib", "lib-amd", "lib-commonjs", "lib-es6", "temp"]
10
+ }
11
+ ]
12
+ }
@@ -1,65 +1,65 @@
1
- /**
2
- * Configuration for @rushstack/heft-sass-plugin
3
- *
4
- * This optional additional file customizes Sass parsing, module resolution, and emitting of
5
- * Typescript .d.ts files.
6
- */
7
- {
8
- "$schema": "https://developer.microsoft.com/json-schemas/heft/v0/heft-sass-plugin.schema.json",
9
-
10
- /**
11
- * Optionally specifies another JSON config file that this file extends from. This provides a way for standard
12
- * settings to be shared across multiple projects.
13
- */
14
- // "extends": "base-project/config/serve-command.json",
15
-
16
- /**
17
- * The root directory for project source code.
18
- *
19
- * Default value: "src/"
20
- */
21
- // "srcFolder": "src/",
22
-
23
- /**
24
- * Output directory for generated Sass typings.
25
- *
26
- * Default value: "temp/sass-ts/"
27
- */
28
- // "generatedTsFolder": "temp/sass-ts/",
29
-
30
- /**
31
- * Determines whether export values are wrapped in a default property, or not.
32
- *
33
- * Default value: true
34
- */
35
- // "exportAsDefault": false,
36
-
37
- /**
38
- * If specified, folders where compiled CSS files will be emitted to. They will be named by appending
39
- * ".css" to the source file name for ease of reference translation.
40
- *
41
- * Default value: undefined
42
- */
43
- // "cssOutputFolders": ["lib", "lib-commonjs"],
44
-
45
- /**
46
- * Files with these extensions will pass through the Sass transpiler for typings generation.
47
- *
48
- * Default value: [".sass", ".scss", ".css"]
49
- */
50
- "fileExtensions": [".sass", ".scss"]
51
-
52
- /**
53
- * A list of paths used when resolving Sass imports. The paths should be relative to the project root.
54
- *
55
- * Default value: ["node_modules", "src"]
56
- */
57
- // "importIncludePaths": ["node_modules", "src"],
58
-
59
- /**
60
- * A list of file paths relative to the "src" folder that should be excluded from typings generation.
61
- *
62
- * Default value: undefined
63
- */
64
- // "excludeFiles": []
65
- }
1
+ /**
2
+ * Configuration for @rushstack/heft-sass-plugin
3
+ *
4
+ * This optional additional file customizes Sass parsing, module resolution, and emitting of
5
+ * Typescript .d.ts files.
6
+ */
7
+ {
8
+ "$schema": "https://developer.microsoft.com/json-schemas/heft/v0/heft-sass-plugin.schema.json",
9
+
10
+ /**
11
+ * Optionally specifies another JSON config file that this file extends from. This provides a way for standard
12
+ * settings to be shared across multiple projects.
13
+ */
14
+ // "extends": "base-project/config/serve-command.json",
15
+
16
+ /**
17
+ * The root directory for project source code.
18
+ *
19
+ * Default value: "src/"
20
+ */
21
+ // "srcFolder": "src/",
22
+
23
+ /**
24
+ * Output directory for generated Sass typings.
25
+ *
26
+ * Default value: "temp/sass-ts/"
27
+ */
28
+ // "generatedTsFolder": "temp/sass-ts/",
29
+
30
+ /**
31
+ * Determines whether export values are wrapped in a default property, or not.
32
+ *
33
+ * Default value: true
34
+ */
35
+ // "exportAsDefault": false,
36
+
37
+ /**
38
+ * If specified, folders where compiled CSS files will be emitted to. They will be named by appending
39
+ * ".css" to the source file name for ease of reference translation.
40
+ *
41
+ * Default value: undefined
42
+ */
43
+ // "cssOutputFolders": ["lib", "lib-commonjs"],
44
+
45
+ /**
46
+ * Files with these extensions will pass through the Sass transpiler for typings generation.
47
+ *
48
+ * Default value: [".sass", ".scss", ".css"]
49
+ */
50
+ "fileExtensions": [".sass", ".scss"]
51
+
52
+ /**
53
+ * A list of paths used when resolving Sass imports. The paths should be relative to the project root.
54
+ *
55
+ * Default value: ["node_modules", "src"]
56
+ */
57
+ // "importIncludePaths": ["node_modules", "src"],
58
+
59
+ /**
60
+ * A list of file paths relative to the "src" folder that should be excluded from typings generation.
61
+ *
62
+ * Default value: undefined
63
+ */
64
+ // "excludeFiles": []
65
+ }
@@ -1,98 +1,98 @@
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
- "moduleKind": "commonjs",
32
- "outFolderName": "lib-commonjs"
33
- }
34
- ],
35
-
36
- /**
37
- * 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.
38
- */
39
- // "emitCjsExtensionForCommonJS": true,
40
-
41
- /**
42
- * 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.
43
- */
44
- // "emitMjsExtensionForESModule": true,
45
-
46
- /**
47
- * If true and "isolatedModules" is configured in tsconfig.json, use a worker thread to run transpilation concurrently with type checking and declaration emit.
48
- */
49
- // "useTranspilerWorker": true
50
-
51
- /**
52
- * Configures additional file types that should be copied into the TypeScript compiler's emit folders, for example
53
- * so that these files can be resolved by import statements.
54
- */
55
- "staticAssetsToCopy": {
56
- /**
57
- * File extensions that should be copied from the src folder to the destination folder(s).
58
- */
59
- "fileExtensions": [
60
- ".aac",
61
- ".css",
62
- ".eot",
63
- ".gif",
64
- ".jpeg",
65
- ".jpg",
66
- ".json",
67
- ".m4a",
68
- ".mp3",
69
- ".mp4",
70
- ".oga",
71
- ".otf",
72
- ".png",
73
- ".scss",
74
- ".svg",
75
- ".ttf",
76
- ".wav",
77
- ".webm",
78
- ".webp",
79
- ".woff",
80
- ".woff2"
81
- ]
82
-
83
- /**
84
- * Glob patterns that should be explicitly included.
85
- */
86
- // "includeGlobs": [
87
- // "some/path/*.js"
88
- // ],
89
-
90
- /**
91
- * Glob patterns that should be explicitly excluded. This takes precedence over globs listed
92
- * in "includeGlobs" and files that match the file extensions provided in "fileExtensions".
93
- */
94
- // "excludeGlobs": [
95
- // "some/path/*.css"
96
- // ]
97
- }
98
- }
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
+ "moduleKind": "commonjs",
32
+ "outFolderName": "lib-commonjs"
33
+ }
34
+ ],
35
+
36
+ /**
37
+ * 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.
38
+ */
39
+ // "emitCjsExtensionForCommonJS": true,
40
+
41
+ /**
42
+ * 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.
43
+ */
44
+ // "emitMjsExtensionForESModule": true,
45
+
46
+ /**
47
+ * If true and "isolatedModules" is configured in tsconfig.json, use a worker thread to run transpilation concurrently with type checking and declaration emit.
48
+ */
49
+ // "useTranspilerWorker": true
50
+
51
+ /**
52
+ * Configures additional file types that should be copied into the TypeScript compiler's emit folders, for example
53
+ * so that these files can be resolved by import statements.
54
+ */
55
+ "staticAssetsToCopy": {
56
+ /**
57
+ * File extensions that should be copied from the src folder to the destination folder(s).
58
+ */
59
+ "fileExtensions": [
60
+ ".aac",
61
+ ".css",
62
+ ".eot",
63
+ ".gif",
64
+ ".jpeg",
65
+ ".jpg",
66
+ ".json",
67
+ ".m4a",
68
+ ".mp3",
69
+ ".mp4",
70
+ ".oga",
71
+ ".otf",
72
+ ".png",
73
+ ".scss",
74
+ ".svg",
75
+ ".ttf",
76
+ ".wav",
77
+ ".webm",
78
+ ".webp",
79
+ ".woff",
80
+ ".woff2"
81
+ ]
82
+
83
+ /**
84
+ * Glob patterns that should be explicitly included.
85
+ */
86
+ // "includeGlobs": [
87
+ // "some/path/*.js"
88
+ // ],
89
+
90
+ /**
91
+ * Glob patterns that should be explicitly excluded. This takes precedence over globs listed
92
+ * in "includeGlobs" and files that match the file extensions provided in "fileExtensions".
93
+ */
94
+ // "excludeGlobs": [
95
+ // "some/path/*.css"
96
+ // ]
97
+ }
98
+ }