rollup 3.27.0 → 4.0.0-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 CHANGED
@@ -88,35 +88,6 @@ Repository: https://github.com/xtuc/acorn-import-assertions
88
88
 
89
89
  ---------------------------------------
90
90
 
91
- ## acorn-walk
92
- License: MIT
93
- By: Marijn Haverbeke, Ingvar Stepanyan, Adrian Heine
94
- Repository: https://github.com/acornjs/acorn.git
95
-
96
- > MIT License
97
- >
98
- > Copyright (C) 2012-2020 by various contributors (see AUTHORS)
99
- >
100
- > Permission is hereby granted, free of charge, to any person obtaining a copy
101
- > of this software and associated documentation files (the "Software"), to deal
102
- > in the Software without restriction, including without limitation the rights
103
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
104
- > copies of the Software, and to permit persons to whom the Software is
105
- > furnished to do so, subject to the following conditions:
106
- >
107
- > The above copyright notice and this permission notice shall be included in
108
- > all copies or substantial portions of the Software.
109
- >
110
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
111
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
112
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
113
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
114
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
115
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
116
- > THE SOFTWARE.
117
-
118
- ---------------------------------------
119
-
120
91
  ## anymatch
121
92
  License: ISC
122
93
  By: Elan Shanker
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "3.27.0",
3
+ "version": "4.0.0-1",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -8,26 +8,58 @@
8
8
  "bin": {
9
9
  "rollup": "dist/bin/rollup"
10
10
  },
11
+ "napi": {
12
+ "name": "rollup",
13
+ "package": {
14
+ "name": "@rollup/rollup"
15
+ },
16
+ "triples": {
17
+ "defaults": false,
18
+ "additional": [
19
+ "aarch64-apple-darwin",
20
+ "aarch64-linux-android",
21
+ "aarch64-pc-windows-msvc",
22
+ "aarch64-unknown-linux-gnu",
23
+ "armv7-linux-androideabi",
24
+ "armv7-unknown-linux-gnueabihf",
25
+ "i686-pc-windows-msvc",
26
+ "x86_64-apple-darwin",
27
+ "x86_64-pc-windows-msvc",
28
+ "x86_64-unknown-linux-gnu",
29
+ "x86_64-unknown-linux-musl"
30
+ ]
31
+ }
32
+ },
11
33
  "scripts": {
12
- "build": "rollup --config rollup.config.ts --configPlugin typescript",
34
+ "build": "concurrently -c green,blue 'npm run build:napi -- --release' 'npm:build:js' && npm run build:copy-native",
35
+ "build:quick": "concurrently -c green,blue 'npm:build:napi' 'npm:build:cjs' && npm run build:copy-native",
36
+ "build:napi": "napi build --platform --dts native.d.ts --js native.js --cargo-cwd rust -p bindings_napi --cargo-name bindings_napi",
37
+ "update:napi": "npm run build:napi && npm run build:copy-native",
38
+ "build:js": "rollup --config rollup.config.ts --configPlugin typescript",
39
+ "update:js": "npm run build:js && npm run build:copy-native",
40
+ "build:copy-native": "shx mkdir -p dist && shx cp rollup.*.node dist/",
13
41
  "dev": "vitepress dev docs",
14
42
  "build:cjs": "rollup --config rollup.config.ts --configPlugin typescript --configTest",
15
- "build:bootstrap": "node dist/bin/rollup --config rollup.config.ts --configPlugin typescript",
43
+ "build:bootstrap": "shx mv dist dist-build && node dist-build/bin/rollup --config rollup.config.ts --configPlugin typescript && npm run build:copy-native && shx rm -rf dist-build",
16
44
  "build:docs": "vitepress build docs",
17
45
  "preview:docs": "vitepress preview docs",
18
- "ci:lint": "concurrently 'npm:lint:js:nofix' 'npm:lint:markdown:nofix'",
19
- "ci:test": "npm run build:cjs && npm run build:bootstrap && npm run test:all",
20
- "ci:test:only": "npm run build:cjs && npm run build:bootstrap && npm run test:only",
21
- "ci:coverage": "npm run build:cjs && npm run build:bootstrap && nyc --reporter lcovonly mocha",
22
- "lint": "concurrently -c red,green 'npm:lint:js' 'npm:lint:markdown'",
46
+ "ci:artifacts": "napi artifacts",
47
+ "ci:lint": "concurrently -c red,green,blue 'npm:lint:js:nofix' 'npm:lint:markdown:nofix' 'npm:lint:rust:nofix'",
48
+ "ci:test": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run test:all",
49
+ "ci:test:only": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run test:only",
50
+ "ci:coverage": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && nyc --reporter lcovonly mocha",
51
+ "lint": "concurrently -c red,green,blue 'npm:lint:js' 'npm:lint:markdown' 'npm:lint:rust'",
23
52
  "lint:js": "eslint . --fix --cache",
24
53
  "lint:js:nofix": "eslint . --cache",
25
54
  "lint:markdown": "prettier --write \"**/*.md\"",
26
55
  "lint:markdown:nofix": "prettier --check \"**/*.md\"",
56
+ "lint:rust": "cd rust && cargo fmt",
57
+ "lint:rust:nofix": "cd rust && cargo fmt --check",
27
58
  "perf": "npm run build:cjs && node --expose-gc scripts/perf.js",
28
59
  "perf:init": "node scripts/perf-init.js",
29
60
  "prepare": "husky install && node scripts/check-release.js || npm run build",
30
- "prepublishOnly": "node scripts/check-release.js",
61
+ "prepublishOnly": "node scripts/check-release.js && node scripts/prepublish.js",
62
+ "prepublish:napi": "napi prepublish --skip-gh-release",
31
63
  "release": "node scripts/release.js",
32
64
  "release:docs": "git fetch --update-head-ok origin master:master && git branch --force documentation-published master && git push origin documentation-published",
33
65
  "test": "npm run build && npm run test:all",
@@ -60,7 +92,18 @@
60
92
  },
61
93
  "homepage": "https://rollupjs.org/",
62
94
  "optionalDependencies": {
63
- "fsevents": "~2.3.2"
95
+ "fsevents": "~2.3.2",
96
+ "@rollup/rollup-darwin-arm64": "4.0.0-1",
97
+ "@rollup/rollup-android-arm64": "4.0.0-1",
98
+ "@rollup/rollup-win32-arm64-msvc": "4.0.0-1",
99
+ "@rollup/rollup-linux-arm64-gnu": "4.0.0-1",
100
+ "@rollup/rollup-android-arm-eabi": "4.0.0-1",
101
+ "@rollup/rollup-linux-arm-gnueabihf": "4.0.0-1",
102
+ "@rollup/rollup-win32-ia32-msvc": "4.0.0-1",
103
+ "@rollup/rollup-darwin-x64": "4.0.0-1",
104
+ "@rollup/rollup-win32-x64-msvc": "4.0.0-1",
105
+ "@rollup/rollup-linux-x64-gnu": "4.0.0-1",
106
+ "@rollup/rollup-linux-x64-musl": "4.0.0-1"
64
107
  },
65
108
  "devDependencies": {
66
109
  "@codemirror/commands": "^6.2.4",
@@ -71,6 +114,7 @@
71
114
  "@codemirror/view": "^6.14.1",
72
115
  "@jridgewell/sourcemap-codec": "^1.4.15",
73
116
  "@mermaid-js/mermaid-cli": "^10.2.4",
117
+ "@napi-rs/cli": "^2.16.2",
74
118
  "@rollup/plugin-alias": "^5.0.0",
75
119
  "@rollup/plugin-buble": "^1.0.2",
76
120
  "@rollup/plugin-commonjs": "^25.0.3",
@@ -175,4 +219,4 @@
175
219
  },
176
220
  "./dist/*": "./dist/*"
177
221
  }
178
- }
222
+ }