@angular/build 22.3.0-next.0 → 22.3.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/package.json +13 -13
- package/src/builders/application/build-action.js +2 -2
- package/src/builders/application/build-action.js.map +1 -1
- package/src/builders/application/chunk-optimizer.js +2 -1
- package/src/builders/application/chunk-optimizer.js.map +1 -1
- package/src/builders/application/index.js +8 -31
- package/src/builders/application/index.js.map +1 -1
- package/src/builders/application/options.d.ts +1 -3
- package/src/builders/application/options.js +2 -3
- package/src/builders/application/options.js.map +1 -1
- package/src/builders/application/results.d.ts +1 -1
- package/src/builders/dev-server/options.js +1 -1
- package/src/builders/dev-server/options.js.map +1 -1
- package/src/builders/dev-server/vite/server.js +1 -1
- package/src/builders/dev-server/vite/server.js.map +1 -1
- package/src/builders/dev-server/vite/utils.js +1 -1
- package/src/builders/dev-server/vite/utils.js.map +1 -1
- package/src/builders/extract-i18n/application-extraction.js +2 -1
- package/src/builders/extract-i18n/application-extraction.js.map +1 -1
- package/src/builders/karma/assets-middleware.js +1 -1
- package/src/builders/karma/assets-middleware.js.map +1 -1
- package/src/builders/library/builder-state.d.ts +115 -0
- package/src/builders/library/builder-state.js +282 -0
- package/src/builders/library/builder-state.js.map +1 -0
- package/src/builders/library/builder.js +110 -92
- package/src/builders/library/builder.js.map +1 -1
- package/src/builders/library/execution-result.d.ts +35 -0
- package/src/builders/library/execution-result.js +67 -0
- package/src/builders/library/execution-result.js.map +1 -0
- package/src/builders/library/index.d.ts +1 -1
- package/src/builders/library/index.js.map +1 -1
- package/src/builders/library/options.d.ts +9 -0
- package/src/builders/library/options.js +29 -23
- package/src/builders/library/options.js.map +1 -1
- package/src/builders/library/pipeline/assets.d.ts +5 -16
- package/src/builders/library/pipeline/assets.js +16 -59
- package/src/builders/library/pipeline/assets.js.map +1 -1
- package/src/builders/library/pipeline/build-action.d.ts +21 -13
- package/src/builders/library/pipeline/build-action.js +76 -124
- package/src/builders/library/pipeline/build-action.js.map +1 -1
- package/src/builders/library/pipeline/bundler.d.ts +5 -3
- package/src/builders/library/pipeline/bundler.js +123 -43
- package/src/builders/library/pipeline/bundler.js.map +1 -1
- package/src/builders/library/pipeline/compilation.d.ts +7 -26
- package/src/builders/library/pipeline/compilation.js +59 -69
- package/src/builders/library/pipeline/compilation.js.map +1 -1
- package/src/builders/library/pipeline/entry-points.d.ts +26 -6
- package/src/builders/library/pipeline/entry-points.js +82 -21
- package/src/builders/library/pipeline/entry-points.js.map +1 -1
- package/src/builders/library/pipeline/package-manifests.d.ts +2 -1
- package/src/builders/library/pipeline/package-manifests.js +50 -1
- package/src/builders/library/pipeline/package-manifests.js.map +1 -1
- package/src/builders/library/pipeline/stylesheet-bundler.d.ts +4 -1
- package/src/builders/library/pipeline/stylesheet-bundler.js +1 -1
- package/src/builders/library/pipeline/stylesheet-bundler.js.map +1 -1
- package/src/builders/library/pipeline/utils.d.ts +19 -11
- package/src/builders/library/pipeline/utils.js +27 -11
- package/src/builders/library/pipeline/utils.js.map +1 -1
- package/src/builders/library/schema.json +2 -4
- package/src/builders/library/types.d.ts +62 -22
- package/src/builders/ng-packagr/builder.js +2 -2
- package/src/builders/ng-packagr/builder.js.map +1 -1
- package/src/builders/unit-test/builder.js +1 -1
- package/src/builders/unit-test/builder.js.map +1 -1
- package/src/builders/unit-test/options.js +1 -2
- package/src/builders/unit-test/options.js.map +1 -1
- package/src/builders/unit-test/runners/vitest/executor.js +0 -5
- package/src/builders/unit-test/runners/vitest/executor.js.map +1 -1
- package/src/builders/unit-test/runners/vitest/plugins.js +13 -1
- package/src/builders/unit-test/runners/vitest/plugins.js.map +1 -1
- package/src/builders/unit-test/test-discovery.js +4 -2
- package/src/builders/unit-test/test-discovery.js.map +1 -1
- package/src/private.d.ts +1 -1
- package/src/private.js +3 -3
- package/src/private.js.map +1 -1
- package/src/tools/angular/angular-host.d.ts +1 -1
- package/src/tools/angular/angular-host.js +5 -2
- package/src/tools/angular/angular-host.js.map +1 -1
- package/src/tools/angular/compilation/angular-compilation.d.ts +1 -0
- package/src/tools/angular/compilation/angular-compilation.js.map +1 -1
- package/src/tools/angular/compilation/aot-compilation.js +325 -80
- package/src/tools/angular/compilation/aot-compilation.js.map +1 -1
- package/src/tools/angular/compilation/compiler-options.js +4 -1
- package/src/tools/angular/compilation/compiler-options.js.map +1 -1
- package/src/tools/angular/compilation/jit-compilation.js +5 -4
- package/src/tools/angular/compilation/jit-compilation.js.map +1 -1
- package/src/tools/angular/compilation/parallel-worker.js +1 -0
- package/src/tools/angular/compilation/parallel-worker.js.map +1 -1
- package/src/tools/angular/compilation/typescript-compilation.d.ts +2 -0
- package/src/tools/angular/compilation/typescript-compilation.js +44 -5
- package/src/tools/angular/compilation/typescript-compilation.js.map +1 -1
- package/src/tools/esbuild/bundler-context.js +5 -1
- package/src/tools/esbuild/bundler-context.js.map +1 -1
- package/src/tools/esbuild/persistent-load-result-cache.js +2 -4
- package/src/tools/esbuild/persistent-load-result-cache.js.map +1 -1
- package/src/tools/esbuild/utils.d.ts +1 -2
- package/src/tools/esbuild/utils.js +0 -13
- package/src/tools/esbuild/utils.js.map +1 -1
- package/src/tools/sass/rebasing-importer.d.ts +1 -1
- package/src/tools/sass/rebasing-importer.js +6 -3
- package/src/tools/sass/rebasing-importer.js.map +1 -1
- package/src/tools/vite/middlewares/assets-middleware.js +1 -1
- package/src/tools/vite/middlewares/assets-middleware.js.map +1 -1
- package/src/utils/concurrency.d.ts +4 -0
- package/src/utils/concurrency.js +5 -0
- package/src/utils/concurrency.js.map +1 -1
- package/src/utils/delete-output-dir.js +3 -2
- package/src/utils/delete-output-dir.js.map +1 -1
- package/src/utils/disk-files.d.ts +30 -0
- package/src/utils/disk-files.js +68 -0
- package/src/utils/disk-files.js.map +1 -0
- package/src/utils/index-file/nonce.d.ts +2 -1
- package/src/utils/index-file/nonce.js +22 -4
- package/src/utils/index-file/nonce.js.map +1 -1
- package/src/utils/load-proxy-config.js +12 -10
- package/src/utils/load-proxy-config.js.map +1 -1
- package/src/utils/load-rolldown.d.ts +27 -0
- package/src/utils/load-rolldown.js +79 -0
- package/src/utils/load-rolldown.js.map +1 -0
- package/src/utils/normalize-asset-patterns.d.ts +18 -3
- package/src/utils/normalize-asset-patterns.js +34 -67
- package/src/utils/normalize-asset-patterns.js.map +1 -1
- package/src/utils/normalize-cache.d.ts +14 -1
- package/src/utils/normalize-cache.js +18 -4
- package/src/utils/normalize-cache.js.map +1 -1
- package/src/utils/postcss-configuration.d.ts +2 -2
- package/src/utils/postcss-configuration.js +3 -3
- package/src/utils/postcss-configuration.js.map +1 -1
- package/src/utils/resolve-assets.js +28 -9
- package/src/utils/resolve-assets.js.map +1 -1
- package/src/utils/server-rendering/esm-in-memory-loader/loader-hooks.d.ts +1 -1
- package/src/utils/server-rendering/esm-in-memory-loader/loader-hooks.js +3 -3
- package/src/utils/server-rendering/esm-in-memory-loader/loader-hooks.js.map +1 -1
- package/src/utils/server-rendering/esm-in-memory-loader/register-hooks.js +3 -2
- package/src/utils/server-rendering/esm-in-memory-loader/register-hooks.js.map +1 -1
- package/src/utils/test-files.js +5 -57
- package/src/utils/test-files.js.map +1 -1
- package/src/utils/watcher.d.ts +53 -0
- package/src/utils/watcher.js +404 -76
- package/src/utils/watcher.js.map +1 -1
- package/src/builders/library/pipeline/types.d.ts +0 -54
|
@@ -8,22 +8,11 @@
|
|
|
8
8
|
import type { NormalizedLibraryOptions } from '../types';
|
|
9
9
|
import { type DiskOutputFile } from './utils';
|
|
10
10
|
/**
|
|
11
|
-
* Resolves and collects configured library assets to be emitted to disk
|
|
12
|
-
* and registers their source paths with the watch set.
|
|
11
|
+
* Resolves and collects configured library assets to be emitted to disk.
|
|
13
12
|
*
|
|
14
|
-
* @param assets The normalized asset patterns.
|
|
15
|
-
* @param workspaceRoot The workspace root directory path.
|
|
16
|
-
* @param
|
|
17
|
-
* @param modifiedFiles Optional set of modified file paths for incremental copying in watch mode.
|
|
13
|
+
* @param assets The normalized asset patterns with POSIX paths.
|
|
14
|
+
* @param workspaceRoot The normalized POSIX workspace root directory path.
|
|
15
|
+
* @param modifiedFiles Optional set of modified POSIX file paths for incremental copying in watch mode.
|
|
18
16
|
* @returns An array of disk file emission descriptors.
|
|
19
17
|
*/
|
|
20
|
-
export declare function collectAssetsToEmit(assets: NormalizedLibraryOptions['assets'], workspaceRoot: string,
|
|
21
|
-
/**
|
|
22
|
-
* Checks whether any configured library assets were modified.
|
|
23
|
-
*
|
|
24
|
-
* @param assets The normalized asset patterns.
|
|
25
|
-
* @param workspaceRoot The workspace root directory path.
|
|
26
|
-
* @param changedFiles Set of changed file paths.
|
|
27
|
-
* @returns True if any asset file was modified.
|
|
28
|
-
*/
|
|
29
|
-
export declare function checkAssetChanges(assets: NormalizedLibraryOptions['assets'], workspaceRoot: string, changedFiles: ReadonlySet<string>): boolean;
|
|
18
|
+
export declare function collectAssetsToEmit(assets: NormalizedLibraryOptions['assets'], workspaceRoot: string, modifiedFiles?: ReadonlySet<string>): Promise<DiskOutputFile[]>;
|
|
@@ -11,96 +11,53 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.collectAssetsToEmit = collectAssetsToEmit;
|
|
14
|
-
exports.checkAssetChanges = checkAssetChanges;
|
|
15
14
|
const node_fs_1 = require("node:fs");
|
|
16
15
|
const node_path_1 = __importDefault(require("node:path"));
|
|
17
16
|
const picomatch_1 = __importDefault(require("picomatch"));
|
|
18
|
-
const path_1 = require("../../../utils/path");
|
|
19
17
|
const resolve_assets_1 = require("../../../utils/resolve-assets");
|
|
20
18
|
const utils_1 = require("./utils");
|
|
21
19
|
/**
|
|
22
|
-
* Resolves and collects configured library assets to be emitted to disk
|
|
23
|
-
* and registers their source paths with the watch set.
|
|
20
|
+
* Resolves and collects configured library assets to be emitted to disk.
|
|
24
21
|
*
|
|
25
|
-
* @param assets The normalized asset patterns.
|
|
26
|
-
* @param workspaceRoot The workspace root directory path.
|
|
27
|
-
* @param
|
|
28
|
-
* @param modifiedFiles Optional set of modified file paths for incremental copying in watch mode.
|
|
22
|
+
* @param assets The normalized asset patterns with POSIX paths.
|
|
23
|
+
* @param workspaceRoot The normalized POSIX workspace root directory path.
|
|
24
|
+
* @param modifiedFiles Optional set of modified POSIX file paths for incremental copying in watch mode.
|
|
29
25
|
* @returns An array of disk file emission descriptors.
|
|
30
26
|
*/
|
|
31
|
-
async function collectAssetsToEmit(assets, workspaceRoot,
|
|
32
|
-
if (assets.length === 0) {
|
|
27
|
+
async function collectAssetsToEmit(assets, workspaceRoot, modifiedFiles) {
|
|
28
|
+
if (assets.length === 0 || modifiedFiles?.size === 0) {
|
|
33
29
|
return [];
|
|
34
30
|
}
|
|
35
31
|
if (modifiedFiles) {
|
|
36
|
-
|
|
37
|
-
return [];
|
|
38
|
-
}
|
|
39
|
-
const matchers = createAssetMatchers(assets, workspaceRoot);
|
|
32
|
+
const matchers = createAssetMatchers(assets);
|
|
40
33
|
const filesToEmit = [];
|
|
41
34
|
for (const file of modifiedFiles) {
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
for (const { asset, posixInputPrefix, isMatch } of matchers) {
|
|
45
|
-
if (!posixFile.startsWith(posixInputPrefix)) {
|
|
35
|
+
for (const { asset, prefix, isMatch } of matchers) {
|
|
36
|
+
if (!file.startsWith(prefix)) {
|
|
46
37
|
continue;
|
|
47
38
|
}
|
|
48
|
-
const relative =
|
|
39
|
+
const relative = file.slice(prefix.length);
|
|
49
40
|
if (!isMatch(relative)) {
|
|
50
41
|
continue;
|
|
51
42
|
}
|
|
52
|
-
if ((0, node_fs_1.statSync)(
|
|
53
|
-
filesToEmit.push((0, utils_1.createDiskOutputFile)(
|
|
54
|
-
allWatchedFiles.add(posixFile);
|
|
43
|
+
if ((0, node_fs_1.statSync)(file, { throwIfNoEntry: false })?.isFile()) {
|
|
44
|
+
filesToEmit.push((0, utils_1.createDiskOutputFile)(file, node_path_1.default.posix.join(asset.output, relative)));
|
|
55
45
|
}
|
|
56
46
|
}
|
|
57
47
|
}
|
|
58
48
|
return filesToEmit;
|
|
59
49
|
}
|
|
60
50
|
const resolvedAssets = await (0, resolve_assets_1.resolveAssets)(assets, workspaceRoot);
|
|
61
|
-
|
|
62
|
-
for (const { source, destination } of resolvedAssets) {
|
|
63
|
-
filesToEmit.push((0, utils_1.createDiskOutputFile)(source, destination));
|
|
64
|
-
allWatchedFiles.add((0, path_1.toPosixPath)(source));
|
|
65
|
-
}
|
|
66
|
-
return filesToEmit;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Checks whether any configured library assets were modified.
|
|
70
|
-
*
|
|
71
|
-
* @param assets The normalized asset patterns.
|
|
72
|
-
* @param workspaceRoot The workspace root directory path.
|
|
73
|
-
* @param changedFiles Set of changed file paths.
|
|
74
|
-
* @returns True if any asset file was modified.
|
|
75
|
-
*/
|
|
76
|
-
function checkAssetChanges(assets, workspaceRoot, changedFiles) {
|
|
77
|
-
if (assets.length === 0 || changedFiles.size === 0) {
|
|
78
|
-
return false;
|
|
79
|
-
}
|
|
80
|
-
const matchers = createAssetMatchers(assets, workspaceRoot);
|
|
81
|
-
for (const file of changedFiles) {
|
|
82
|
-
const resolvedFile = node_path_1.default.isAbsolute(file) ? file : node_path_1.default.resolve(workspaceRoot, file);
|
|
83
|
-
const posixFile = (0, path_1.toPosixPath)(resolvedFile);
|
|
84
|
-
for (const { posixInputPrefix, isMatch } of matchers) {
|
|
85
|
-
if (posixFile.startsWith(posixInputPrefix)) {
|
|
86
|
-
const relative = posixFile.slice(posixInputPrefix.length);
|
|
87
|
-
if (isMatch(relative)) {
|
|
88
|
-
return true;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
return false;
|
|
51
|
+
return resolvedAssets.map(({ source, destination }) => (0, utils_1.createDiskOutputFile)(source, destination));
|
|
94
52
|
}
|
|
95
|
-
function createAssetMatchers(assets
|
|
53
|
+
function createAssetMatchers(assets) {
|
|
96
54
|
return assets.map((asset) => {
|
|
97
|
-
const absInput = node_path_1.default.resolve(workspaceRoot, asset.input);
|
|
98
|
-
const posixInput = (0, path_1.toPosixPath)(absInput).replace(/\/+$/, '');
|
|
99
55
|
const isMatch = (0, picomatch_1.default)(asset.glob, {
|
|
100
56
|
dot: true,
|
|
101
57
|
ignore: [...resolve_assets_1.DEFAULT_ASSET_IGNORE, ...(asset.ignore ?? [])],
|
|
102
58
|
});
|
|
103
|
-
|
|
59
|
+
const prefix = asset.input.endsWith('/') ? asset.input : `${asset.input}/`;
|
|
60
|
+
return { asset, prefix, isMatch };
|
|
104
61
|
});
|
|
105
62
|
}
|
|
106
63
|
//# sourceMappingURL=assets.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assets.js","sourceRoot":"","sources":["assets.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;
|
|
1
|
+
{"version":3,"file":"assets.js","sourceRoot":"","sources":["assets.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;AAiBH,kDAoCC;AAnDD,qCAAmC;AACnC,0DAA6B;AAC7B,0DAAkC;AAClC,kEAAoF;AAEpF,mCAAoE;AAEpE;;;;;;;GAOG;AACI,KAAK,UAAU,mBAAmB,CACvC,MAA0C,EAC1C,aAAqB,EACrB,aAAmC;IAEnC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,aAAa,EAAE,IAAI,KAAK,CAAC,EAAE,CAAC;QACrD,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,aAAa,EAAE,CAAC;QAClB,MAAM,QAAQ,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAC;QAC7C,MAAM,WAAW,GAAqB,EAAE,CAAC;QAEzC,KAAK,MAAM,IAAI,IAAI,aAAa,EAAE,CAAC;YACjC,KAAK,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,QAAQ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AAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,KAAK,GAAG,CAAC;QAE3E,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;IACpC,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -5,24 +5,32 @@
|
|
|
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
|
-
import type {
|
|
9
|
-
import type {
|
|
10
|
-
import type {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*/
|
|
14
|
-
export declare function createSingleBuildState(): SingleBuildState;
|
|
8
|
+
import type { ComponentStylesheetBundler } from '../../../tools/esbuild/angular/component-stylesheets';
|
|
9
|
+
import type { BuilderState } from '../builder-state';
|
|
10
|
+
import type { ExecutionResult } from '../execution-result';
|
|
11
|
+
import type { NormalizedLibraryOptions } from '../types';
|
|
12
|
+
import type { DiskOutputFile } from './utils';
|
|
15
13
|
/**
|
|
16
14
|
* Context required to execute a single library build iteration.
|
|
17
15
|
*/
|
|
18
16
|
export interface BuildActionContext {
|
|
17
|
+
/** Normalized options for the library build with POSIX paths. */
|
|
19
18
|
options: NormalizedLibraryOptions;
|
|
20
|
-
|
|
21
|
-
stylesheetBundler:
|
|
19
|
+
/** Bundler instance used to process component stylesheets. */
|
|
20
|
+
stylesheetBundler: ComponentStylesheetBundler;
|
|
21
|
+
/** Whether the builder is running in watch mode. */
|
|
22
22
|
isWatchMode: boolean;
|
|
23
|
-
|
|
24
|
-
buildState:
|
|
23
|
+
/** Build state tracking compilation caches and emitted outputs. */
|
|
24
|
+
buildState: BuilderState;
|
|
25
|
+
/** Set of POSIX file paths modified since the last build iteration. */
|
|
25
26
|
modifiedFiles?: Set<string>;
|
|
27
|
+
/**
|
|
28
|
+
* Asset files to emit for the current build iteration.
|
|
29
|
+
* Pre-collected in the watch loop to avoid redundant asset matching, or resolved and
|
|
30
|
+
* populated by `buildAction` when omitted (such as during the initial build) so the
|
|
31
|
+
* caller can register their POSIX source paths with the file watcher.
|
|
32
|
+
*/
|
|
33
|
+
assetsToEmit?: DiskOutputFile[];
|
|
26
34
|
}
|
|
27
35
|
/**
|
|
28
36
|
* Executes a single iteration of the library build pipeline, including
|
|
@@ -30,6 +38,6 @@ export interface BuildActionContext {
|
|
|
30
38
|
* manifest generation, and asset copying.
|
|
31
39
|
*
|
|
32
40
|
* @param actionContext The build action state and configuration.
|
|
41
|
+
* @returns A promise resolving to the build iteration's `ExecutionResult`.
|
|
33
42
|
*/
|
|
34
|
-
export declare function buildAction(actionContext: BuildActionContext): Promise<
|
|
35
|
-
export declare function hasModifiedWatchedFile(modifiedFiles: ReadonlySet<string>, allWatchedFiles: ReadonlySet<string>, posixPackageJsonPath: string): boolean;
|
|
43
|
+
export declare function buildAction(actionContext: BuildActionContext): Promise<ExecutionResult>;
|
|
@@ -10,160 +10,112 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
10
10
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.createSingleBuildState = createSingleBuildState;
|
|
14
13
|
exports.buildAction = buildAction;
|
|
15
|
-
exports.hasModifiedWatchedFile = hasModifiedWatchedFile;
|
|
16
|
-
const promises_1 = require("node:fs/promises");
|
|
17
14
|
const node_path_1 = __importDefault(require("node:path"));
|
|
18
|
-
const
|
|
19
|
-
const
|
|
15
|
+
const disk_files_1 = require("../../../utils/disk-files");
|
|
16
|
+
const error_1 = require("../../../utils/error");
|
|
20
17
|
const assets_1 = require("./assets");
|
|
21
18
|
const bundler_1 = require("./bundler");
|
|
22
19
|
const compilation_1 = require("./compilation");
|
|
20
|
+
const entry_points_1 = require("./entry-points");
|
|
23
21
|
const package_manifests_1 = require("./package-manifests");
|
|
24
|
-
/**
|
|
25
|
-
* Creates a fresh {@link SingleBuildState} instance.
|
|
26
|
-
*/
|
|
27
|
-
function createSingleBuildState() {
|
|
28
|
-
return {
|
|
29
|
-
previousBundleResults: new Map(),
|
|
30
|
-
pendingChangedEsmFiles: new Set(),
|
|
31
|
-
pendingChangedDtsFiles: new Set(),
|
|
32
|
-
directoryExists: new Set(),
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
22
|
/**
|
|
36
23
|
* Executes a single iteration of the library build pipeline, including
|
|
37
24
|
* single-program Angular compilation, parallel typechecking, 2-instance Rolldown bundling,
|
|
38
25
|
* manifest generation, and asset copying.
|
|
39
26
|
*
|
|
40
27
|
* @param actionContext The build action state and configuration.
|
|
28
|
+
* @returns A promise resolving to the build iteration's `ExecutionResult`.
|
|
41
29
|
*/
|
|
42
30
|
async function buildAction(actionContext) {
|
|
43
|
-
const { options,
|
|
44
|
-
const
|
|
45
|
-
const {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
!buildState.singleProgramCache ||
|
|
51
|
-
buildState.hasCompilationError ||
|
|
52
|
-
buildState.hasEntryPointsChanges ||
|
|
53
|
-
pendingChangedEsmFiles.size > 0 ||
|
|
54
|
-
pendingChangedDtsFiles.size > 0 ||
|
|
55
|
-
hasModifiedWatchedFile(modifiedFiles, allWatchedFiles, posixPackageJsonPath);
|
|
56
|
-
const shouldGenerateManifests = !buildState.hasEmittedManifests;
|
|
57
|
-
if (shouldGenerateManifests) {
|
|
58
|
-
verifyAllowedDependencies(options);
|
|
59
|
-
}
|
|
60
|
-
const filesToEmit = [];
|
|
61
|
-
if (shouldCompileEntryPoints) {
|
|
62
|
-
buildState.hasCompilationError = true;
|
|
63
|
-
buildState.hasEntryPointsChanges = false;
|
|
64
|
-
const { esmFiles, dtsFiles, changedEsmFiles, changedDtsFiles, referencedFiles, cache, diagnosePromise, } = await (0, compilation_1.compileLibrary)(options.entryPoints.values(), options, stylesheetBundler, buildState.singleProgramCache, modifiedFiles);
|
|
65
|
-
buildState.singleProgramCache = cache;
|
|
66
|
-
for (const file of referencedFiles) {
|
|
67
|
-
allWatchedFiles.add(file);
|
|
68
|
-
}
|
|
69
|
-
for (const file of changedEsmFiles) {
|
|
70
|
-
pendingChangedEsmFiles.add(file);
|
|
31
|
+
const { options, stylesheetBundler, isWatchMode, buildState, modifiedFiles } = actionContext;
|
|
32
|
+
const result = buildState.resetExecutionResult();
|
|
33
|
+
const { packageJsonPath } = options;
|
|
34
|
+
const shouldCompileEntryPoints = buildState.shouldCompileEntryPoints(packageJsonPath, modifiedFiles);
|
|
35
|
+
try {
|
|
36
|
+
if (!buildState.hasEmittedManifests && !verifyAllowedDependencies(options, result)) {
|
|
37
|
+
return result;
|
|
71
38
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
const
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
hasEntryPointChanges(previousBundleResult.dtsModuleIds, pendingChangedDtsFiles);
|
|
82
|
-
if (hasEsmChanges || hasDtsChanges) {
|
|
83
|
-
context.logger.info(`Compiling ${entryPoint.displayName}...`);
|
|
84
|
-
itemsToBundle.push({
|
|
85
|
-
entryPoint,
|
|
86
|
-
hasEsmChanges,
|
|
87
|
-
hasDtsChanges,
|
|
88
|
-
previousBundleResult,
|
|
89
|
-
});
|
|
39
|
+
const filesToEmit = [];
|
|
40
|
+
if (shouldCompileEntryPoints) {
|
|
41
|
+
buildState.hasCompilationError = true;
|
|
42
|
+
const compilationOutput = await (0, compilation_1.compileLibrary)(options, stylesheetBundler, buildState, buildState.getCompilationModifiedFiles(modifiedFiles));
|
|
43
|
+
buildState.recordCompilationOutput(compilationOutput);
|
|
44
|
+
const { esmFiles, dtsFiles, hasStylesheetErrors, diagnosePromise, declarationMap, compilationMode, } = compilationOutput;
|
|
45
|
+
if (hasStylesheetErrors) {
|
|
46
|
+
await diagnosePromise;
|
|
47
|
+
return result;
|
|
90
48
|
}
|
|
49
|
+
const itemsToBundle = (0, entry_points_1.collectEntryPointsToBundle)(options, buildState);
|
|
50
|
+
let bundleOutput;
|
|
51
|
+
try {
|
|
52
|
+
[bundleOutput] = await Promise.all([
|
|
53
|
+
(0, bundler_1.bundleEntryPoints)(itemsToBundle, esmFiles, dtsFiles, {
|
|
54
|
+
...options,
|
|
55
|
+
declarationMap,
|
|
56
|
+
compilationMode,
|
|
57
|
+
}),
|
|
58
|
+
diagnosePromise,
|
|
59
|
+
]);
|
|
60
|
+
}
|
|
61
|
+
catch (error) {
|
|
62
|
+
(0, error_1.assertIsError)(error);
|
|
63
|
+
// Prioritize TypeScript/Angular diagnostic errors over secondary bundler failures.
|
|
64
|
+
await diagnosePromise;
|
|
65
|
+
if (!result.hasErrors) {
|
|
66
|
+
result.addError(error.message);
|
|
67
|
+
}
|
|
68
|
+
return result;
|
|
69
|
+
}
|
|
70
|
+
result.addWarnings(bundleOutput.warnings);
|
|
71
|
+
if (result.hasErrors) {
|
|
72
|
+
return result;
|
|
73
|
+
}
|
|
74
|
+
filesToEmit.push(...bundleOutput.filesToEmit);
|
|
75
|
+
buildState.recordBundleOutput(bundleOutput.bundleResults);
|
|
91
76
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
]);
|
|
99
|
-
}
|
|
100
|
-
catch (error) {
|
|
101
|
-
// Prioritize TypeScript/Angular diagnostic errors over secondary bundler failures.
|
|
102
|
-
await diagnosePromise;
|
|
103
|
-
throw error;
|
|
104
|
-
}
|
|
105
|
-
buildState.hasCompilationError = false;
|
|
106
|
-
pendingChangedEsmFiles.clear();
|
|
107
|
-
pendingChangedDtsFiles.clear();
|
|
108
|
-
for (const warning of warnings) {
|
|
109
|
-
context.logger.warn(warning);
|
|
110
|
-
}
|
|
111
|
-
filesToEmit.push(...bundleOutput.filesToEmit);
|
|
112
|
-
for (const [name, bundleResult] of bundleOutput.bundleResults) {
|
|
113
|
-
buildState.previousBundleResults.set(name, bundleResult);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
if (shouldGenerateManifests) {
|
|
117
|
-
filesToEmit.push(...(0, package_manifests_1.generatePackageManifests)(options, isWatchMode));
|
|
118
|
-
}
|
|
119
|
-
filesToEmit.push(...(await (0, assets_1.collectAssetsToEmit)(options.assets, options.workspaceRoot, allWatchedFiles, buildState.hasEmittedAssets ? modifiedFiles : undefined)));
|
|
120
|
-
await (0, utils_1.emitFilesToDisk)(filesToEmit, async (file) => {
|
|
121
|
-
const fullFilePath = node_path_1.default.join(options.outputPath, file.path);
|
|
122
|
-
const fileBasePath = node_path_1.default.dirname(fullFilePath);
|
|
123
|
-
if (fileBasePath && !directoryExists.has(fileBasePath)) {
|
|
124
|
-
await (0, promises_1.mkdir)(fileBasePath, { recursive: true });
|
|
125
|
-
directoryExists.add(fileBasePath);
|
|
126
|
-
}
|
|
127
|
-
if (file.type === 'memory') {
|
|
128
|
-
await (0, promises_1.writeFile)(fullFilePath, file.contents);
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
await (0, promises_1.copyFile)(file.source, fullFilePath, promises_1.constants.COPYFILE_FICLONE);
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
buildState.hasEmittedManifests = true;
|
|
135
|
-
buildState.hasEmittedAssets = true;
|
|
136
|
-
}
|
|
137
|
-
function hasModifiedWatchedFile(modifiedFiles, allWatchedFiles, posixPackageJsonPath) {
|
|
138
|
-
for (const file of modifiedFiles) {
|
|
139
|
-
if (file !== posixPackageJsonPath && allWatchedFiles.has(file)) {
|
|
140
|
-
return true;
|
|
77
|
+
const { hasTslibImport } = buildState;
|
|
78
|
+
if (!buildState.hasEmittedManifests || buildState.hasEmittedTslib !== hasTslibImport) {
|
|
79
|
+
filesToEmit.push(...(await (0, package_manifests_1.generatePackageManifests)({
|
|
80
|
+
...options,
|
|
81
|
+
compilationMode: buildState.compilationMode ?? options.compilationMode ?? 'partial',
|
|
82
|
+
}, isWatchMode, hasTslibImport)));
|
|
141
83
|
}
|
|
84
|
+
const resolvedAssetsToEmit = (actionContext.assetsToEmit ??= await (0, assets_1.collectAssetsToEmit)(options.assets, options.workspaceRoot, buildState.hasEmittedAssets ? modifiedFiles : undefined));
|
|
85
|
+
filesToEmit.push(...resolvedAssetsToEmit);
|
|
86
|
+
await (0, disk_files_1.emitFilesToDisk)(filesToEmit, (file) => node_path_1.default.posix.join(options.outputPath, file.path));
|
|
87
|
+
buildState.hasEmittedManifests = true;
|
|
88
|
+
buildState.hasEmittedTslib = hasTslibImport;
|
|
89
|
+
buildState.hasEmittedAssets = true;
|
|
142
90
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
if (changedFiles.size === 0) {
|
|
147
|
-
return false;
|
|
148
|
-
}
|
|
149
|
-
for (const file of changedFiles) {
|
|
150
|
-
if (moduleIds.has(file)) {
|
|
151
|
-
return true;
|
|
152
|
-
}
|
|
91
|
+
catch (error) {
|
|
92
|
+
(0, error_1.assertIsError)(error);
|
|
93
|
+
result.addError(error.message);
|
|
153
94
|
}
|
|
154
|
-
return
|
|
95
|
+
return result;
|
|
155
96
|
}
|
|
156
|
-
|
|
97
|
+
/**
|
|
98
|
+
* Validates that all direct and optional dependencies in `package.json` are
|
|
99
|
+
* permitted by `allowedNonPeerDependencies`.
|
|
100
|
+
*
|
|
101
|
+
* @param options The normalized library builder options.
|
|
102
|
+
* @param result The execution result to record any disallowed dependency errors into.
|
|
103
|
+
* @returns `true` if all dependencies are allowed; otherwise `false`.
|
|
104
|
+
*/
|
|
105
|
+
function verifyAllowedDependencies(options, result) {
|
|
157
106
|
const { packageJson, allowedNonPeerDependencies } = options;
|
|
158
107
|
const dependencies = {
|
|
159
108
|
...(packageJson.dependencies ?? {}),
|
|
160
109
|
...(packageJson.optionalDependencies ?? {}),
|
|
161
110
|
};
|
|
111
|
+
let isValid = true;
|
|
162
112
|
for (const dep of Object.keys(dependencies)) {
|
|
163
113
|
if (!allowedNonPeerDependencies.some((regex) => regex.test(dep))) {
|
|
164
|
-
|
|
114
|
+
result.addError(`Dependency '${dep}' must be explicitly allowed using the 'allowedNonPeerDependencies' option, ` +
|
|
165
115
|
`or moved to 'peerDependencies' in 'package.json'.`);
|
|
116
|
+
isValid = false;
|
|
166
117
|
}
|
|
167
118
|
}
|
|
119
|
+
return isValid;
|
|
168
120
|
}
|
|
169
121
|
//# sourceMappingURL=build-action.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-action.js","sourceRoot":"","sources":["build-action.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;
|
|
1
|
+
{"version":3,"file":"build-action.js","sourceRoot":"","sources":["build-action.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;AAoDH,kCA2GC;AA7JD,0DAA6B;AAE7B,0DAA4D;AAC5D,gDAAqD;AAIrD,qCAA+C;AAC/C,uCAA4E;AAC5E,+CAA+C;AAC/C,iDAA4D;AAC5D,2DAA+D;AA+B/D;;;;;;;GAOG;AACI,KAAK,UAAU,WAAW,CAAC,aAAiC;IACjE,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,aAAa,CAAC;IAC7F,MAAM,MAAM,GAAG,UAAU,CAAC,oBAAoB,EAAE,CAAC;IAEjD,MAAM,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC;IAEpC,MAAM,wBAAwB,GAAG,UAAU,CAAC,wBAAwB,CAClE,eAAe,EACf,aAAa,CACd,CAAC;IAEF,IAAI,CAAC;QACH,IAAI,CAAC,UAAU,CAAC,mBAAmB,IAAI,CAAC,yBAAyB,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,CAAC;YACnF,OAAO,MAAM,CAAC;QAChB,CAAC;QAED,MAAM,WAAW,GAAiB,EAAE,CAAC;QAErC,IAAI,wBAAwB,EAAE,CAAC;YAC7B,UAAU,CAAC,mBAAmB,GAAG,IAAI,CAAC;YAEtC,MAAM,iBA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MAAuB;IAEvB,MAAM,EAAE,WAAW,EAAE,0BAA0B,EAAE,GAAG,OAAO,CAAC;IAC5D,MAAM,YAAY,GAAG;QACnB,GAAG,CAAC,WAAW,CAAC,YAAY,IAAI,EAAE,CAAC;QACnC,GAAG,CAAC,WAAW,CAAC,oBAAoB,IAAI,EAAE,CAAC;KAC5C,CAAC;IAEF,IAAI,OAAO,GAAG,IAAI,CAAC;IACnB,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;QAC5C,IAAI,CAAC,0BAA0B,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;YACjE,MAAM,CAAC,QAAQ,CACb,eAAe,GAAG,8EAA8E;gBAC9F,mDAAmD,CACtD,CAAC;YACF,OAAO,GAAG,KAAK,CAAC;QAClB,CAAC;IACH,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -15,6 +15,8 @@ export interface BundleEntryPointsOutput {
|
|
|
15
15
|
filesToEmit: MemoryOutputFile[];
|
|
16
16
|
/** Map of entry point names to their bundle results containing bundled module IDs. */
|
|
17
17
|
bundleResults: Map<string, BundleResult>;
|
|
18
|
+
/** Warning messages emitted during bundling. */
|
|
19
|
+
warnings: string[];
|
|
18
20
|
}
|
|
19
21
|
/**
|
|
20
22
|
* Input state for an individual entry point to be bundled.
|
|
@@ -34,9 +36,9 @@ export interface BundleEntryPointInput {
|
|
|
34
36
|
* using at most 2 Rolldown instances total (1 for all .mjs bundles, 1 for all .d.ts bundles).
|
|
35
37
|
*
|
|
36
38
|
* @param items The collection of entry point inputs with change statuses.
|
|
37
|
-
* @param esmFiles Map of virtual ESM output file paths to their content.
|
|
38
|
-
* @param dtsFiles Map of virtual TypeScript declaration file paths to their content.
|
|
39
|
-
* @param options The normalized library builder options.
|
|
39
|
+
* @param esmFiles Map of virtual POSIX ESM output file paths to their content.
|
|
40
|
+
* @param dtsFiles Map of virtual POSIX TypeScript declaration file paths to their content.
|
|
41
|
+
* @param options The normalized library builder options with POSIX paths.
|
|
40
42
|
* @returns A promise resolving to the bundled output files and bundle cache results.
|
|
41
43
|
*/
|
|
42
44
|
export declare function bundleEntryPoints(items: readonly BundleEntryPointInput[], esmFiles: ReadonlyMap<string, string>, dtsFiles: ReadonlyMap<string, string>, options: NormalizedLibraryOptions): Promise<BundleEntryPointsOutput>;
|