@angular-devkit/build-angular 0.1102.5 → 0.1102.6
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
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/build-angular",
|
|
3
|
-
"version": "0.1102.
|
|
3
|
+
"version": "0.1102.6",
|
|
4
4
|
"description": "Angular Webpack Build Facade",
|
|
5
5
|
"experimental": true,
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"typings": "src/index.d.ts",
|
|
8
8
|
"builders": "builders.json",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@angular-devkit/architect": "0.1102.
|
|
11
|
-
"@angular-devkit/build-optimizer": "0.1102.
|
|
12
|
-
"@angular-devkit/build-webpack": "0.1102.
|
|
13
|
-
"@angular-devkit/core": "11.2.
|
|
10
|
+
"@angular-devkit/architect": "0.1102.6",
|
|
11
|
+
"@angular-devkit/build-optimizer": "0.1102.6",
|
|
12
|
+
"@angular-devkit/build-webpack": "0.1102.6",
|
|
13
|
+
"@angular-devkit/core": "11.2.6",
|
|
14
14
|
"@babel/core": "7.12.10",
|
|
15
15
|
"@babel/generator": "7.12.11",
|
|
16
16
|
"@babel/plugin-transform-async-to-generator": "7.12.1",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@babel/template": "7.12.7",
|
|
21
21
|
"@discoveryjs/json-ext": "0.5.2",
|
|
22
22
|
"@jsdevtools/coverage-istanbul-loader": "3.0.5",
|
|
23
|
-
"@ngtools/webpack": "11.2.
|
|
23
|
+
"@ngtools/webpack": "11.2.6",
|
|
24
24
|
"ansi-colors": "4.1.1",
|
|
25
25
|
"autoprefixer": "10.2.4",
|
|
26
26
|
"babel-loader": "8.2.2",
|
|
@@ -19,6 +19,7 @@ const cache_path_1 = require("../../utils/cache-path");
|
|
|
19
19
|
const environment_options_1 = require("../../utils/environment-options");
|
|
20
20
|
const find_up_1 = require("../../utils/find-up");
|
|
21
21
|
const spinner_1 = require("../../utils/spinner");
|
|
22
|
+
const webpack_diagnostics_1 = require("../../utils/webpack-diagnostics");
|
|
22
23
|
const webpack_version_1 = require("../../utils/webpack-version");
|
|
23
24
|
const plugins_1 = require("../plugins");
|
|
24
25
|
const helpers_1 = require("../utils/helpers");
|
|
@@ -260,10 +261,16 @@ function getCommonConfig(wco) {
|
|
|
260
261
|
const { stringifyStream } = await Promise.resolve().then(() => require('@discoveryjs/json-ext'));
|
|
261
262
|
const data = stats.toJson('verbose');
|
|
262
263
|
const statsOutputPath = path.join(stats.compilation.outputOptions.path, 'stats.json');
|
|
263
|
-
|
|
264
|
-
.
|
|
265
|
-
|
|
266
|
-
|
|
264
|
+
try {
|
|
265
|
+
await fs_1.promises.mkdir(path.dirname(statsOutputPath), { recursive: true });
|
|
266
|
+
await new Promise((resolve, reject) => stringifyStream(data)
|
|
267
|
+
.pipe(fs_1.createWriteStream(statsOutputPath))
|
|
268
|
+
.on('close', resolve)
|
|
269
|
+
.on('error', reject));
|
|
270
|
+
}
|
|
271
|
+
catch (error) {
|
|
272
|
+
webpack_diagnostics_1.addError(stats.compilation, `Unable to write stats file: ${error.message || 'unknown error'}`);
|
|
273
|
+
}
|
|
267
274
|
});
|
|
268
275
|
}
|
|
269
276
|
})());
|