@angular-devkit/schematics 14.0.0-next.12 → 14.0.0-next.13
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/README.md
CHANGED
|
@@ -23,7 +23,7 @@ What distinguishes Schematics from other generators, such as Yeoman or Yarn Crea
|
|
|
23
23
|
|
|
24
24
|
# Tooling
|
|
25
25
|
|
|
26
|
-
Schematics is a library, and does not work by itself. A [reference CLI](https://github.com/angular/angular-cli/blob/
|
|
26
|
+
Schematics is a library, and does not work by itself. A [reference CLI](https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics_cli/bin/schematics.ts) is available on this repository, and is published on NPM at [@angular-devkit/schematics-cli](https://www.npmjs.com/package/@angular-devkit/schematics-cli). This document explains the library usage and the tooling API, but does not go into the tool implementation itself.
|
|
27
27
|
|
|
28
28
|
The tooling is responsible for the following tasks:
|
|
29
29
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/schematics",
|
|
3
|
-
"version": "14.0.0-next.
|
|
3
|
+
"version": "14.0.0-next.13",
|
|
4
4
|
"description": "Angular Schematics - Library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"typings": "src/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"schematics"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@angular-devkit/core": "14.0.0-next.
|
|
21
|
+
"@angular-devkit/core": "14.0.0-next.13",
|
|
22
22
|
"jsonc-parser": "3.0.0",
|
|
23
23
|
"magic-string": "0.26.1",
|
|
24
24
|
"ora": "5.4.1",
|
|
@@ -110,6 +110,9 @@ function default_1(factoryOptions = {}) {
|
|
|
110
110
|
if (options.quiet && taskPackageManagerProfile.quietArgument) {
|
|
111
111
|
args.push(taskPackageManagerProfile.quietArgument);
|
|
112
112
|
}
|
|
113
|
+
if (!options.allowScripts) {
|
|
114
|
+
args.push('--ignore-scripts');
|
|
115
|
+
}
|
|
113
116
|
if (factoryOptions.registry) {
|
|
114
117
|
args.push(`--registry="${factoryOptions.registry}"`);
|
|
115
118
|
}
|
|
@@ -13,10 +13,12 @@ interface NodePackageInstallTaskOptions {
|
|
|
13
13
|
workingDirectory?: string;
|
|
14
14
|
quiet?: boolean;
|
|
15
15
|
hideOutput?: boolean;
|
|
16
|
+
allowScripts?: boolean;
|
|
16
17
|
}
|
|
17
18
|
export declare class NodePackageInstallTask implements TaskConfigurationGenerator<NodePackageTaskOptions> {
|
|
18
19
|
quiet: boolean;
|
|
19
20
|
hideOutput: boolean;
|
|
21
|
+
allowScripts: boolean;
|
|
20
22
|
workingDirectory?: string;
|
|
21
23
|
packageManager?: string;
|
|
22
24
|
packageName?: string;
|
|
@@ -13,6 +13,7 @@ class NodePackageInstallTask {
|
|
|
13
13
|
constructor(options) {
|
|
14
14
|
this.quiet = true;
|
|
15
15
|
this.hideOutput = true;
|
|
16
|
+
this.allowScripts = false;
|
|
16
17
|
if (typeof options === 'string') {
|
|
17
18
|
this.workingDirectory = options;
|
|
18
19
|
}
|
|
@@ -32,6 +33,9 @@ class NodePackageInstallTask {
|
|
|
32
33
|
if (options.packageName != undefined) {
|
|
33
34
|
this.packageName = options.packageName;
|
|
34
35
|
}
|
|
36
|
+
if (options.allowScripts !== undefined) {
|
|
37
|
+
this.allowScripts = options.allowScripts;
|
|
38
|
+
}
|
|
35
39
|
}
|
|
36
40
|
}
|
|
37
41
|
toConfiguration() {
|
|
@@ -44,6 +48,7 @@ class NodePackageInstallTask {
|
|
|
44
48
|
workingDirectory: this.workingDirectory,
|
|
45
49
|
packageManager: this.packageManager,
|
|
46
50
|
packageName: this.packageName,
|
|
51
|
+
allowScripts: this.allowScripts,
|
|
47
52
|
},
|
|
48
53
|
};
|
|
49
54
|
}
|