@nx/rollup 19.8.2 → 19.8.4
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +5 -5
- package/src/plugins/analyze.js +2 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/rollup",
|
3
|
-
"version": "19.8.
|
3
|
+
"version": "19.8.4",
|
4
4
|
"private": false,
|
5
5
|
"description": "The Nx Plugin for Rollup contains executors and generators that support building applications using Rollup.",
|
6
6
|
"repository": {
|
@@ -35,17 +35,17 @@
|
|
35
35
|
"@rollup/plugin-json": "^6.1.0",
|
36
36
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
37
37
|
"autoprefixer": "^10.4.9",
|
38
|
-
"chalk": "^4.1.0",
|
39
38
|
"minimatch": "9.0.3",
|
39
|
+
"picocolors": "^1.1.0",
|
40
40
|
"postcss": "^8.4.38",
|
41
41
|
"rollup": "^4.14.0",
|
42
42
|
"rollup-plugin-copy": "^3.5.0",
|
43
43
|
"rollup-plugin-postcss": "^4.0.2",
|
44
44
|
"rollup-plugin-typescript2": "^0.36.0",
|
45
45
|
"tslib": "^2.3.0",
|
46
|
-
"@nx/devkit": "19.8.
|
47
|
-
"@nx/js": "19.8.
|
48
|
-
"@nrwl/rollup": "19.8.
|
46
|
+
"@nx/devkit": "19.8.4",
|
47
|
+
"@nx/js": "19.8.4",
|
48
|
+
"@nrwl/rollup": "19.8.4"
|
49
49
|
},
|
50
50
|
"publishConfig": {
|
51
51
|
"access": "public"
|
package/src/plugins/analyze.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.analyze = analyze;
|
4
|
-
const
|
4
|
+
const pc = require("picocolors");
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
6
6
|
const formatBytes = (bytes) => {
|
7
7
|
if (bytes === 0)
|
@@ -18,7 +18,7 @@ function analyze() {
|
|
18
18
|
renderChunk(source, chunk) {
|
19
19
|
const sourceBytes = formatBytes(source.length);
|
20
20
|
const fileName = chunk.fileName;
|
21
|
-
devkit_1.logger.info(` ${
|
21
|
+
devkit_1.logger.info(` ${pc.bold(fileName)} ${pc.cyan(sourceBytes)}`);
|
22
22
|
},
|
23
23
|
};
|
24
24
|
}
|