@angular-devkit/architect 0.1901.0-next.1 → 0.1901.0-next.2
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/index.d.ts +8 -0
- package/index.js +24 -0
- package/node/node-modules-architect-host.js +8 -15
- package/package.json +5 -3
- package/tsconfig-build.json +6 -0
package/index.d.ts
ADDED
package/index.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
+
*/
|
|
9
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
21
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
__exportStar(require("./src/index"), exports);
|
|
@@ -167,27 +167,20 @@ class WorkspaceNodeModulesArchitectHost {
|
|
|
167
167
|
throw new Error(`Package "${packageName}" has an invalid builder implementation path: "${builderName}" --> "${builder.implementation}"`);
|
|
168
168
|
}
|
|
169
169
|
// Determine builder option schema path (relative within package only)
|
|
170
|
-
let schemaPath = builder.schema
|
|
170
|
+
let schemaPath = builder.schema;
|
|
171
171
|
if (!schemaPath) {
|
|
172
172
|
throw new Error('Could not find the schema for builder ' + builderStr);
|
|
173
173
|
}
|
|
174
|
-
if (path.isAbsolute(schemaPath) || schemaPath.startsWith('..')) {
|
|
175
|
-
throw new Error(`Package "${packageName}" has an invalid builder
|
|
174
|
+
if (path.isAbsolute(schemaPath) || path.normalize(schemaPath).startsWith('..')) {
|
|
175
|
+
throw new Error(`Package "${packageName}" has an invalid builder schema path: "${builderName}" --> "${builder.schema}"`);
|
|
176
176
|
}
|
|
177
177
|
// The file could be either a package reference or in the local manifest directory.
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
schemaPath = localRequire.resolve(schemaPath, {
|
|
181
|
-
paths: [buildersManifestDirectory],
|
|
182
|
-
});
|
|
178
|
+
if (schemaPath.startsWith('.')) {
|
|
179
|
+
schemaPath = path.join(buildersManifestDirectory, schemaPath);
|
|
183
180
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
188
|
-
else {
|
|
189
|
-
throw e;
|
|
190
|
-
}
|
|
181
|
+
else {
|
|
182
|
+
const manifestRequire = (0, node_module_1.createRequire)(buildersManifestDirectory + '/');
|
|
183
|
+
schemaPath = manifestRequire.resolve(schemaPath);
|
|
191
184
|
}
|
|
192
185
|
const schemaText = (0, node_fs_1.readFileSync)(schemaPath, 'utf-8');
|
|
193
186
|
return Promise.resolve({
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/architect",
|
|
3
|
-
"version": "0.1901.0-next.
|
|
3
|
+
"version": "0.1901.0-next.2",
|
|
4
4
|
"description": "Angular Build Facade",
|
|
5
5
|
"experimental": true,
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"typings": "src/index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@angular-devkit/core": "19.1.0-next.
|
|
9
|
+
"@angular-devkit/core": "19.1.0-next.2",
|
|
10
10
|
"rxjs": "7.8.1"
|
|
11
11
|
},
|
|
12
12
|
"builders": "./builders/builders.json",
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
"devkit",
|
|
18
18
|
"sdk"
|
|
19
19
|
],
|
|
20
|
-
"packageManager": "yarn@4.5.0",
|
|
21
20
|
"repository": {
|
|
22
21
|
"type": "git",
|
|
23
22
|
"url": "https://github.com/angular/angular-cli.git"
|
|
@@ -40,5 +39,8 @@
|
|
|
40
39
|
"puppeteer": {
|
|
41
40
|
"built": true
|
|
42
41
|
}
|
|
42
|
+
},
|
|
43
|
+
"pnpm": {
|
|
44
|
+
"onlyBuiltDependencies": []
|
|
43
45
|
}
|
|
44
46
|
}
|