@angular-devkit/architect 0.1901.0-next.2 → 0.1901.0
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 +1 -1
- package/builders/all-of.d.ts +1 -1
- package/builders/concat.d.ts +1 -1
- package/builders/false.d.ts +1 -1
- package/builders/true.d.ts +1 -1
- package/node/node-modules-architect-host.js +5 -2
- package/package.json +2 -2
- package/src/create-builder.d.ts +1 -0
- package/src/create-builder.js +3 -0
- package/src/index.d.ts +1 -1
- package/src/internal.d.ts +1 -0
- package/tsconfig-build.json +0 -6
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2010-
|
|
3
|
+
Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/builders/all-of.d.ts
CHANGED
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { json } from '@angular-devkit/core';
|
|
9
9
|
import { Schema as OperatorSchema } from './operator-schema';
|
|
10
|
-
declare const _default: import("../src
|
|
10
|
+
declare const _default: import("../src").Builder<json.JsonObject & OperatorSchema>;
|
|
11
11
|
export default _default;
|
package/builders/concat.d.ts
CHANGED
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { json } from '@angular-devkit/core';
|
|
9
9
|
import { Schema as OperatorSchema } from './operator-schema';
|
|
10
|
-
declare const _default: import("../src
|
|
10
|
+
declare const _default: import("../src").Builder<json.JsonObject & OperatorSchema>;
|
|
11
11
|
export default _default;
|
package/builders/false.d.ts
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
-
declare const _default: import("../src
|
|
8
|
+
declare const _default: import("../src").Builder<import("@angular-devkit/core").JsonObject>;
|
|
9
9
|
export default _default;
|
package/builders/true.d.ts
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
-
declare const _default: import("../src
|
|
8
|
+
declare const _default: import("../src").Builder<import("@angular-devkit/core").JsonObject>;
|
|
9
9
|
export default _default;
|
|
@@ -67,6 +67,9 @@ function findProjectTarget(workspace, project, target) {
|
|
|
67
67
|
if (!targetDefinition) {
|
|
68
68
|
throw new Error('Project target does not exist.');
|
|
69
69
|
}
|
|
70
|
+
if (!targetDefinition.builder) {
|
|
71
|
+
throw new Error(`A builder is not set for target '${target}' in project '${project}'.`);
|
|
72
|
+
}
|
|
70
73
|
return targetDefinition;
|
|
71
74
|
}
|
|
72
75
|
class WorkspaceNodeModulesArchitectHost {
|
|
@@ -80,8 +83,8 @@ class WorkspaceNodeModulesArchitectHost {
|
|
|
80
83
|
else {
|
|
81
84
|
this.workspaceHost = {
|
|
82
85
|
async getBuilderName(project, target) {
|
|
83
|
-
const
|
|
84
|
-
return
|
|
86
|
+
const { builder } = findProjectTarget(workspaceOrHost, project, target);
|
|
87
|
+
return builder;
|
|
85
88
|
},
|
|
86
89
|
async getOptions(project, target, configuration) {
|
|
87
90
|
const targetDefinition = findProjectTarget(workspaceOrHost, project, target);
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/architect",
|
|
3
|
-
"version": "0.1901.0
|
|
3
|
+
"version": "0.1901.0",
|
|
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
|
|
9
|
+
"@angular-devkit/core": "19.1.0",
|
|
10
10
|
"rxjs": "7.8.1"
|
|
11
11
|
},
|
|
12
12
|
"builders": "./builders/builders.json",
|
package/src/create-builder.d.ts
CHANGED
|
@@ -8,4 +8,5 @@
|
|
|
8
8
|
import { json } from '@angular-devkit/core';
|
|
9
9
|
import { BuilderHandlerFn, BuilderOutput } from './api';
|
|
10
10
|
import { Builder } from './internal';
|
|
11
|
+
export type { Builder };
|
|
11
12
|
export declare function createBuilder<OptT = json.JsonObject, OutT extends BuilderOutput = BuilderOutput>(fn: BuilderHandlerFn<OptT>): Builder<OptT & json.JsonObject>;
|
package/src/create-builder.js
CHANGED
|
@@ -173,6 +173,9 @@ function createBuilder(fn) {
|
|
|
173
173
|
handler,
|
|
174
174
|
[internal_1.BuilderSymbol]: true,
|
|
175
175
|
[internal_1.BuilderVersionSymbol]: require('../package.json').version,
|
|
176
|
+
// Only needed for type safety around `Builder` types.
|
|
177
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
178
|
+
__OptionT: null,
|
|
176
179
|
};
|
|
177
180
|
}
|
|
178
181
|
function isAsyncIterable(obj) {
|
package/src/index.d.ts
CHANGED
package/src/internal.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ export interface Builder<OptionT extends json.JsonObject = json.JsonObject> {
|
|
|
43
43
|
handler: JobHandler<json.JsonObject, BuilderInput, BuilderOutput>;
|
|
44
44
|
[BuilderSymbol]: true;
|
|
45
45
|
[BuilderVersionSymbol]: string;
|
|
46
|
+
__OptionT: OptionT;
|
|
46
47
|
}
|
|
47
48
|
export interface ArchitectHost<BuilderInfoT extends BuilderInfo = BuilderInfo> {
|
|
48
49
|
/**
|