rollup 3.0.0-1 → 3.0.0-4

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 v3.0.0-1
4
- Fri, 08 Jul 2022 11:35:32 GMT - commit 48ce34db70ebc2b4c1be38e6b8b02881be90b9f1
3
+ Rollup.js v3.0.0-3
4
+ Mon, 15 Aug 2022 04:43:13 GMT - commit 84a4a595851ef71494b6f2ab558968bfbc148bdb
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -11,23 +11,26 @@
11
11
 
12
12
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
13
13
 
14
- const require$$0$2 = require('fs');
15
- const process$2 = require('process');
14
+ const node_fs = require('node:fs');
15
+ const process$2 = require('node:process');
16
16
  const index = require('./index.js');
17
17
  const cli = require('../bin/rollup');
18
18
  const rollup = require('./rollup.js');
19
19
  const require$$0 = require('assert');
20
20
  const require$$0$1 = require('events');
21
21
  const loadConfigFile_js = require('./loadConfigFile.js');
22
- const child_process = require('child_process');
22
+ const node_child_process = require('node:child_process');
23
+ require('fs');
23
24
  require('util');
24
25
  require('stream');
25
26
  require('path');
26
27
  require('os');
27
28
  require('./mergeOptions.js');
28
- require('perf_hooks');
29
- require('crypto');
30
- require('url');
29
+ require('node:path');
30
+ require('node:perf_hooks');
31
+ require('node:crypto');
32
+ require('node:events');
33
+ require('node:url');
31
34
  require('tty');
32
35
 
33
36
  function timeZone(date = new Date()) {
@@ -376,7 +379,7 @@ function createWatchHooks(command) {
376
379
  try {
377
380
  // !! important - use stderr for all writes from execSync
378
381
  const stdio = [process.stdin, process.stderr, process.stderr];
379
- child_process.execSync(cmd, { stdio: command.silent ? 'ignore' : stdio });
382
+ node_child_process.execSync(cmd, { stdio: command.silent ? 'ignore' : stdio });
380
383
  }
381
384
  catch (e) {
382
385
  loadConfigFile_js.stderr(e.message);
@@ -407,7 +410,7 @@ async function watch(command) {
407
410
  await reloadConfigFile();
408
411
  async function reloadConfigFile() {
409
412
  try {
410
- const newConfigFileData = await require$$0$2.promises.readFile(configFile, 'utf8');
413
+ const newConfigFileData = await node_fs.promises.readFile(configFile, 'utf8');
411
414
  if (newConfigFileData === configFileData) {
412
415
  return;
413
416
  }
@@ -417,7 +420,7 @@ async function watch(command) {
417
420
  loadConfigFile_js.stderr(`\nReloading updated config...`);
418
421
  }
419
422
  configFileData = newConfigFileData;
420
- const { options, warnings } = await loadConfigFile_js.loadAndParseConfigFile(configFile, command);
423
+ const { options, warnings } = await loadConfigFile_js.loadConfigFile(configFile, command);
421
424
  if (currentConfigFileRevision !== configFileRevision) {
422
425
  return;
423
426
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.0.0-1
4
- Fri, 08 Jul 2022 11:35:32 GMT - commit 48ce34db70ebc2b4c1be38e6b8b02881be90b9f1
3
+ Rollup.js v3.0.0-3
4
+ Mon, 15 Aug 2022 04:43:13 GMT - commit 84a4a595851ef71494b6f2ab558968bfbc148bdb
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -11,18 +11,22 @@
11
11
 
12
12
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
13
13
 
14
- const require$$0 = require('path');
15
- const process = require('process');
14
+ const node_path = require('node:path');
15
+ const process = require('node:process');
16
16
  const rollup = require('./rollup.js');
17
17
  const mergeOptions = require('./mergeOptions.js');
18
- const require$$2 = require('os');
18
+ const node_os = require('node:os');
19
19
  const index = require('./index.js');
20
- require('perf_hooks');
21
- require('crypto');
20
+ require('path');
21
+ require('node:perf_hooks');
22
+ require('node:crypto');
23
+ require('node:fs');
24
+ require('node:events');
22
25
  require('fs');
23
- require('events');
24
26
  require('util');
25
27
  require('stream');
28
+ require('os');
29
+ require('events');
26
30
 
27
31
  class FileWatcher {
28
32
  constructor(task, chokidarOptions) {
@@ -58,7 +62,7 @@ class FileWatcher {
58
62
  }
59
63
  createWatcher(transformWatcherId) {
60
64
  const task = this.task;
61
- const isLinux = require$$2.platform() === 'linux';
65
+ const isLinux = node_os.platform() === 'linux';
62
66
  const isTransformDependency = transformWatcherId !== null;
63
67
  const handleChange = (id, event) => {
64
68
  const changedId = transformWatcherId || id;
@@ -195,7 +199,7 @@ class Task {
195
199
  this.outputs = this.options.output;
196
200
  this.outputFiles = this.outputs.map(output => {
197
201
  if (output.file || output.dir)
198
- return require$$0.resolve(output.file || output.dir);
202
+ return node_path.resolve(output.file || output.dir);
199
203
  return undefined;
200
204
  });
201
205
  const watchOptions = this.options.watch || {};
package/package.json CHANGED
@@ -1,30 +1,29 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "3.0.0-1",
3
+ "version": "3.0.0-4",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
7
- "typings": "dist/rollup.d.ts",
7
+ "types": "dist/rollup.d.ts",
8
8
  "bin": {
9
9
  "rollup": "dist/bin/rollup"
10
10
  },
11
11
  "scripts": {
12
- "build": "shx rm -rf dist && node scripts/update-git-commit.js && rollup --config rollup.config.ts --configPlugin typescript && shx cp src/rollup/types.d.ts dist/rollup.d.ts && shx chmod a+x dist/bin/rollup",
13
- "build:cjs": "shx rm -rf dist && rollup --config rollup.config.ts --configPlugin typescript --configTest && shx cp src/rollup/types.d.ts dist/rollup.d.ts && shx chmod a+x dist/bin/rollup",
14
- "build:bootstrap": "node dist/bin/rollup --config rollup.config.ts --configPlugin typescript && shx cp src/rollup/types.d.ts dist/rollup.d.ts && shx chmod a+x dist/bin/rollup",
12
+ "build": "rollup --config rollup.config.ts --configPlugin typescript",
13
+ "build:cjs": "rollup --config rollup.config.ts --configPlugin typescript --configTest",
14
+ "build:bootstrap": "node dist/bin/rollup --config rollup.config.ts --configPlugin typescript",
15
15
  "ci:lint": "npm run lint:nofix",
16
16
  "ci:test": "npm run build:cjs && npm run build:bootstrap && npm run test:all",
17
17
  "ci:test:only": "npm run build:cjs && npm run build:bootstrap && npm run test:only",
18
18
  "ci:coverage": "npm run build:cjs && npm run build:bootstrap && nyc --reporter lcovonly mocha",
19
19
  "lint": "eslint . --fix --cache && prettier --write \"**/*.md\"",
20
- "lint:nofix": "eslint . && prettier --check \"**/*.md\"",
20
+ "lint:nofix": "eslint . --cache && prettier --check \"**/*.md\"",
21
21
  "lint:markdown": "prettier --write \"**/*.md\"",
22
22
  "perf": "npm run build:cjs && node --expose-gc scripts/perf.js",
23
23
  "perf:init": "node scripts/perf-init.js",
24
- "postpublish": "git push && git push --tags",
25
- "prepare": "husky install && npm run build",
26
- "prepublishOnly": "git pull --ff-only && npm ci && npm run lint:nofix && npm run security && npm run build:bootstrap && npm run test:all",
27
- "security": "npm audit",
24
+ "prepare": "husky install && scripts/check-release.js || npm run build",
25
+ "prepublishOnly": "scripts/check-release.js",
26
+ "release": "node scripts/release.js",
28
27
  "test": "npm run build && npm run test:all",
29
28
  "test:cjs": "npm run build:cjs && npm run test:only",
30
29
  "test:quick": "mocha -b test/test.js",
@@ -68,27 +67,29 @@
68
67
  "@types/node": "^14.18.21",
69
68
  "@types/signal-exit": "^3.0.1",
70
69
  "@types/yargs-parser": "^21.0.0",
71
- "@typescript-eslint/eslint-plugin": "^5.30.5",
72
- "@typescript-eslint/parser": "^5.30.5",
70
+ "@typescript-eslint/eslint-plugin": "^5.30.7",
71
+ "@typescript-eslint/parser": "^5.30.7",
73
72
  "acorn": "^8.7.1",
74
73
  "acorn-jsx": "^5.3.2",
75
74
  "acorn-walk": "^8.2.0",
76
75
  "buble": "^0.20.0",
77
76
  "chokidar": "^3.5.3",
78
77
  "colorette": "^2.0.19",
79
- "core-js": "^3.23.3",
78
+ "core-js": "^3.23.5",
80
79
  "date-time": "^4.0.0",
81
80
  "es5-shim": "^4.6.7",
82
81
  "es6-shim": "^0.35.6",
83
- "eslint": "^8.19.0",
82
+ "eslint": "^8.20.0",
84
83
  "eslint-config-prettier": "^8.5.0",
85
84
  "eslint-plugin-import": "^2.26.0",
86
85
  "eslint-plugin-prettier": "^4.2.1",
87
- "execa": "^6.1.0",
88
86
  "fixturify": "^2.1.1",
89
87
  "fs-extra": "^10.1.0",
88
+ "get-package-type": "^0.1.0",
89
+ "github-api": "^3.4.0",
90
90
  "hash.js": "^1.1.7",
91
91
  "husky": "^8.0.1",
92
+ "inquirer": "^9.0.2",
92
93
  "is-reference": "^3.0.0",
93
94
  "lint-staged": "^13.0.3",
94
95
  "locate-character": "^2.0.5",
@@ -99,18 +100,19 @@
99
100
  "pretty-bytes": "^6.0.0",
100
101
  "pretty-ms": "^8.0.0",
101
102
  "requirejs": "^2.3.6",
102
- "rollup": "^2.75.7",
103
+ "rollup": "^2.77.0",
103
104
  "rollup-plugin-license": "^2.8.1",
104
105
  "rollup-plugin-string": "^3.0.0",
105
106
  "rollup-plugin-terser": "^7.0.2",
106
107
  "rollup-plugin-thatworks": "^1.0.4",
108
+ "semver": "^7.3.7",
107
109
  "shx": "^0.3.4",
108
110
  "signal-exit": "^3.0.7",
109
111
  "source-map": "^0.7.4",
110
112
  "source-map-support": "^0.5.21",
111
113
  "sourcemap-codec": "^1.4.8",
112
114
  "systemjs": "^6.12.1",
113
- "terser": "^5.14.1",
115
+ "terser": "^5.14.2",
114
116
  "tslib": "^2.4.0",
115
117
  "typescript": "^4.7.4",
116
118
  "weak-napi": "^2.0.2",
@@ -120,24 +122,19 @@
120
122
  "dist/**/*.js",
121
123
  "dist/*.d.ts",
122
124
  "dist/bin/rollup",
123
- "dist/es/package.json",
124
- "dist/rollup.browser.js.map"
125
+ "dist/es/package.json"
125
126
  ],
126
127
  "engines": {
127
- "node": ">=14.0.0",
128
+ "node": ">=14.13.1",
128
129
  "npm": ">=8.0.0"
129
130
  },
130
131
  "exports": {
131
132
  ".": {
132
133
  "types": "./dist/rollup.d.ts",
133
- "node": {
134
- "require": "./dist/rollup.js",
135
- "import": "./dist/es/rollup.js"
136
- },
137
- "default": "./dist/es/rollup.browser.js"
134
+ "require": "./dist/rollup.js",
135
+ "import": "./dist/es/rollup.js"
138
136
  },
139
137
  "./loadConfigFile": "./dist/loadConfigFile.js",
140
- "./dist/loadConfigFile": "./dist/loadConfigFile.js",
141
138
  "./dist/*": "./dist/*"
142
139
  }
143
140
  }