@nx/rollup 20.0.0-canary.20240928-f221a41 → 20.0.0-canary.20241002-1d10a19
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +4 -4
- package/src/plugins/analyze.js +2 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/rollup",
|
3
|
-
"version": "20.0.0-canary.
|
3
|
+
"version": "20.0.0-canary.20241002-1d10a19",
|
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,16 +35,16 @@
|
|
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": "20.0.0-canary.
|
47
|
-
"@nx/js": "20.0.0-canary.
|
46
|
+
"@nx/devkit": "20.0.0-canary.20241002-1d10a19",
|
47
|
+
"@nx/js": "20.0.0-canary.20241002-1d10a19"
|
48
48
|
},
|
49
49
|
"publishConfig": {
|
50
50
|
"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
|
}
|