@angular-devkit/build-angular 18.1.0-next.0 → 18.1.0-next.1
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 +21 -21
- package/src/builders/browser/index.js +2 -2
- package/src/builders/browser-esbuild/builder-status-warnings.js +1 -2
- package/src/builders/browser-esbuild/index.js +1 -2
- package/src/builders/dev-server/builder.d.ts +0 -1
- package/src/builders/dev-server/builder.js +2 -3
- package/src/builders/dev-server/options.d.ts +4 -0
- package/src/builders/dev-server/options.js +26 -2
- package/src/builders/dev-server/schema.d.ts +10 -0
- package/src/builders/dev-server/schema.json +11 -0
- package/src/builders/dev-server/webpack-server.js +1 -2
- package/src/builders/extract-i18n/application-extraction.js +1 -2
- package/src/builders/extract-i18n/builder.js +1 -2
- package/src/builders/extract-i18n/empty-loader.js +1 -1
- package/src/builders/extract-i18n/ivy-extract-loader.js +1 -1
- package/src/builders/extract-i18n/options.js +1 -2
- package/src/builders/extract-i18n/webpack-extraction.js +1 -2
- package/src/builders/jest/options.js +1 -2
- package/src/builders/karma/index.js +1 -2
- package/src/builders/ng-packagr/index.js +1 -2
- package/src/builders/prerender/index.js +1 -2
- package/src/builders/protractor/index.js +1 -2
- package/src/builders/server/index.js +1 -2
- package/src/builders/server/platform-server-exports-loader.js +1 -1
- package/src/builders/ssr-dev-server/index.js +2 -3
- package/src/builders/ssr-dev-server/utils.d.ts +0 -1
- package/src/builders/ssr-dev-server/utils.js +3 -4
- package/src/builders/web-test-runner/builder-status-warnings.js +1 -2
- package/src/builders/web-test-runner/options.js +1 -2
- package/src/tools/babel/presets/application.js +2 -3
- package/src/tools/webpack/configs/common.js +1 -2
- package/src/tools/webpack/configs/dev-server.js +2 -3
- package/src/tools/webpack/configs/styles.js +1 -2
- package/src/tools/webpack/plugins/hmr/hmr-accept.js +1 -1
- package/src/tools/webpack/plugins/hmr/hmr-loader.js +1 -1
- package/src/tools/webpack/plugins/javascript-optimizer-worker.js +1 -1
- package/src/tools/webpack/plugins/postcss-cli-resources.js +1 -1
- package/src/tools/webpack/plugins/typescript.js +1 -2
- package/src/tools/webpack/utils/async-chunks.js +1 -2
- package/src/tools/webpack/utils/helpers.js +10 -11
- package/src/tools/webpack/utils/stats.js +7 -8
- package/src/utils/copy-assets.js +1 -2
- package/src/utils/default-progress.js +1 -2
- package/src/utils/error.js +1 -2
- package/src/utils/i18n-inlining.js +1 -2
- package/src/utils/i18n-webpack.js +2 -2
- package/src/utils/load-esm.js +1 -2
- package/src/utils/normalize-asset-patterns.js +2 -2
- package/src/utils/normalize-builder-schema.js +1 -2
- package/src/utils/normalize-cache.js +2 -3
- package/src/utils/normalize-file-replacements.js +2 -2
- package/src/utils/normalize-optimization.js +1 -2
- package/src/utils/normalize-polyfills.js +1 -2
- package/src/utils/normalize-source-maps.js +1 -2
- package/src/utils/output-paths.js +1 -2
- package/src/utils/package-chunk-sort.js +1 -2
- package/src/utils/process-bundle.d.ts +2 -2
- package/src/utils/process-bundle.js +1 -2
- package/src/utils/read-tsconfig.js +1 -2
- package/src/utils/run-module-as-observable-fork.js +1 -2
- package/src/utils/tailwind.js +1 -2
- package/src/utils/test-files.js +1 -2
- package/src/utils/tty.js +1 -2
- package/src/utils/url.js +1 -2
- package/src/utils/webpack-browser-config.js +5 -6
- package/src/utils/webpack-diagnostics.js +2 -3
|
@@ -30,7 +30,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
30
30
|
return result;
|
|
31
31
|
};
|
|
32
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
-
exports.
|
|
33
|
+
exports.getDevServerConfig = getDevServerConfig;
|
|
34
|
+
exports.buildServePath = buildServePath;
|
|
34
35
|
const core_1 = require("@angular-devkit/core");
|
|
35
36
|
const fs_1 = require("fs");
|
|
36
37
|
const path_1 = require("path");
|
|
@@ -105,7 +106,6 @@ async function getDevServerConfig(wco) {
|
|
|
105
106
|
},
|
|
106
107
|
};
|
|
107
108
|
}
|
|
108
|
-
exports.getDevServerConfig = getDevServerConfig;
|
|
109
109
|
/**
|
|
110
110
|
* Resolve and build a URL _path_ that will be the root of the server. This resolved base href and
|
|
111
111
|
* deploy URL from the browser options and returns a path from the root.
|
|
@@ -130,7 +130,6 @@ function buildServePath(options, logger) {
|
|
|
130
130
|
}
|
|
131
131
|
return servePath;
|
|
132
132
|
}
|
|
133
|
-
exports.buildServePath = buildServePath;
|
|
134
133
|
/**
|
|
135
134
|
* Private method to enhance a webpack config with SSL configuration.
|
|
136
135
|
* @private
|
|
@@ -33,7 +33,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
33
33
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
34
34
|
};
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.getStylesConfig =
|
|
36
|
+
exports.getStylesConfig = getStylesConfig;
|
|
37
37
|
const private_1 = require("@angular/build/private");
|
|
38
38
|
const mini_css_extract_plugin_1 = __importDefault(require("mini-css-extract-plugin"));
|
|
39
39
|
const path = __importStar(require("node:path"));
|
|
@@ -278,7 +278,6 @@ async function getStylesConfig(wco) {
|
|
|
278
278
|
plugins: extraPlugins,
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
|
-
exports.getStylesConfig = getStylesConfig;
|
|
282
281
|
function getSassLoaderOptions(root, implementation, includePaths, indentedSyntax, verbose, preserveSymlinks) {
|
|
283
282
|
return {
|
|
284
283
|
sourceMap: true,
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.default = default_1;
|
|
10
11
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
11
12
|
const core_1 = require("@angular/core");
|
|
12
13
|
const rxjs_1 = require("rxjs");
|
|
@@ -81,7 +82,6 @@ function default_1(mod) {
|
|
|
81
82
|
});
|
|
82
83
|
});
|
|
83
84
|
}
|
|
84
|
-
exports.default = default_1;
|
|
85
85
|
function getAppRoot() {
|
|
86
86
|
const appRoot = document.querySelector('[ng-version]');
|
|
87
87
|
if (!appRoot) {
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.HmrLoader = void 0;
|
|
11
|
+
exports.default = localizeExtractLoader;
|
|
11
12
|
const path_1 = require("path");
|
|
12
13
|
exports.HmrLoader = __filename;
|
|
13
14
|
const hmrAcceptPath = (0, path_1.join)(__dirname, './hmr-accept.js').replace(/\\/g, '/');
|
|
@@ -21,4 +22,3 @@ function localizeExtractLoader(content, map) {
|
|
|
21
22
|
this.callback(null, source, map);
|
|
22
23
|
return;
|
|
23
24
|
}
|
|
24
|
-
exports.default = localizeExtractLoader;
|
|
@@ -10,6 +10,7 @@ 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.default = default_1;
|
|
13
14
|
const remapping_1 = __importDefault(require("@ampproject/remapping"));
|
|
14
15
|
const terser_1 = require("terser");
|
|
15
16
|
const esbuild_executor_1 = require("./esbuild-executor");
|
|
@@ -51,7 +52,6 @@ async function default_1({ asset, options }) {
|
|
|
51
52
|
}
|
|
52
53
|
return { name: asset.name, code: terserResult.code, map: fullSourcemap };
|
|
53
54
|
}
|
|
54
|
-
exports.default = default_1;
|
|
55
55
|
/**
|
|
56
56
|
* Optimizes a JavaScript asset using esbuild.
|
|
57
57
|
*
|
|
@@ -31,6 +31,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
31
31
|
};
|
|
32
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
33
|
exports.postcss = void 0;
|
|
34
|
+
exports.default = default_1;
|
|
34
35
|
const loader_utils_1 = require("loader-utils");
|
|
35
36
|
const path = __importStar(require("path"));
|
|
36
37
|
const url = __importStar(require("url"));
|
|
@@ -172,4 +173,3 @@ function default_1(options) {
|
|
|
172
173
|
},
|
|
173
174
|
};
|
|
174
175
|
}
|
|
175
|
-
exports.default = default_1;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.createIvyPlugin =
|
|
10
|
+
exports.createIvyPlugin = createIvyPlugin;
|
|
11
11
|
const webpack_1 = require("@ngtools/webpack");
|
|
12
12
|
const typescript_1 = require("typescript");
|
|
13
13
|
function createIvyPlugin(wco, aot, tsconfig) {
|
|
@@ -47,4 +47,3 @@ function createIvyPlugin(wco, aot, tsconfig) {
|
|
|
47
47
|
inlineStyleFileExtension: buildOptions.inlineStyleLanguage ?? 'css',
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
exports.createIvyPlugin = createIvyPlugin;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.markAsyncChunksNonInitial =
|
|
10
|
+
exports.markAsyncChunksNonInitial = markAsyncChunksNonInitial;
|
|
11
11
|
/**
|
|
12
12
|
* Webpack stats may incorrectly mark extra entry points `initial` chunks, when
|
|
13
13
|
* they are actually loaded asynchronously and thus not in the main bundle. This
|
|
@@ -42,4 +42,3 @@ function markAsyncChunksNonInitial(webpackStats, extraEntryPoints) {
|
|
|
42
42
|
: chunk;
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
-
exports.markAsyncChunksNonInitial = markAsyncChunksNonInitial;
|
|
@@ -33,7 +33,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
33
33
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
34
34
|
};
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
36
|
+
exports.getOutputHashFormat = getOutputHashFormat;
|
|
37
|
+
exports.normalizeExtraEntryPoints = normalizeExtraEntryPoints;
|
|
38
|
+
exports.assetNameTemplateFactory = assetNameTemplateFactory;
|
|
39
|
+
exports.getInstrumentationExcludedPaths = getInstrumentationExcludedPaths;
|
|
40
|
+
exports.normalizeGlobalStyles = normalizeGlobalStyles;
|
|
41
|
+
exports.getCacheSettings = getCacheSettings;
|
|
42
|
+
exports.globalScriptsByBundleName = globalScriptsByBundleName;
|
|
43
|
+
exports.assetPatterns = assetPatterns;
|
|
44
|
+
exports.getStatsOptions = getStatsOptions;
|
|
45
|
+
exports.isPlatformServerInstalled = isPlatformServerInstalled;
|
|
37
46
|
const crypto_1 = require("crypto");
|
|
38
47
|
const fast_glob_1 = __importDefault(require("fast-glob"));
|
|
39
48
|
const path = __importStar(require("path"));
|
|
@@ -73,7 +82,6 @@ function getOutputHashFormat(outputHashing = schema_1.OutputHashing.None, length
|
|
|
73
82
|
};
|
|
74
83
|
}
|
|
75
84
|
}
|
|
76
|
-
exports.getOutputHashFormat = getOutputHashFormat;
|
|
77
85
|
function normalizeExtraEntryPoints(extraEntryPoints, defaultBundleName) {
|
|
78
86
|
return extraEntryPoints.map((entry) => {
|
|
79
87
|
if (typeof entry === 'string') {
|
|
@@ -94,7 +102,6 @@ function normalizeExtraEntryPoints(extraEntryPoints, defaultBundleName) {
|
|
|
94
102
|
return { ...newEntry, inject, bundleName };
|
|
95
103
|
});
|
|
96
104
|
}
|
|
97
|
-
exports.normalizeExtraEntryPoints = normalizeExtraEntryPoints;
|
|
98
105
|
function assetNameTemplateFactory(hashFormat) {
|
|
99
106
|
const visitedFiles = new Map();
|
|
100
107
|
return (resourcePath) => {
|
|
@@ -118,7 +125,6 @@ function assetNameTemplateFactory(hashFormat) {
|
|
|
118
125
|
return '[path][name].[ext]';
|
|
119
126
|
};
|
|
120
127
|
}
|
|
121
|
-
exports.assetNameTemplateFactory = assetNameTemplateFactory;
|
|
122
128
|
function getInstrumentationExcludedPaths(root, excludedPaths) {
|
|
123
129
|
const excluded = new Set();
|
|
124
130
|
for (const excludeGlob of excludedPaths) {
|
|
@@ -127,7 +133,6 @@ function getInstrumentationExcludedPaths(root, excludedPaths) {
|
|
|
127
133
|
}
|
|
128
134
|
return excluded;
|
|
129
135
|
}
|
|
130
|
-
exports.getInstrumentationExcludedPaths = getInstrumentationExcludedPaths;
|
|
131
136
|
function normalizeGlobalStyles(styleEntrypoints) {
|
|
132
137
|
const entryPoints = {};
|
|
133
138
|
const noInjectNames = [];
|
|
@@ -145,7 +150,6 @@ function normalizeGlobalStyles(styleEntrypoints) {
|
|
|
145
150
|
}
|
|
146
151
|
return { entryPoints, noInjectNames };
|
|
147
152
|
}
|
|
148
|
-
exports.normalizeGlobalStyles = normalizeGlobalStyles;
|
|
149
153
|
function getCacheSettings(wco, angularVersion) {
|
|
150
154
|
const { enabled, path: cacheDirectory } = wco.buildOptions.cache;
|
|
151
155
|
if (enabled) {
|
|
@@ -179,7 +183,6 @@ function getCacheSettings(wco, angularVersion) {
|
|
|
179
183
|
}
|
|
180
184
|
return false;
|
|
181
185
|
}
|
|
182
|
-
exports.getCacheSettings = getCacheSettings;
|
|
183
186
|
function globalScriptsByBundleName(scripts) {
|
|
184
187
|
return normalizeExtraEntryPoints(scripts, 'scripts').reduce((prev, curr) => {
|
|
185
188
|
const { bundleName, inject, input } = curr;
|
|
@@ -201,7 +204,6 @@ function globalScriptsByBundleName(scripts) {
|
|
|
201
204
|
return prev;
|
|
202
205
|
}, []);
|
|
203
206
|
}
|
|
204
|
-
exports.globalScriptsByBundleName = globalScriptsByBundleName;
|
|
205
207
|
function assetPatterns(root, assets) {
|
|
206
208
|
return assets.map((asset, index) => {
|
|
207
209
|
// Resolve input paths relative to workspace root and add slash at the end.
|
|
@@ -237,7 +239,6 @@ function assetPatterns(root, assets) {
|
|
|
237
239
|
};
|
|
238
240
|
});
|
|
239
241
|
}
|
|
240
|
-
exports.assetPatterns = assetPatterns;
|
|
241
242
|
function getStatsOptions(verbose = false) {
|
|
242
243
|
const webpackOutputOptions = {
|
|
243
244
|
all: false, // Fallback value for stats options when an option is not defined. It has precedence over local webpack defaults.
|
|
@@ -274,7 +275,6 @@ function getStatsOptions(verbose = false) {
|
|
|
274
275
|
? { ...webpackOutputOptions, ...verboseWebpackOutputOptions }
|
|
275
276
|
: webpackOutputOptions;
|
|
276
277
|
}
|
|
277
|
-
exports.getStatsOptions = getStatsOptions;
|
|
278
278
|
/**
|
|
279
279
|
* @param root the workspace root
|
|
280
280
|
* @returns `true` when `@angular/platform-server` is installed.
|
|
@@ -288,4 +288,3 @@ function isPlatformServerInstalled(root) {
|
|
|
288
288
|
return false;
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
|
-
exports.isPlatformServerInstalled = isPlatformServerInstalled;
|
|
@@ -33,7 +33,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
33
33
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
34
34
|
};
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
36
|
+
exports.statsWarningsToString = statsWarningsToString;
|
|
37
|
+
exports.statsErrorsToString = statsErrorsToString;
|
|
38
|
+
exports.statsHasErrors = statsHasErrors;
|
|
39
|
+
exports.statsHasWarnings = statsHasWarnings;
|
|
40
|
+
exports.createWebpackLoggingCallback = createWebpackLoggingCallback;
|
|
41
|
+
exports.generateBuildEventStats = generateBuildEventStats;
|
|
42
|
+
exports.webpackStatsLogger = webpackStatsLogger;
|
|
37
43
|
const private_1 = require("@angular/build/private");
|
|
38
44
|
const node_assert_1 = __importDefault(require("node:assert"));
|
|
39
45
|
const path = __importStar(require("node:path"));
|
|
@@ -154,7 +160,6 @@ function statsWarningsToString(json, statsConfig) {
|
|
|
154
160
|
}
|
|
155
161
|
return output ? '\n' + output : output;
|
|
156
162
|
}
|
|
157
|
-
exports.statsWarningsToString = statsWarningsToString;
|
|
158
163
|
function statsErrorsToString(json, statsConfig) {
|
|
159
164
|
const colors = statsConfig.colors;
|
|
160
165
|
const c = (x) => (colors ? color_1.colors.reset.cyan(x) : x);
|
|
@@ -200,15 +205,12 @@ function statsErrorsToString(json, statsConfig) {
|
|
|
200
205
|
}
|
|
201
206
|
return output ? '\n' + output : output;
|
|
202
207
|
}
|
|
203
|
-
exports.statsErrorsToString = statsErrorsToString;
|
|
204
208
|
function statsHasErrors(json) {
|
|
205
209
|
return !!(json.errors?.length || json.children?.some((c) => c.errors?.length));
|
|
206
210
|
}
|
|
207
|
-
exports.statsHasErrors = statsHasErrors;
|
|
208
211
|
function statsHasWarnings(json) {
|
|
209
212
|
return !!(json.warnings?.length || json.children?.some((c) => c.warnings?.length));
|
|
210
213
|
}
|
|
211
|
-
exports.statsHasWarnings = statsHasWarnings;
|
|
212
214
|
function createWebpackLoggingCallback(options, logger) {
|
|
213
215
|
const { verbose = false, scripts = [], styles = [] } = options;
|
|
214
216
|
const extraEntryPoints = [
|
|
@@ -228,7 +230,6 @@ function createWebpackLoggingCallback(options, logger) {
|
|
|
228
230
|
webpackStatsLogger(logger, webpackStats, config);
|
|
229
231
|
};
|
|
230
232
|
}
|
|
231
|
-
exports.createWebpackLoggingCallback = createWebpackLoggingCallback;
|
|
232
233
|
function generateBuildEventStats(webpackStats, browserBuilderOptions) {
|
|
233
234
|
const { chunks = [], assets = [] } = webpackStats;
|
|
234
235
|
let jsSizeInBytes = 0;
|
|
@@ -275,7 +276,6 @@ function generateBuildEventStats(webpackStats, browserBuilderOptions) {
|
|
|
275
276
|
ngComponentCount,
|
|
276
277
|
};
|
|
277
278
|
}
|
|
278
|
-
exports.generateBuildEventStats = generateBuildEventStats;
|
|
279
279
|
function webpackStatsLogger(logger, json, config, budgetFailures) {
|
|
280
280
|
logger.info(statsToString(json, config.stats, budgetFailures));
|
|
281
281
|
if (typeof config.stats !== 'object') {
|
|
@@ -288,4 +288,3 @@ function webpackStatsLogger(logger, json, config, budgetFailures) {
|
|
|
288
288
|
logger.error(statsErrorsToString(json, config.stats));
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
|
-
exports.webpackStatsLogger = webpackStatsLogger;
|
package/src/utils/copy-assets.js
CHANGED
|
@@ -10,7 +10,7 @@ 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.copyAssets =
|
|
13
|
+
exports.copyAssets = copyAssets;
|
|
14
14
|
const fast_glob_1 = __importDefault(require("fast-glob"));
|
|
15
15
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
16
16
|
const node_path_1 = __importDefault(require("node:path"));
|
|
@@ -48,4 +48,3 @@ async function copyAssets(entries, basePaths, root, changed) {
|
|
|
48
48
|
}
|
|
49
49
|
return outputFiles;
|
|
50
50
|
}
|
|
51
|
-
exports.copyAssets = copyAssets;
|
|
@@ -7,11 +7,10 @@
|
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.defaultProgress =
|
|
10
|
+
exports.defaultProgress = defaultProgress;
|
|
11
11
|
function defaultProgress(progress) {
|
|
12
12
|
if (progress === undefined) {
|
|
13
13
|
return process.stdout.isTTY === true;
|
|
14
14
|
}
|
|
15
15
|
return progress;
|
|
16
16
|
}
|
|
17
|
-
exports.defaultProgress = defaultProgress;
|
package/src/utils/error.js
CHANGED
|
@@ -10,7 +10,7 @@ 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.assertIsError =
|
|
13
|
+
exports.assertIsError = assertIsError;
|
|
14
14
|
const assert_1 = __importDefault(require("assert"));
|
|
15
15
|
function assertIsError(value) {
|
|
16
16
|
const isError = value instanceof Error ||
|
|
@@ -18,4 +18,3 @@ function assertIsError(value) {
|
|
|
18
18
|
(typeof value === 'object' && value && 'name' in value && 'message' in value);
|
|
19
19
|
(0, assert_1.default)(isError, 'catch clause variable is not an Error instance');
|
|
20
20
|
}
|
|
21
|
-
exports.assertIsError = assertIsError;
|
|
@@ -30,7 +30,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
30
30
|
return result;
|
|
31
31
|
};
|
|
32
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
-
exports.i18nInlineEmittedFiles =
|
|
33
|
+
exports.i18nInlineEmittedFiles = i18nInlineEmittedFiles;
|
|
34
34
|
const fs = __importStar(require("fs"));
|
|
35
35
|
const path = __importStar(require("path"));
|
|
36
36
|
const action_executor_1 = require("./action-executor");
|
|
@@ -118,4 +118,3 @@ async function i18nInlineEmittedFiles(context, emittedFiles, i18n, baseOutputPat
|
|
|
118
118
|
}
|
|
119
119
|
return !hasErrors;
|
|
120
120
|
}
|
|
121
|
-
exports.i18nInlineEmittedFiles = i18nInlineEmittedFiles;
|
|
@@ -10,7 +10,8 @@ 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.
|
|
13
|
+
exports.loadTranslations = void 0;
|
|
14
|
+
exports.configureI18nBuild = configureI18nBuild;
|
|
14
15
|
const private_1 = require("@angular/build/private");
|
|
15
16
|
Object.defineProperty(exports, "loadTranslations", { enumerable: true, get: function () { return private_1.loadTranslations; } });
|
|
16
17
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
@@ -93,7 +94,6 @@ async function configureI18nBuild(context, options) {
|
|
|
93
94
|
}
|
|
94
95
|
return { buildOptions, i18n };
|
|
95
96
|
}
|
|
96
|
-
exports.configureI18nBuild = configureI18nBuild;
|
|
97
97
|
function findLocaleDataPath(locale, resolver) {
|
|
98
98
|
// Remove private use subtags
|
|
99
99
|
const scrubbedLocale = locale.replace(/-x(-[a-zA-Z0-9]{1,8})+$/, '');
|
package/src/utils/load-esm.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.loadEsmModule =
|
|
10
|
+
exports.loadEsmModule = loadEsmModule;
|
|
11
11
|
/**
|
|
12
12
|
* Lazily compiled dynamic import loader function.
|
|
13
13
|
*/
|
|
@@ -28,4 +28,3 @@ function loadEsmModule(modulePath) {
|
|
|
28
28
|
load ??= new Function('modulePath', `return import(modulePath);`);
|
|
29
29
|
return load(modulePath);
|
|
30
30
|
}
|
|
31
|
-
exports.loadEsmModule = loadEsmModule;
|
|
@@ -33,7 +33,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
33
33
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
34
34
|
};
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
36
|
+
exports.MissingAssetSourceRootException = void 0;
|
|
37
|
+
exports.normalizeAssetPatterns = normalizeAssetPatterns;
|
|
37
38
|
const fs_1 = require("fs");
|
|
38
39
|
const node_assert_1 = __importDefault(require("node:assert"));
|
|
39
40
|
const path = __importStar(require("path"));
|
|
@@ -93,4 +94,3 @@ function normalizeAssetPatterns(assetPatterns, workspaceRoot, projectRoot, proje
|
|
|
93
94
|
return assetPattern;
|
|
94
95
|
});
|
|
95
96
|
}
|
|
96
|
-
exports.normalizeAssetPatterns = normalizeAssetPatterns;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.normalizeBrowserSchema =
|
|
10
|
+
exports.normalizeBrowserSchema = normalizeBrowserSchema;
|
|
11
11
|
const private_1 = require("@angular/build/private");
|
|
12
12
|
const normalize_asset_patterns_1 = require("./normalize-asset-patterns");
|
|
13
13
|
const normalize_cache_1 = require("./normalize-cache");
|
|
@@ -41,4 +41,3 @@ function normalizeBrowserSchema(workspaceRoot, projectRoot, projectSourceRoot, o
|
|
|
41
41
|
supportedBrowsers: (0, private_1.getSupportedBrowsers)(projectRoot, logger),
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
exports.normalizeBrowserSchema = normalizeBrowserSchema;
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.normalizeCacheOptions =
|
|
10
|
+
exports.normalizeCacheOptions = normalizeCacheOptions;
|
|
11
11
|
const node_path_1 = require("node:path");
|
|
12
12
|
/** Version placeholder is replaced during the build process with actual package version */
|
|
13
|
-
const VERSION = '18.1.0-next.
|
|
13
|
+
const VERSION = '18.1.0-next.1';
|
|
14
14
|
function hasCacheMetadata(value) {
|
|
15
15
|
return (!!value &&
|
|
16
16
|
typeof value === 'object' &&
|
|
@@ -41,4 +41,3 @@ function normalizeCacheOptions(projectMetadata, worspaceRoot) {
|
|
|
41
41
|
path: (0, node_path_1.join)(cacheBasePath, VERSION),
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
exports.normalizeCacheOptions = normalizeCacheOptions;
|
|
@@ -30,7 +30,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
30
30
|
return result;
|
|
31
31
|
};
|
|
32
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
-
exports.
|
|
33
|
+
exports.MissingFileReplacementException = void 0;
|
|
34
|
+
exports.normalizeFileReplacements = normalizeFileReplacements;
|
|
34
35
|
const fs_1 = require("fs");
|
|
35
36
|
const path = __importStar(require("path"));
|
|
36
37
|
class MissingFileReplacementException extends Error {
|
|
@@ -54,7 +55,6 @@ function normalizeFileReplacements(fileReplacements, workspaceRoot) {
|
|
|
54
55
|
}
|
|
55
56
|
return normalizedReplacement;
|
|
56
57
|
}
|
|
57
|
-
exports.normalizeFileReplacements = normalizeFileReplacements;
|
|
58
58
|
function normalizeFileReplacement(fileReplacement, root) {
|
|
59
59
|
let replacePath;
|
|
60
60
|
let withPath;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.normalizeOptimization =
|
|
10
|
+
exports.normalizeOptimization = normalizeOptimization;
|
|
11
11
|
function normalizeOptimization(optimization = true) {
|
|
12
12
|
if (typeof optimization === 'object') {
|
|
13
13
|
const styleOptimization = !!optimization.styles;
|
|
@@ -37,4 +37,3 @@ function normalizeOptimization(optimization = true) {
|
|
|
37
37
|
},
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
exports.normalizeOptimization = normalizeOptimization;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.normalizePolyfills =
|
|
10
|
+
exports.normalizePolyfills = normalizePolyfills;
|
|
11
11
|
const fs_1 = require("fs");
|
|
12
12
|
const path_1 = require("path");
|
|
13
13
|
function normalizePolyfills(polyfills, root) {
|
|
@@ -21,4 +21,3 @@ function normalizePolyfills(polyfills, root) {
|
|
|
21
21
|
return (0, fs_1.existsSync)(resolvedPath) ? resolvedPath : p;
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
exports.normalizePolyfills = normalizePolyfills;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.normalizeSourceMaps =
|
|
10
|
+
exports.normalizeSourceMaps = normalizeSourceMaps;
|
|
11
11
|
function normalizeSourceMaps(sourceMap) {
|
|
12
12
|
const scripts = typeof sourceMap === 'object' ? sourceMap.scripts : sourceMap;
|
|
13
13
|
const styles = typeof sourceMap === 'object' ? sourceMap.styles : sourceMap;
|
|
@@ -20,4 +20,3 @@ function normalizeSourceMaps(sourceMap) {
|
|
|
20
20
|
styles,
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
exports.normalizeSourceMaps = normalizeSourceMaps;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.ensureOutputPaths =
|
|
10
|
+
exports.ensureOutputPaths = ensureOutputPaths;
|
|
11
11
|
const fs_1 = require("fs");
|
|
12
12
|
const path_1 = require("path");
|
|
13
13
|
function ensureOutputPaths(baseOutputPath, i18n) {
|
|
@@ -24,4 +24,3 @@ function ensureOutputPaths(baseOutputPath, i18n) {
|
|
|
24
24
|
}
|
|
25
25
|
return new Map(outputPaths);
|
|
26
26
|
}
|
|
27
|
-
exports.ensureOutputPaths = ensureOutputPaths;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.generateEntryPoints =
|
|
10
|
+
exports.generateEntryPoints = generateEntryPoints;
|
|
11
11
|
const helpers_1 = require("../tools/webpack/utils/helpers");
|
|
12
12
|
function generateEntryPoints(options) {
|
|
13
13
|
// Add all styles/scripts, except lazy-loaded ones.
|
|
@@ -32,4 +32,3 @@ function generateEntryPoints(options) {
|
|
|
32
32
|
}
|
|
33
33
|
return entryPoints;
|
|
34
34
|
}
|
|
35
|
-
exports.generateEntryPoints = generateEntryPoints;
|
|
@@ -9,14 +9,14 @@ import { InlineOptions } from './bundle-inline-options';
|
|
|
9
9
|
export declare function inlineLocales(options: InlineOptions): Promise<{
|
|
10
10
|
file: string;
|
|
11
11
|
diagnostics: {
|
|
12
|
-
type: "
|
|
12
|
+
type: "warning" | "error";
|
|
13
13
|
message: string;
|
|
14
14
|
}[];
|
|
15
15
|
count: number;
|
|
16
16
|
} | {
|
|
17
17
|
file: string;
|
|
18
18
|
diagnostics: {
|
|
19
|
-
type: "
|
|
19
|
+
type: "warning" | "error";
|
|
20
20
|
message: string;
|
|
21
21
|
}[];
|
|
22
22
|
}>;
|
|
@@ -33,7 +33,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
33
33
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
34
34
|
};
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.inlineLocales =
|
|
36
|
+
exports.inlineLocales = inlineLocales;
|
|
37
37
|
const remapping_1 = __importDefault(require("@ampproject/remapping"));
|
|
38
38
|
const core_1 = require("@babel/core");
|
|
39
39
|
const fs = __importStar(require("fs/promises"));
|
|
@@ -170,7 +170,6 @@ async function inlineLocales(options) {
|
|
|
170
170
|
}
|
|
171
171
|
return { file: options.filename, diagnostics };
|
|
172
172
|
}
|
|
173
|
-
exports.inlineLocales = inlineLocales;
|
|
174
173
|
async function inlineLocalesDirect(ast, options) {
|
|
175
174
|
if (!i18n || i18n.inlineLocales.size === 0) {
|
|
176
175
|
return { file: options.filename, diagnostics: [], count: 0 };
|
|
@@ -30,7 +30,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
30
30
|
return result;
|
|
31
31
|
};
|
|
32
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
-
exports.readTsconfig =
|
|
33
|
+
exports.readTsconfig = readTsconfig;
|
|
34
34
|
const path = __importStar(require("path"));
|
|
35
35
|
const load_esm_1 = require("./load-esm");
|
|
36
36
|
/**
|
|
@@ -52,4 +52,3 @@ async function readTsconfig(tsconfigPath, workspaceRoot) {
|
|
|
52
52
|
}
|
|
53
53
|
return configResult;
|
|
54
54
|
}
|
|
55
|
-
exports.readTsconfig = readTsconfig;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.runModuleAsObservableFork =
|
|
10
|
+
exports.runModuleAsObservableFork = runModuleAsObservableFork;
|
|
11
11
|
const child_process_1 = require("child_process");
|
|
12
12
|
const path_1 = require("path");
|
|
13
13
|
const rxjs_1 = require("rxjs");
|
|
@@ -72,4 +72,3 @@ args) {
|
|
|
72
72
|
return killForkedProcess;
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
|
-
exports.runModuleAsObservableFork = runModuleAsObservableFork;
|
package/src/utils/tailwind.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.findTailwindConfigurationFile =
|
|
10
|
+
exports.findTailwindConfigurationFile = findTailwindConfigurationFile;
|
|
11
11
|
const promises_1 = require("node:fs/promises");
|
|
12
12
|
const node_path_1 = require("node:path");
|
|
13
13
|
const tailwindConfigFiles = [
|
|
@@ -31,4 +31,3 @@ async function findTailwindConfigurationFile(workspaceRoot, projectRoot) {
|
|
|
31
31
|
}
|
|
32
32
|
return undefined;
|
|
33
33
|
}
|
|
34
|
-
exports.findTailwindConfigurationFile = findTailwindConfigurationFile;
|
package/src/utils/test-files.js
CHANGED
|
@@ -10,7 +10,7 @@ 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.findTestFiles =
|
|
13
|
+
exports.findTestFiles = findTestFiles;
|
|
14
14
|
const fast_glob_1 = __importDefault(require("fast-glob"));
|
|
15
15
|
/**
|
|
16
16
|
* Finds all test files in the project.
|
|
@@ -32,4 +32,3 @@ async function findTestFiles(include, exclude, workspaceRoot, glob = fast_glob_1
|
|
|
32
32
|
// Flatten and deduplicate any files found in multiple include patterns.
|
|
33
33
|
return new Set(included.flat());
|
|
34
34
|
}
|
|
35
|
-
exports.findTestFiles = findTestFiles;
|
package/src/utils/tty.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.isTTY =
|
|
10
|
+
exports.isTTY = isTTY;
|
|
11
11
|
function _isTruthy(value) {
|
|
12
12
|
// Returns true if value is a string that is anything but 0 or false.
|
|
13
13
|
return value !== undefined && value !== '0' && value.toUpperCase() !== 'FALSE';
|
|
@@ -20,4 +20,3 @@ function isTTY() {
|
|
|
20
20
|
}
|
|
21
21
|
return !!process.stdout.isTTY && !_isTruthy(process.env['CI']);
|
|
22
22
|
}
|
|
23
|
-
exports.isTTY = isTTY;
|
package/src/utils/url.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.urlJoin =
|
|
10
|
+
exports.urlJoin = urlJoin;
|
|
11
11
|
function urlJoin(...parts) {
|
|
12
12
|
const [p, ...rest] = parts;
|
|
13
13
|
// Remove trailing slash from first part
|
|
@@ -15,4 +15,3 @@ function urlJoin(...parts) {
|
|
|
15
15
|
// Dedupe double slashes from path names
|
|
16
16
|
return p.replace(/\/$/, '') + ('/' + rest.join('/')).replace(/\/\/+/g, '/');
|
|
17
17
|
}
|
|
18
|
-
exports.urlJoin = urlJoin;
|