@nx/rollup 22.7.0-beta.7 → 22.7.0-beta.8

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/executors.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
- "executors": {
3
- "rollup": {
4
- "implementation": "./src/executors/rollup/rollup.impl",
5
- "schema": "./src/executors/rollup/schema.json",
6
- "description": "Bundle a package using Rollup."
2
+ "executors": {
3
+ "rollup": {
4
+ "implementation": "./src/executors/rollup/rollup.impl",
5
+ "schema": "./src/executors/rollup/schema.json",
6
+ "description": "Bundle a package using Rollup."
7
+ }
7
8
  }
8
- }
9
9
  }
package/generators.json CHANGED
@@ -1,24 +1,24 @@
1
1
  {
2
- "name": "Nx rollup",
3
- "version": "0.1",
4
- "generators": {
5
- "init": {
6
- "factory": "./src/generators/init/init#rollupInitGenerator",
7
- "schema": "./src/generators/init/schema.json",
8
- "description": "Initialize the `@nx/rollup` plugin.",
9
- "aliases": ["ng-add"],
10
- "hidden": true
11
- },
12
- "configuration": {
13
- "aliases": ["rollup-project"],
14
- "factory": "./src/generators/configuration/configuration",
15
- "schema": "./src/generators/configuration/schema.json",
16
- "description": "Add rollup configuration to a project."
17
- },
18
- "convert-to-inferred": {
19
- "factory": "./src/generators/convert-to-inferred/convert-to-inferred",
20
- "schema": "./src/generators/convert-to-inferred/schema.json",
21
- "description": "Convert existing Rollup project(s) using `@nx/rollup:*` executors to use `@nx/rollup/plugin`."
2
+ "name": "Nx rollup",
3
+ "version": "0.1",
4
+ "generators": {
5
+ "init": {
6
+ "factory": "./src/generators/init/init#rollupInitGenerator",
7
+ "schema": "./src/generators/init/schema.json",
8
+ "description": "Initialize the `@nx/rollup` plugin.",
9
+ "aliases": ["ng-add"],
10
+ "hidden": true
11
+ },
12
+ "configuration": {
13
+ "aliases": ["rollup-project"],
14
+ "factory": "./src/generators/configuration/configuration",
15
+ "schema": "./src/generators/configuration/schema.json",
16
+ "description": "Add rollup configuration to a project."
17
+ },
18
+ "convert-to-inferred": {
19
+ "factory": "./src/generators/convert-to-inferred/convert-to-inferred",
20
+ "schema": "./src/generators/convert-to-inferred/schema.json",
21
+ "description": "Convert existing Rollup project(s) using `@nx/rollup:*` executors to use `@nx/rollup/plugin`."
22
+ }
22
23
  }
23
- }
24
24
  }
package/migrations.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "generators": {},
3
- "packageJsonUpdates": {}
2
+ "generators": {},
3
+ "packageJsonUpdates": {}
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/rollup",
3
- "version": "22.7.0-beta.7",
3
+ "version": "22.7.0-beta.8",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Rollup contains executors and generators that support building applications using Rollup.",
6
6
  "repository": {
@@ -30,8 +30,8 @@
30
30
  "migrations": "./migrations.json"
31
31
  },
32
32
  "dependencies": {
33
- "@nx/devkit": "22.7.0-beta.7",
34
- "@nx/js": "22.7.0-beta.7",
33
+ "@nx/devkit": "22.7.0-beta.8",
34
+ "@nx/js": "22.7.0-beta.8",
35
35
  "@rollup/plugin-babel": "^6.0.4",
36
36
  "@rollup/plugin-commonjs": "^25.0.7",
37
37
  "@rollup/plugin-image": "^3.0.3",
@@ -41,7 +41,7 @@
41
41
  "autoprefixer": "^10.4.9",
42
42
  "concat-with-sourcemaps": "^1.1.0",
43
43
  "picocolors": "^1.1.0",
44
- "picomatch": "4.0.2",
44
+ "picomatch": "4.0.4",
45
45
  "postcss": "^8.4.38",
46
46
  "postcss-modules": "^6.0.1",
47
47
  "rollup": "^4.14.0",
@@ -49,7 +49,7 @@
49
49
  "tslib": "^2.3.0"
50
50
  },
51
51
  "devDependencies": {
52
- "nx": "22.7.0-beta.7",
52
+ "nx": "22.7.0-beta.8",
53
53
  "source-map-js": "^1.2.0"
54
54
  },
55
55
  "publishConfig": {
@@ -1,195 +1,195 @@
1
1
  {
2
- "version": 2,
3
- "outputCapture": "direct-nodejs",
4
- "title": "Web Library Rollup Target",
5
- "description": "Packages a library for different web usages (ESM, CommonJS).",
6
- "cli": "nx",
7
- "type": "object",
8
- "properties": {
9
- "project": {
10
- "type": "string",
11
- "description": "The path to package.json file."
12
- },
13
- "main": {
14
- "type": "string",
15
- "description": "The path to the entry file, relative to project.",
16
- "alias": "entryFile",
17
- "x-completion-type": "file",
18
- "x-completion-glob": "**/*@(.js|.ts)",
19
- "x-priority": "important"
20
- },
21
- "outputPath": {
22
- "type": "string",
23
- "description": "The output path of the generated files.",
24
- "x-completion-type": "directory",
25
- "x-priority": "important"
26
- },
27
- "outputFileName": {
28
- "type": "string",
29
- "description": "Name of the main output file. Defaults same basename as 'main' file."
30
- },
31
- "deleteOutputPath": {
32
- "type": "boolean",
33
- "description": "Delete the output path before building.",
34
- "default": true
35
- },
36
- "tsConfig": {
37
- "type": "string",
38
- "description": "The path to tsconfig file.",
39
- "x-completion-type": "file",
40
- "x-completion-glob": "tsconfig.*.json",
41
- "x-priority": "important"
42
- },
43
- "allowJs": {
44
- "type": "boolean",
45
- "description": "Allow JavaScript files to be compiled.",
46
- "default": false
47
- },
48
- "format": {
49
- "type": "array",
50
- "description": "List of module formats to output. Defaults to matching format from tsconfig (e.g. CJS for CommonJS, and ESM otherwise).",
51
- "alias": "f",
52
- "items": {
53
- "type": "string",
54
- "enum": ["esm", "cjs"]
55
- }
56
- },
57
- "external": {
58
- "type": "array",
59
- "description": "A list of external modules that will not be bundled (`react`, `react-dom`, etc.). Can also be set to `all` (bundle nothing) or `none` (bundle everything).",
60
- "oneOf": [
61
- {
62
- "type": "string",
63
- "enum": ["all", "none"]
64
- },
65
- {
66
- "type": "array",
67
- "items": {
68
- "type": "string"
69
- }
70
- }
71
- ]
72
- },
73
- "watch": {
74
- "type": "boolean",
75
- "description": "Enable re-building when files change.",
76
- "default": false
77
- },
78
- "rollupConfig": {
79
- "oneOf": [
80
- {
81
- "type": "array",
82
- "items": {
2
+ "version": 2,
3
+ "outputCapture": "direct-nodejs",
4
+ "title": "Web Library Rollup Target",
5
+ "description": "Packages a library for different web usages (ESM, CommonJS).",
6
+ "cli": "nx",
7
+ "type": "object",
8
+ "properties": {
9
+ "project": {
83
10
  "type": "string",
11
+ "description": "The path to package.json file."
12
+ },
13
+ "main": {
14
+ "type": "string",
15
+ "description": "The path to the entry file, relative to project.",
16
+ "alias": "entryFile",
84
17
  "x-completion-type": "file",
85
- "x-completion-glob": "rollup?(*)@(.js|.ts)"
86
- }
18
+ "x-completion-glob": "**/*@(.js|.ts)",
19
+ "x-priority": "important"
87
20
  },
88
- {
89
- "type": "string",
90
- "x-completion-type": "file",
91
- "x-completion-glob": "rollup?(*)@(.js|.ts)"
92
- }
93
- ],
94
- "description": "Path to a function which takes a rollup config and returns an updated rollup config."
95
- },
96
- "extractCss": {
97
- "type": ["boolean", "string"],
98
- "description": "CSS files will be extracted to the output folder. Alternatively custom filename can be provided (e.g. styles.css)",
99
- "default": true
100
- },
101
- "assets": {
102
- "type": "array",
103
- "description": "List of static assets.",
104
- "default": [],
105
- "items": {
106
- "$ref": "#/definitions/assetPattern"
107
- }
108
- },
109
- "compiler": {
110
- "type": "string",
111
- "enum": ["babel", "swc", "tsc"],
112
- "default": "babel",
113
- "description": "Which compiler to use."
114
- },
115
- "babelUpwardRootMode": {
116
- "type": "boolean",
117
- "description": "Whether to set rootmode to upward. See https://babeljs.io/docs/en/options#rootmode",
118
- "default": false
119
- },
120
- "javascriptEnabled": {
121
- "type": "boolean",
122
- "description": "Sets `javascriptEnabled` option for less loader",
123
- "default": false
124
- },
125
- "generateExportsField": {
126
- "type": "boolean",
127
- "alias": "exports",
128
- "description": "Update the output package.json file's 'exports' field. This field is used by Node and bundles.",
129
- "default": false,
130
- "x-priority": "important"
131
- },
132
- "additionalEntryPoints": {
133
- "type": "array",
134
- "description": "Additional entry-points to add to exports field in the package.json file.",
135
- "items": {
136
- "type": "string"
137
- },
138
- "x-priority": "important"
139
- },
140
- "buildLibsFromSource": {
141
- "type": "boolean",
142
- "description": "Read buildable libraries from source instead of building them separately.",
143
- "default": true
144
- },
145
- "skipTypeCheck": {
146
- "type": "boolean",
147
- "description": "Whether to skip TypeScript type checking.",
148
- "default": false
149
- },
150
- "skipTypeField": {
151
- "type": "boolean",
152
- "description": "Prevents 'type' field from being added to compiled package.json file. Use this if you are having an issue with this field.",
153
- "default": false
154
- },
155
- "sourceMap": {
156
- "description": "Output sourcemaps.",
157
- "type": "boolean"
158
- },
159
- "useLegacyTypescriptPlugin": {
160
- "type": "boolean",
161
- "description": "Use rollup-plugin-typescript2 instead of @rollup/plugin-typescript.",
162
- "default": false
163
- }
164
- },
165
- "required": ["tsConfig", "main", "outputPath"],
166
- "definitions": {
167
- "assetPattern": {
168
- "oneOf": [
169
- {
170
- "type": "object",
171
- "properties": {
172
- "glob": {
173
- "type": "string",
174
- "description": "The pattern to match."
175
- },
176
- "input": {
177
- "type": "string",
178
- "description": "The input directory path in which to apply `glob`. Defaults to the project root."
179
- },
180
- "output": {
181
- "type": "string",
182
- "description": "Relative path within the output folder."
21
+ "outputPath": {
22
+ "type": "string",
23
+ "description": "The output path of the generated files.",
24
+ "x-completion-type": "directory",
25
+ "x-priority": "important"
26
+ },
27
+ "outputFileName": {
28
+ "type": "string",
29
+ "description": "Name of the main output file. Defaults same basename as 'main' file."
30
+ },
31
+ "deleteOutputPath": {
32
+ "type": "boolean",
33
+ "description": "Delete the output path before building.",
34
+ "default": true
35
+ },
36
+ "tsConfig": {
37
+ "type": "string",
38
+ "description": "The path to tsconfig file.",
39
+ "x-completion-type": "file",
40
+ "x-completion-glob": "tsconfig.*.json",
41
+ "x-priority": "important"
42
+ },
43
+ "allowJs": {
44
+ "type": "boolean",
45
+ "description": "Allow JavaScript files to be compiled.",
46
+ "default": false
47
+ },
48
+ "format": {
49
+ "type": "array",
50
+ "description": "List of module formats to output. Defaults to matching format from tsconfig (e.g. CJS for CommonJS, and ESM otherwise).",
51
+ "alias": "f",
52
+ "items": {
53
+ "type": "string",
54
+ "enum": ["esm", "cjs"]
55
+ }
56
+ },
57
+ "external": {
58
+ "type": "array",
59
+ "description": "A list of external modules that will not be bundled (`react`, `react-dom`, etc.). Can also be set to `all` (bundle nothing) or `none` (bundle everything).",
60
+ "oneOf": [
61
+ {
62
+ "type": "string",
63
+ "enum": ["all", "none"]
64
+ },
65
+ {
66
+ "type": "array",
67
+ "items": {
68
+ "type": "string"
69
+ }
70
+ }
71
+ ]
72
+ },
73
+ "watch": {
74
+ "type": "boolean",
75
+ "description": "Enable re-building when files change.",
76
+ "default": false
77
+ },
78
+ "rollupConfig": {
79
+ "oneOf": [
80
+ {
81
+ "type": "array",
82
+ "items": {
83
+ "type": "string",
84
+ "x-completion-type": "file",
85
+ "x-completion-glob": "rollup?(*)@(.js|.ts)"
86
+ }
87
+ },
88
+ {
89
+ "type": "string",
90
+ "x-completion-type": "file",
91
+ "x-completion-glob": "rollup?(*)@(.js|.ts)"
92
+ }
93
+ ],
94
+ "description": "Path to a function which takes a rollup config and returns an updated rollup config."
95
+ },
96
+ "extractCss": {
97
+ "type": ["boolean", "string"],
98
+ "description": "CSS files will be extracted to the output folder. Alternatively custom filename can be provided (e.g. styles.css)",
99
+ "default": true
100
+ },
101
+ "assets": {
102
+ "type": "array",
103
+ "description": "List of static assets.",
104
+ "default": [],
105
+ "items": {
106
+ "$ref": "#/definitions/assetPattern"
183
107
  }
184
- },
185
- "additionalProperties": false,
186
- "required": ["glob", "input", "output"]
187
108
  },
188
- {
189
- "type": "string"
109
+ "compiler": {
110
+ "type": "string",
111
+ "enum": ["babel", "swc", "tsc"],
112
+ "default": "babel",
113
+ "description": "Which compiler to use."
114
+ },
115
+ "babelUpwardRootMode": {
116
+ "type": "boolean",
117
+ "description": "Whether to set rootmode to upward. See https://babeljs.io/docs/en/options#rootmode",
118
+ "default": false
119
+ },
120
+ "javascriptEnabled": {
121
+ "type": "boolean",
122
+ "description": "Sets `javascriptEnabled` option for less loader",
123
+ "default": false
124
+ },
125
+ "generateExportsField": {
126
+ "type": "boolean",
127
+ "alias": "exports",
128
+ "description": "Update the output package.json file's 'exports' field. This field is used by Node and bundles.",
129
+ "default": false,
130
+ "x-priority": "important"
131
+ },
132
+ "additionalEntryPoints": {
133
+ "type": "array",
134
+ "description": "Additional entry-points to add to exports field in the package.json file.",
135
+ "items": {
136
+ "type": "string"
137
+ },
138
+ "x-priority": "important"
139
+ },
140
+ "buildLibsFromSource": {
141
+ "type": "boolean",
142
+ "description": "Read buildable libraries from source instead of building them separately.",
143
+ "default": true
144
+ },
145
+ "skipTypeCheck": {
146
+ "type": "boolean",
147
+ "description": "Whether to skip TypeScript type checking.",
148
+ "default": false
149
+ },
150
+ "skipTypeField": {
151
+ "type": "boolean",
152
+ "description": "Prevents 'type' field from being added to compiled package.json file. Use this if you are having an issue with this field.",
153
+ "default": false
154
+ },
155
+ "sourceMap": {
156
+ "description": "Output sourcemaps.",
157
+ "type": "boolean"
158
+ },
159
+ "useLegacyTypescriptPlugin": {
160
+ "type": "boolean",
161
+ "description": "Use rollup-plugin-typescript2 instead of @rollup/plugin-typescript.",
162
+ "default": false
190
163
  }
191
- ]
192
- }
193
- },
194
- "examplesFile": "../../docs/rollup-examples.md"
164
+ },
165
+ "required": ["tsConfig", "main", "outputPath"],
166
+ "definitions": {
167
+ "assetPattern": {
168
+ "oneOf": [
169
+ {
170
+ "type": "object",
171
+ "properties": {
172
+ "glob": {
173
+ "type": "string",
174
+ "description": "The pattern to match."
175
+ },
176
+ "input": {
177
+ "type": "string",
178
+ "description": "The input directory path in which to apply `glob`. Defaults to the project root."
179
+ },
180
+ "output": {
181
+ "type": "string",
182
+ "description": "Relative path within the output folder."
183
+ }
184
+ },
185
+ "additionalProperties": false,
186
+ "required": ["glob", "input", "output"]
187
+ },
188
+ {
189
+ "type": "string"
190
+ }
191
+ ]
192
+ }
193
+ },
194
+ "examplesFile": "../../docs/rollup-examples.md"
195
195
  }
@@ -1,86 +1,86 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxRollupProject",
4
- "cli": "nx",
5
- "title": "Add Rollup Configuration to a project",
6
- "description": "Add Rollup Configuration to a project.",
7
- "type": "object",
8
- "properties": {
9
- "project": {
10
- "type": "string",
11
- "description": "The name of the project.",
12
- "$default": {
13
- "$source": "argv",
14
- "index": 0
15
- },
16
- "x-dropdown": "project",
17
- "x-prompt": "What is the name of the project to set up a rollup for?",
18
- "x-priority": "important"
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxRollupProject",
4
+ "cli": "nx",
5
+ "title": "Add Rollup Configuration to a project",
6
+ "description": "Add Rollup Configuration to a project.",
7
+ "type": "object",
8
+ "properties": {
9
+ "project": {
10
+ "type": "string",
11
+ "description": "The name of the project.",
12
+ "$default": {
13
+ "$source": "argv",
14
+ "index": 0
15
+ },
16
+ "x-dropdown": "project",
17
+ "x-prompt": "What is the name of the project to set up a rollup for?",
18
+ "x-priority": "important"
19
+ },
20
+ "compiler": {
21
+ "type": "string",
22
+ "enum": ["babel", "swc", "tsc"],
23
+ "description": "The compiler to use to build source.",
24
+ "default": "babel"
25
+ },
26
+ "main": {
27
+ "type": "string",
28
+ "description": "Path relative to the workspace root for the main entry file. Defaults to '<projectRoot>/src/index.ts'.",
29
+ "alias": "entryFile",
30
+ "x-priority": "important"
31
+ },
32
+ "tsConfig": {
33
+ "type": "string",
34
+ "description": "Path relative to the workspace root for the tsconfig file to build with. Defaults to '<projectRoot>/tsconfig.lib.json'.",
35
+ "x-priority": "important"
36
+ },
37
+ "skipFormat": {
38
+ "description": "Skip formatting files.",
39
+ "type": "boolean",
40
+ "default": false,
41
+ "x-priority": "internal"
42
+ },
43
+ "skipPackageJson": {
44
+ "type": "boolean",
45
+ "default": false,
46
+ "description": "Do not add dependencies to `package.json`.",
47
+ "x-priority": "internal"
48
+ },
49
+ "skipValidation": {
50
+ "type": "boolean",
51
+ "default": false,
52
+ "description": "Do not perform any validation on existing project.",
53
+ "x-priority": "internal"
54
+ },
55
+ "importPath": {
56
+ "type": "string",
57
+ "description": "The library name used to import it, like `@myorg/my-awesome-lib`."
58
+ },
59
+ "external": {
60
+ "type": "array",
61
+ "description": "A list of external modules that will not be bundled (`react`, `react-dom`, etc.).",
62
+ "items": {
63
+ "type": "string"
64
+ }
65
+ },
66
+ "rollupConfig": {
67
+ "type": "string",
68
+ "description": "Path relative to workspace root to a custom rollup file that takes a config object and returns an updated config."
69
+ },
70
+ "buildTarget": {
71
+ "description": "The build target to add.",
72
+ "type": "string",
73
+ "default": "build"
74
+ },
75
+ "format": {
76
+ "description": "The format to build the library (esm or cjs).",
77
+ "type": "array",
78
+ "items": {
79
+ "type": "string",
80
+ "enum": ["esm", "cjs"]
81
+ },
82
+ "default": ["esm"]
83
+ }
19
84
  },
20
- "compiler": {
21
- "type": "string",
22
- "enum": ["babel", "swc", "tsc"],
23
- "description": "The compiler to use to build source.",
24
- "default": "babel"
25
- },
26
- "main": {
27
- "type": "string",
28
- "description": "Path relative to the workspace root for the main entry file. Defaults to '<projectRoot>/src/index.ts'.",
29
- "alias": "entryFile",
30
- "x-priority": "important"
31
- },
32
- "tsConfig": {
33
- "type": "string",
34
- "description": "Path relative to the workspace root for the tsconfig file to build with. Defaults to '<projectRoot>/tsconfig.lib.json'.",
35
- "x-priority": "important"
36
- },
37
- "skipFormat": {
38
- "description": "Skip formatting files.",
39
- "type": "boolean",
40
- "default": false,
41
- "x-priority": "internal"
42
- },
43
- "skipPackageJson": {
44
- "type": "boolean",
45
- "default": false,
46
- "description": "Do not add dependencies to `package.json`.",
47
- "x-priority": "internal"
48
- },
49
- "skipValidation": {
50
- "type": "boolean",
51
- "default": false,
52
- "description": "Do not perform any validation on existing project.",
53
- "x-priority": "internal"
54
- },
55
- "importPath": {
56
- "type": "string",
57
- "description": "The library name used to import it, like `@myorg/my-awesome-lib`."
58
- },
59
- "external": {
60
- "type": "array",
61
- "description": "A list of external modules that will not be bundled (`react`, `react-dom`, etc.).",
62
- "items": {
63
- "type": "string"
64
- }
65
- },
66
- "rollupConfig": {
67
- "type": "string",
68
- "description": "Path relative to workspace root to a custom rollup file that takes a config object and returns an updated config."
69
- },
70
- "buildTarget": {
71
- "description": "The build target to add.",
72
- "type": "string",
73
- "default": "build"
74
- },
75
- "format": {
76
- "description": "The format to build the library (esm or cjs).",
77
- "type": "array",
78
- "items": {
79
- "type": "string",
80
- "enum": ["esm", "cjs"]
81
- },
82
- "default": ["esm"]
83
- }
84
- },
85
- "required": []
85
+ "required": []
86
86
  }
@@ -1,19 +1,19 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxRollupConvertToInferred",
4
- "description": "Convert existing Rollup project(s) using `@nx/rollup:rollup` executor to use `@nx/rollup/plugin`. Defaults to migrating all projects. Pass '--project' to migrate only one target.",
5
- "title": "Convert Rollup project from executor to plugin",
6
- "type": "object",
7
- "properties": {
8
- "project": {
9
- "type": "string",
10
- "description": "The project to convert from using the `@nx/rollup:rollup` executor to use `@nx/rollup/plugin`.",
11
- "x-priority": "important"
12
- },
13
- "skipFormat": {
14
- "type": "boolean",
15
- "description": "Whether to format files at the end of the migration.",
16
- "default": false
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxRollupConvertToInferred",
4
+ "description": "Convert existing Rollup project(s) using `@nx/rollup:rollup` executor to use `@nx/rollup/plugin`. Defaults to migrating all projects. Pass '--project' to migrate only one target.",
5
+ "title": "Convert Rollup project from executor to plugin",
6
+ "type": "object",
7
+ "properties": {
8
+ "project": {
9
+ "type": "string",
10
+ "description": "The project to convert from using the `@nx/rollup:rollup` executor to use `@nx/rollup/plugin`.",
11
+ "x-priority": "important"
12
+ },
13
+ "skipFormat": {
14
+ "type": "boolean",
15
+ "description": "Whether to format files at the end of the migration.",
16
+ "default": false
17
+ }
17
18
  }
18
- }
19
19
  }
@@ -1,33 +1,33 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxWebpackInit",
4
- "cli": "nx",
5
- "title": "Init Webpack Plugin",
6
- "description": "Init Webpack Plugin.",
7
- "type": "object",
8
- "properties": {
9
- "skipFormat": {
10
- "description": "Skip formatting files.",
11
- "type": "boolean",
12
- "default": false
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxWebpackInit",
4
+ "cli": "nx",
5
+ "title": "Init Webpack Plugin",
6
+ "description": "Init Webpack Plugin.",
7
+ "type": "object",
8
+ "properties": {
9
+ "skipFormat": {
10
+ "description": "Skip formatting files.",
11
+ "type": "boolean",
12
+ "default": false
13
+ },
14
+ "skipPackageJson": {
15
+ "description": "Do not add dependencies to `package.json`.",
16
+ "type": "boolean",
17
+ "default": false
18
+ },
19
+ "keepExistingVersions": {
20
+ "type": "boolean",
21
+ "x-priority": "internal",
22
+ "description": "Keep existing dependencies versions",
23
+ "default": false
24
+ },
25
+ "updatePackageScripts": {
26
+ "type": "boolean",
27
+ "x-priority": "internal",
28
+ "description": "Update `package.json` scripts with inferred targets",
29
+ "default": false
30
+ }
13
31
  },
14
- "skipPackageJson": {
15
- "description": "Do not add dependencies to `package.json`.",
16
- "type": "boolean",
17
- "default": false
18
- },
19
- "keepExistingVersions": {
20
- "type": "boolean",
21
- "x-priority": "internal",
22
- "description": "Keep existing dependencies versions",
23
- "default": false
24
- },
25
- "updatePackageScripts": {
26
- "type": "boolean",
27
- "x-priority": "internal",
28
- "description": "Update `package.json` scripts with inferred targets",
29
- "default": false
30
- }
31
- },
32
- "required": []
32
+ "required": []
33
33
  }