rollup 2.75.4 → 2.75.7
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/CHANGELOG.md +42 -0
- package/dist/bin/rollup +2 -2
- package/dist/es/rollup.browser.js +3 -3
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/rollup.js +1406 -1582
- package/dist/es/shared/watch.js +5 -5
- package/dist/loadConfigFile.js +2 -2
- package/dist/rollup.browser.js +3 -3
- package/dist/rollup.browser.js.map +1 -1
- package/dist/rollup.js +2 -2
- package/dist/shared/index.js +4 -4
- package/dist/shared/loadConfigFile.js +6 -7
- package/dist/shared/mergeOptions.js +2 -2
- package/dist/shared/rollup.js +1406 -1582
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +14 -14
package/dist/rollup.js
CHANGED
package/dist/shared/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v2.75.
|
|
4
|
-
|
|
3
|
+
Rollup.js v2.75.7
|
|
4
|
+
Mon, 20 Jun 2022 07:24:02 GMT - commit 057171c2d3bc2092b7f543fc05ead01f12595f12
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -1236,7 +1236,7 @@ const invalidStep = (step, options) => {
|
|
|
1236
1236
|
return [];
|
|
1237
1237
|
};
|
|
1238
1238
|
|
|
1239
|
-
const fillNumbers = (start, end, step = 1, options) => {
|
|
1239
|
+
const fillNumbers = (start, end, step = 1, options = {}) => {
|
|
1240
1240
|
let a = Number(start);
|
|
1241
1241
|
let b = Number(end);
|
|
1242
1242
|
|
|
@@ -1288,7 +1288,7 @@ const fillNumbers = (start, end, step = 1, options) => {
|
|
|
1288
1288
|
return range;
|
|
1289
1289
|
};
|
|
1290
1290
|
|
|
1291
|
-
const fillLetters = (start, end, step = 1, options) => {
|
|
1291
|
+
const fillLetters = (start, end, step = 1, options = {}) => {
|
|
1292
1292
|
if ((!isNumber(start) && start.length > 1) || (!isNumber(end) && end.length > 1)) {
|
|
1293
1293
|
return invalidRange(start, end, options);
|
|
1294
1294
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v2.75.
|
|
4
|
-
|
|
3
|
+
Rollup.js v2.75.7
|
|
4
|
+
Mon, 20 Jun 2022 07:24:02 GMT - commit 057171c2d3bc2092b7f543fc05ead01f12595f12
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -35,16 +35,17 @@ const argv = process.argv || [];
|
|
|
35
35
|
const isDisabled = "NO_COLOR" in env || argv.includes("--no-color");
|
|
36
36
|
const isForced = "FORCE_COLOR" in env || argv.includes("--color");
|
|
37
37
|
const isWindows = process.platform === "win32";
|
|
38
|
+
const isDumbTerminal = env.TERM === "dumb";
|
|
38
39
|
|
|
39
40
|
const isCompatibleTerminal =
|
|
40
|
-
tty__namespace && tty__namespace.isatty && tty__namespace.isatty(1) && env.TERM &&
|
|
41
|
+
tty__namespace && tty__namespace.isatty && tty__namespace.isatty(1) && env.TERM && !isDumbTerminal;
|
|
41
42
|
|
|
42
43
|
const isCI =
|
|
43
44
|
"CI" in env &&
|
|
44
45
|
("GITHUB_ACTIONS" in env || "GITLAB_CI" in env || "CIRCLECI" in env);
|
|
45
46
|
|
|
46
47
|
const isColorSupported =
|
|
47
|
-
!isDisabled && (isForced || isWindows || isCompatibleTerminal || isCI);
|
|
48
|
+
!isDisabled && (isForced || (isWindows && !isDumbTerminal) || isCompatibleTerminal || isCI);
|
|
48
49
|
|
|
49
50
|
const replaceClose = (
|
|
50
51
|
index,
|
|
@@ -121,13 +122,11 @@ const colors = {
|
|
|
121
122
|
bgWhiteBright: init(107, 49),
|
|
122
123
|
};
|
|
123
124
|
|
|
124
|
-
const none = (any) => any;
|
|
125
|
-
|
|
126
125
|
const createColors = ({ useColor = isColorSupported } = {}) =>
|
|
127
126
|
useColor
|
|
128
127
|
? colors
|
|
129
128
|
: Object.keys(colors).reduce(
|
|
130
|
-
(colors, key) => ({ ...colors, [key]:
|
|
129
|
+
(colors, key) => ({ ...colors, [key]: String }),
|
|
131
130
|
{}
|
|
132
131
|
);
|
|
133
132
|
|