rollup 2.64.0 → 2.67.0

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.
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.64.0
4
- Fri, 14 Jan 2022 14:02:32 GMT - commit 82a3e2634a9d51b5040752e4fb2fd264651d504e
3
+ Rollup.js v2.67.0
4
+ Wed, 02 Feb 2022 06:19:08 GMT - commit 61d772ba59be605e53e72613ae51cee4b72aee64
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -10,7 +10,8 @@
10
10
  */
11
11
  'use strict';
12
12
 
13
- const fs = require('fs');
13
+ const require$$0$2 = require('fs');
14
+ const process$2 = require('process');
14
15
  const index = require('./index.js');
15
16
  const cli = require('../bin/rollup');
16
17
  const rollup = require('./rollup.js');
@@ -22,8 +23,6 @@ require('util');
22
23
  require('stream');
23
24
  require('os');
24
25
  require('./mergeOptions.js');
25
- require('module');
26
- require('process');
27
26
  require('perf_hooks');
28
27
  require('crypto');
29
28
  require('url');
@@ -351,18 +350,18 @@ function getResetScreen(configs, allowClearScreen) {
351
350
  }
352
351
 
353
352
  async function watch(command) {
354
- process.env.ROLLUP_WATCH = 'true';
355
- const isTTY = process.stderr.isTTY;
353
+ process$2.env.ROLLUP_WATCH = 'true';
354
+ const isTTY = process$2.stderr.isTTY;
356
355
  const silent = command.silent;
357
356
  let watcher;
358
357
  let configWatcher;
359
358
  let resetScreen;
360
- const configFile = command.config ? cli.getConfigPath(command.config) : null;
359
+ const configFile = command.config ? await cli.getConfigPath(command.config) : null;
361
360
  onExit(close);
362
- process.on('uncaughtException', close);
363
- if (!process.stdin.isTTY) {
364
- process.stdin.on('end', close);
365
- process.stdin.resume();
361
+ process$2.on('uncaughtException', close);
362
+ if (!process$2.stdin.isTTY) {
363
+ process$2.stdin.on('end', close);
364
+ process$2.stdin.resume();
366
365
  }
367
366
  async function loadConfigFromFileAndTrack(configFile) {
368
367
  let configFileData = null;
@@ -371,7 +370,7 @@ async function watch(command) {
371
370
  await reloadConfigFile();
372
371
  async function reloadConfigFile() {
373
372
  try {
374
- const newConfigFileData = fs.readFileSync(configFile, 'utf-8');
373
+ const newConfigFileData = await require$$0$2.promises.readFile(configFile, 'utf8');
375
374
  if (newConfigFileData === configFileData) {
376
375
  return;
377
376
  }
@@ -453,15 +452,15 @@ async function watch(command) {
453
452
  });
454
453
  }
455
454
  function close(code) {
456
- process.removeListener('uncaughtException', close);
455
+ process$2.removeListener('uncaughtException', close);
457
456
  // removing a non-existent listener is a no-op
458
- process.stdin.removeListener('end', close);
457
+ process$2.stdin.removeListener('end', close);
459
458
  if (watcher)
460
459
  watcher.close();
461
460
  if (configWatcher)
462
461
  configWatcher.close();
463
462
  if (code) {
464
- process.exit(code);
463
+ process$2.exit(code);
465
464
  }
466
465
  }
467
466
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.64.0
4
- Fri, 14 Jan 2022 14:02:32 GMT - commit 82a3e2634a9d51b5040752e4fb2fd264651d504e
3
+ Rollup.js v2.67.0
4
+ Wed, 02 Feb 2022 06:19:08 GMT - commit 61d772ba59be605e53e72613ae51cee4b72aee64
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "2.64.0",
3
+ "version": "2.67.0",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -25,7 +25,7 @@
25
25
  "_postinstall": "husky install",
26
26
  "postpublish": "pinst --enable && git push && git push --tags",
27
27
  "prepare": "husky install && npm run build",
28
- "prepublishOnly": "pinst --disable",
28
+ "prepublishOnly": "pinst --disable && npm ci && npm run lint:nofix && npm run security && npm run build:bootstrap && npm run test:all",
29
29
  "security": "npm audit",
30
30
  "test": "npm run build && npm run test:all",
31
31
  "test:cjs": "npm run build:cjs && npm run test:only",
@@ -58,65 +58,63 @@
58
58
  "fsevents": "~2.3.2"
59
59
  },
60
60
  "devDependencies": {
61
- "@rollup/plugin-alias": "^3.1.8",
61
+ "@rollup/plugin-alias": "^3.1.9",
62
62
  "@rollup/plugin-buble": "^0.21.3",
63
63
  "@rollup/plugin-commonjs": "^21.0.1",
64
64
  "@rollup/plugin-json": "^4.1.0",
65
- "@rollup/plugin-node-resolve": "^13.1.1",
66
- "@rollup/plugin-replace": "^3.0.0",
67
- "@rollup/plugin-typescript": "^8.2.5",
65
+ "@rollup/plugin-node-resolve": "^13.1.3",
66
+ "@rollup/plugin-replace": "^3.0.1",
67
+ "@rollup/plugin-typescript": "^8.3.0",
68
68
  "@rollup/pluginutils": "^4.1.2",
69
69
  "@types/node": "^10.17.60",
70
- "@types/require-relative": "^0.8.0",
71
70
  "@types/signal-exit": "^3.0.1",
72
71
  "@types/yargs-parser": "^20.2.1",
73
- "@typescript-eslint/eslint-plugin": "^5.7.0",
74
- "@typescript-eslint/parser": "^5.7.0",
75
- "acorn": "^8.6.0",
72
+ "@typescript-eslint/eslint-plugin": "^5.10.0",
73
+ "@typescript-eslint/parser": "^5.10.0",
74
+ "acorn": "^8.7.0",
76
75
  "acorn-jsx": "^5.3.2",
77
76
  "acorn-walk": "^8.2.0",
78
77
  "buble": "^0.20.0",
79
- "chokidar": "^3.5.2",
78
+ "chokidar": "^3.5.3",
80
79
  "colorette": "^2.0.16",
81
- "core-js": "^3.20.0",
80
+ "core-js": "^3.20.3",
82
81
  "date-time": "^4.0.0",
83
- "es5-shim": "^4.6.2",
82
+ "es5-shim": "^4.6.4",
84
83
  "es6-shim": "^0.35.6",
85
- "eslint": "^8.4.1",
84
+ "eslint": "^8.7.0",
86
85
  "eslint-config-prettier": "^8.3.0",
87
- "eslint-plugin-import": "^2.25.3",
86
+ "eslint-plugin-import": "^2.25.4",
88
87
  "eslint-plugin-prettier": "^4.0.0",
89
88
  "execa": "^5.1.1",
90
89
  "fixturify": "^2.1.1",
90
+ "fs-extra": "^10.0.0",
91
91
  "hash.js": "^1.1.7",
92
92
  "husky": "^7.0.4",
93
93
  "is-reference": "^3.0.0",
94
94
  "lint-staged": "^10.5.4",
95
95
  "locate-character": "^2.0.5",
96
96
  "magic-string": "^0.25.7",
97
- "mocha": "^9.1.3",
97
+ "mocha": "^9.1.4",
98
98
  "nyc": "^15.1.0",
99
99
  "pinst": "^2.1.6",
100
100
  "prettier": "^2.5.1",
101
101
  "pretty-bytes": "^5.6.0",
102
102
  "pretty-ms": "^7.0.1",
103
- "require-relative": "^0.8.7",
104
103
  "requirejs": "^2.3.6",
105
- "rollup": "^2.61.1",
106
- "rollup-plugin-license": "^2.5.0",
104
+ "rollup": "^2.65.0",
105
+ "rollup-plugin-license": "^2.6.1",
107
106
  "rollup-plugin-string": "^3.0.0",
108
107
  "rollup-plugin-terser": "^7.0.2",
109
108
  "rollup-plugin-thatworks": "^1.0.4",
110
- "sander": "^0.6.0",
111
- "shx": "^0.3.3",
109
+ "shx": "^0.3.4",
112
110
  "signal-exit": "^3.0.6",
113
111
  "source-map": "^0.7.3",
114
112
  "source-map-support": "^0.5.21",
115
113
  "sourcemap-codec": "^1.4.8",
116
- "systemjs": "^6.11.0",
114
+ "systemjs": "^6.12.1",
117
115
  "terser": "^5.10.0",
118
116
  "tslib": "^2.3.1",
119
- "typescript": "^4.5.4",
117
+ "typescript": "^4.5.5",
120
118
  "weak-napi": "^2.0.2",
121
119
  "yargs-parser": "^20.2.9"
122
120
  },