rollup 3.21.2 → 3.21.3

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/dist/bin/rollup CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  /*
4
4
  @license
5
- Rollup.js v3.21.2
6
- Sun, 30 Apr 2023 05:31:29 GMT - commit f138dcee19367f17f2e66f940fb8d612471f7ddf
5
+ Rollup.js v3.21.3
6
+ Tue, 02 May 2023 04:37:56 GMT - commit ef6ca52fec43ec4a7d6f12c8ebdee82ee690c2ce
7
7
 
8
8
  https://github.com/rollup/rollup
9
9
 
@@ -1654,7 +1654,7 @@ async function runRollup(command) {
1654
1654
  if (rollup.isWatchEnabled(command.watch)) {
1655
1655
  await fseventsImporter.loadFsEvents();
1656
1656
  const { watch } = await Promise.resolve().then(() => require('../shared/watch-cli.js'));
1657
- watch(command);
1657
+ await watch(command);
1658
1658
  }
1659
1659
  else {
1660
1660
  try {
@@ -1705,7 +1705,7 @@ else {
1705
1705
  catch {
1706
1706
  // do nothing
1707
1707
  }
1708
- runRollup(command);
1708
+ runRollup(command).then(() => process$1.exit(0));
1709
1709
  }
1710
1710
 
1711
1711
  exports.getConfigPath = getConfigPath;
package/dist/es/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.2
4
- Sun, 30 Apr 2023 05:31:29 GMT - commit f138dcee19367f17f2e66f940fb8d612471f7ddf
3
+ Rollup.js v3.21.3
4
+ Tue, 02 May 2023 04:37:56 GMT - commit ef6ca52fec43ec4a7d6f12c8ebdee82ee690c2ce
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.2
4
- Sun, 30 Apr 2023 05:31:29 GMT - commit f138dcee19367f17f2e66f940fb8d612471f7ddf
3
+ Rollup.js v3.21.3
4
+ Tue, 02 May 2023 04:37:56 GMT - commit ef6ca52fec43ec4a7d6f12c8ebdee82ee690c2ce
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -16,7 +16,7 @@ import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/pr
16
16
  import { EventEmitter } from 'node:events';
17
17
  import * as tty from 'tty';
18
18
 
19
- var version$1 = "3.21.2";
19
+ var version$1 = "3.21.3";
20
20
 
21
21
  const comma = ','.charCodeAt(0);
22
22
  const semicolon = ';'.charCodeAt(0);
@@ -26014,7 +26014,6 @@ function handleError(error, recover = false) {
26014
26014
  }
26015
26015
  outputLines.push('', '');
26016
26016
  stderr(outputLines.join('\n'));
26017
- // eslint-disable-next-line unicorn/no-process-exit
26018
26017
  if (!recover)
26019
26018
  process$1.exit(1);
26020
26019
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.2
4
- Sun, 30 Apr 2023 05:31:29 GMT - commit f138dcee19367f17f2e66f940fb8d612471f7ddf
3
+ Rollup.js v3.21.3
4
+ Tue, 02 May 2023 04:37:56 GMT - commit ef6ca52fec43ec4a7d6f12c8ebdee82ee690c2ce
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.2
4
- Sun, 30 Apr 2023 05:31:29 GMT - commit f138dcee19367f17f2e66f940fb8d612471f7ddf
3
+ Rollup.js v3.21.3
4
+ Tue, 02 May 2023 04:37:56 GMT - commit ef6ca52fec43ec4a7d6f12c8ebdee82ee690c2ce
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.d.ts CHANGED
@@ -519,7 +519,7 @@ export type InputPluginOption = MaybePromise<Plugin | NullValue | false | InputP
519
519
 
520
520
  export interface InputOptions {
521
521
  acorn?: Record<string, unknown>;
522
- acornInjectPlugins?: (() => unknown)[] | (() => unknown);
522
+ acornInjectPlugins?: ((...arguments_: any[]) => unknown)[] | ((...arguments_: any[]) => unknown);
523
523
  cache?: boolean | RollupCache;
524
524
  context?: string;
525
525
  experimentalCacheExpiry?: number;
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.2
4
- Sun, 30 Apr 2023 05:31:29 GMT - commit f138dcee19367f17f2e66f940fb8d612471f7ddf
3
+ Rollup.js v3.21.3
4
+ Tue, 02 May 2023 04:37:56 GMT - commit ef6ca52fec43ec4a7d6f12c8ebdee82ee690c2ce
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.2
4
- Sun, 30 Apr 2023 05:31:29 GMT - commit f138dcee19367f17f2e66f940fb8d612471f7ddf
3
+ Rollup.js v3.21.3
4
+ Tue, 02 May 2023 04:37:56 GMT - commit ef6ca52fec43ec4a7d6f12c8ebdee82ee690c2ce
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.2
4
- Sun, 30 Apr 2023 05:31:29 GMT - commit f138dcee19367f17f2e66f940fb8d612471f7ddf
3
+ Rollup.js v3.21.3
4
+ Tue, 02 May 2023 04:37:56 GMT - commit ef6ca52fec43ec4a7d6f12c8ebdee82ee690c2ce
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.2
4
- Sun, 30 Apr 2023 05:31:29 GMT - commit f138dcee19367f17f2e66f940fb8d612471f7ddf
3
+ Rollup.js v3.21.3
4
+ Tue, 02 May 2023 04:37:56 GMT - commit ef6ca52fec43ec4a7d6f12c8ebdee82ee690c2ce
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.2
4
- Sun, 30 Apr 2023 05:31:29 GMT - commit f138dcee19367f17f2e66f940fb8d612471f7ddf
3
+ Rollup.js v3.21.3
4
+ Tue, 02 May 2023 04:37:56 GMT - commit ef6ca52fec43ec4a7d6f12c8ebdee82ee690c2ce
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -31,7 +31,7 @@ function _interopNamespaceDefault(e) {
31
31
 
32
32
  const tty__namespace = /*#__PURE__*/_interopNamespaceDefault(tty);
33
33
 
34
- var version$1 = "3.21.2";
34
+ var version$1 = "3.21.3";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -1282,7 +1282,6 @@ function handleError(error, recover = false) {
1282
1282
  }
1283
1283
  outputLines.push('', '');
1284
1284
  stderr(outputLines.join('\n'));
1285
- // eslint-disable-next-line unicorn/no-process-exit
1286
1285
  if (!recover)
1287
1286
  process$1.exit(1);
1288
1287
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.2
4
- Sun, 30 Apr 2023 05:31:29 GMT - commit f138dcee19367f17f2e66f940fb8d612471f7ddf
3
+ Rollup.js v3.21.3
4
+ Tue, 02 May 2023 04:37:56 GMT - commit ef6ca52fec43ec4a7d6f12c8ebdee82ee690c2ce
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -537,11 +537,10 @@ async function watch(command) {
537
537
  await watcher.close();
538
538
  if (configWatcher)
539
539
  configWatcher.close();
540
- if (code) {
541
- // eslint-disable-next-line unicorn/no-process-exit
542
- process$2.exit(code);
543
- }
540
+ process$2.exit(code || 0);
544
541
  }
542
+ // return a promise that never resolves to keep the process running
543
+ return new Promise(() => { });
545
544
  }
546
545
 
547
546
  exports.watch = watch;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.2
4
- Sun, 30 Apr 2023 05:31:29 GMT - commit f138dcee19367f17f2e66f940fb8d612471f7ddf
3
+ Rollup.js v3.21.3
4
+ Tue, 02 May 2023 04:37:56 GMT - commit ef6ca52fec43ec4a7d6f12c8ebdee82ee690c2ce
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.2
4
- Sun, 30 Apr 2023 05:31:29 GMT - commit f138dcee19367f17f2e66f940fb8d612471f7ddf
3
+ Rollup.js v3.21.3
4
+ Tue, 02 May 2023 04:37:56 GMT - commit ef6ca52fec43ec4a7d6f12c8ebdee82ee690c2ce
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "3.21.2",
3
+ "version": "3.21.3",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -81,6 +81,7 @@
81
81
  "@rollup/plugin-typescript": "^11.1.0",
82
82
  "@rollup/pluginutils": "^5.0.2",
83
83
  "@types/estree": "1.0.1",
84
+ "@types/mocha": "^10.0.1",
84
85
  "@types/node": "^14.18.42",
85
86
  "@types/yargs-parser": "^21.0.0",
86
87
  "@typescript-eslint/eslint-plugin": "^5.59.1",