rollup 3.9.0 → 3.9.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/LICENSE.md +46 -0
- package/dist/bin/rollup +5 -5
- package/dist/es/rollup.js +3 -3
- package/dist/es/shared/rollup.js +330 -233
- package/dist/es/shared/watch.js +27 -15
- package/dist/loadConfigFile.js +3 -3
- package/dist/rollup.js +3 -3
- package/dist/shared/index.js +25 -13
- package/dist/shared/loadConfigFile.js +5 -5
- package/dist/shared/rollup.js +332 -236
- package/dist/shared/watch-cli.js +20 -12
- package/dist/shared/watch.js +3 -3
- package/package.json +30 -30
package/dist/shared/watch-cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.9.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.9.1
|
|
4
|
+
Mon, 02 Jan 2023 13:46:34 GMT - commit c6c884433e748cde70f3f4299dd48b81af97ec14
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
13
13
|
|
|
14
|
-
const
|
|
14
|
+
const promises = require('node:fs/promises');
|
|
15
15
|
const process$2 = require('node:process');
|
|
16
16
|
const index = require('./index.js');
|
|
17
17
|
const cli = require('../bin/rollup');
|
|
@@ -70,14 +70,22 @@ function dateTime(options = {}) {
|
|
|
70
70
|
.replace(/\..+/, end);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
var
|
|
73
|
+
var signalExitExports = {};
|
|
74
|
+
var signalExit = {
|
|
75
|
+
get exports(){ return signalExitExports; },
|
|
76
|
+
set exports(v){ signalExitExports = v; },
|
|
77
|
+
};
|
|
74
78
|
|
|
75
|
-
var
|
|
79
|
+
var signalsExports = {};
|
|
80
|
+
var signals$1 = {
|
|
81
|
+
get exports(){ return signalsExports; },
|
|
82
|
+
set exports(v){ signalsExports = v; },
|
|
83
|
+
};
|
|
76
84
|
|
|
77
85
|
var hasRequiredSignals;
|
|
78
86
|
|
|
79
87
|
function requireSignals () {
|
|
80
|
-
if (hasRequiredSignals) return
|
|
88
|
+
if (hasRequiredSignals) return signalsExports;
|
|
81
89
|
hasRequiredSignals = 1;
|
|
82
90
|
(function (module) {
|
|
83
91
|
// This is not the set of all possible signals.
|
|
@@ -134,7 +142,7 @@ function requireSignals () {
|
|
|
134
142
|
);
|
|
135
143
|
}
|
|
136
144
|
} (signals$1));
|
|
137
|
-
return
|
|
145
|
+
return signalsExports;
|
|
138
146
|
}
|
|
139
147
|
|
|
140
148
|
// Note: since nyc uses this module to output coverage, any lines
|
|
@@ -233,7 +241,7 @@ if (!processOk(process$1)) {
|
|
|
233
241
|
process$1.reallyExit = originalProcessReallyExit;
|
|
234
242
|
emitter.count -= 1;
|
|
235
243
|
};
|
|
236
|
-
|
|
244
|
+
signalExitExports.unload = unload;
|
|
237
245
|
|
|
238
246
|
var emit = function emit (event, code, signal) {
|
|
239
247
|
/* istanbul ignore if */
|
|
@@ -274,7 +282,7 @@ if (!processOk(process$1)) {
|
|
|
274
282
|
};
|
|
275
283
|
});
|
|
276
284
|
|
|
277
|
-
|
|
285
|
+
signalExitExports.signals = function () {
|
|
278
286
|
return signals
|
|
279
287
|
};
|
|
280
288
|
|
|
@@ -304,7 +312,7 @@ if (!processOk(process$1)) {
|
|
|
304
312
|
process$1.emit = processEmit;
|
|
305
313
|
process$1.reallyExit = processReallyExit;
|
|
306
314
|
};
|
|
307
|
-
|
|
315
|
+
signalExitExports.load = load;
|
|
308
316
|
|
|
309
317
|
var originalProcessReallyExit = process$1.reallyExit;
|
|
310
318
|
var processReallyExit = function processReallyExit (code) {
|
|
@@ -396,7 +404,7 @@ async function watch(command) {
|
|
|
396
404
|
let resetScreen;
|
|
397
405
|
const configFile = command.config ? await cli.getConfigPath(command.config) : null;
|
|
398
406
|
const runWatchHook = createWatchHooks(command);
|
|
399
|
-
|
|
407
|
+
signalExitExports(close);
|
|
400
408
|
process$2.on('uncaughtException', close);
|
|
401
409
|
if (!process$2.stdin.isTTY) {
|
|
402
410
|
process$2.stdin.on('end', close);
|
|
@@ -409,7 +417,7 @@ async function watch(command) {
|
|
|
409
417
|
await reloadConfigFile();
|
|
410
418
|
async function reloadConfigFile() {
|
|
411
419
|
try {
|
|
412
|
-
const newConfigFileData = await
|
|
420
|
+
const newConfigFileData = await promises.readFile(configFile, 'utf8');
|
|
413
421
|
if (newConfigFileData === configFileData) {
|
|
414
422
|
return;
|
|
415
423
|
}
|
package/dist/shared/watch.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.9.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.9.1
|
|
4
|
+
Mon, 02 Jan 2023 13:46:34 GMT - commit c6c884433e748cde70f3f4299dd48b81af97ec14
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -19,7 +19,7 @@ const index = require('./index.js');
|
|
|
19
19
|
require('path');
|
|
20
20
|
require('node:perf_hooks');
|
|
21
21
|
require('node:crypto');
|
|
22
|
-
require('node:fs');
|
|
22
|
+
require('node:fs/promises');
|
|
23
23
|
require('node:events');
|
|
24
24
|
require('tty');
|
|
25
25
|
require('fs');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollup",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.1",
|
|
4
4
|
"description": "Next-generation ES module bundler",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -58,56 +58,56 @@
|
|
|
58
58
|
"fsevents": "~2.3.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@rollup/plugin-alias": "^4.0.
|
|
62
|
-
"@rollup/plugin-buble": "^1.0.
|
|
63
|
-
"@rollup/plugin-commonjs": "^
|
|
64
|
-
"@rollup/plugin-json": "^
|
|
65
|
-
"@rollup/plugin-node-resolve": "^15.0.
|
|
66
|
-
"@rollup/plugin-replace": "^5.0.
|
|
67
|
-
"@rollup/plugin-typescript": "^
|
|
61
|
+
"@rollup/plugin-alias": "^4.0.2",
|
|
62
|
+
"@rollup/plugin-buble": "^1.0.1",
|
|
63
|
+
"@rollup/plugin-commonjs": "^24.0.0",
|
|
64
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
65
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
66
|
+
"@rollup/plugin-replace": "^5.0.2",
|
|
67
|
+
"@rollup/plugin-typescript": "^10.0.1",
|
|
68
68
|
"@rollup/pluginutils": "^5.0.0",
|
|
69
69
|
"@types/estree": "1.0.0",
|
|
70
|
-
"@types/node": "^14.18.
|
|
70
|
+
"@types/node": "^14.18.36",
|
|
71
71
|
"@types/signal-exit": "^3.0.1",
|
|
72
72
|
"@types/yargs-parser": "^21.0.0",
|
|
73
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
74
|
-
"@typescript-eslint/parser": "^5.
|
|
75
|
-
"acorn": "^8.8.
|
|
73
|
+
"@typescript-eslint/eslint-plugin": "^5.47.1",
|
|
74
|
+
"@typescript-eslint/parser": "^5.47.1",
|
|
75
|
+
"acorn": "^8.8.1",
|
|
76
76
|
"acorn-import-assertions": "^1.8.0",
|
|
77
77
|
"acorn-jsx": "^5.3.2",
|
|
78
78
|
"acorn-walk": "^8.2.0",
|
|
79
79
|
"buble": "^0.20.0",
|
|
80
|
+
"builtin-modules": "^3.3.0",
|
|
80
81
|
"chokidar": "^3.5.3",
|
|
81
82
|
"colorette": "^2.0.19",
|
|
82
|
-
"concurrently": "^7.
|
|
83
|
-
"core-js": "^3.
|
|
83
|
+
"concurrently": "^7.6.0",
|
|
84
|
+
"core-js": "^3.27.1",
|
|
84
85
|
"date-time": "^4.0.0",
|
|
85
86
|
"es5-shim": "^4.6.7",
|
|
86
|
-
"es6-shim": "^0.35.
|
|
87
|
-
"eslint": "^8.
|
|
87
|
+
"es6-shim": "^0.35.7",
|
|
88
|
+
"eslint": "^8.31.0",
|
|
88
89
|
"eslint-config-prettier": "^8.5.0",
|
|
89
|
-
"eslint-plugin-import": "^2.26.0",
|
|
90
90
|
"eslint-plugin-prettier": "^4.2.1",
|
|
91
|
-
"eslint-plugin-unicorn": "^
|
|
92
|
-
"fixturify": "^
|
|
91
|
+
"eslint-plugin-unicorn": "^45.0.2",
|
|
92
|
+
"fixturify": "^3.0.0",
|
|
93
93
|
"flru": "^1.0.2",
|
|
94
|
-
"fs-extra": "^
|
|
94
|
+
"fs-extra": "^11.1.0",
|
|
95
95
|
"github-api": "^3.4.0",
|
|
96
96
|
"hash.js": "^1.1.7",
|
|
97
|
-
"husky": "^8.0.
|
|
98
|
-
"inquirer": "^9.1.
|
|
97
|
+
"husky": "^8.0.2",
|
|
98
|
+
"inquirer": "^9.1.4",
|
|
99
99
|
"is-reference": "^3.0.0",
|
|
100
|
-
"lint-staged": "^13.0
|
|
100
|
+
"lint-staged": "^13.1.0",
|
|
101
101
|
"locate-character": "^2.0.5",
|
|
102
|
-
"magic-string": "^0.
|
|
103
|
-
"mocha": "^10.
|
|
102
|
+
"magic-string": "^0.27.0",
|
|
103
|
+
"mocha": "^10.2.0",
|
|
104
104
|
"nyc": "^15.1.0",
|
|
105
|
-
"prettier": "^2.
|
|
105
|
+
"prettier": "^2.8.1",
|
|
106
106
|
"pretty-bytes": "^6.0.0",
|
|
107
107
|
"pretty-ms": "^8.0.0",
|
|
108
108
|
"requirejs": "^2.3.6",
|
|
109
109
|
"rollup": "^2.79.1",
|
|
110
|
-
"rollup-plugin-license": "^
|
|
110
|
+
"rollup-plugin-license": "^3.0.1",
|
|
111
111
|
"rollup-plugin-string": "^3.0.0",
|
|
112
112
|
"rollup-plugin-terser": "^7.0.2",
|
|
113
113
|
"rollup-plugin-thatworks": "^1.0.4",
|
|
@@ -118,9 +118,9 @@
|
|
|
118
118
|
"source-map-support": "^0.5.21",
|
|
119
119
|
"sourcemap-codec": "^1.4.8",
|
|
120
120
|
"systemjs": "^6.13.0",
|
|
121
|
-
"terser": "^5.
|
|
122
|
-
"tslib": "^2.4.
|
|
123
|
-
"typescript": "^4.
|
|
121
|
+
"terser": "^5.16.1",
|
|
122
|
+
"tslib": "^2.4.1",
|
|
123
|
+
"typescript": "^4.9.4",
|
|
124
124
|
"weak-napi": "^2.0.2",
|
|
125
125
|
"yargs-parser": "^21.1.1"
|
|
126
126
|
},
|