Skip to content

Commit 396c394

Browse files
committed
Create separate rust packages for each architecture
1 parent ef76612 commit 396c394

File tree

13 files changed

+344
-6
lines changed

13 files changed

+344
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ yarn-debug.log*
3131
yarn-error.log*
3232
*.log
3333
*.min.js
34+
*.node

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"scripts": {
1414
"build": "yarn build-bundles && cross-env NODE_ENV=production PARCEL_BUILD_ENV=production gulp",
15-
"build-bundles": "rimraf --glob packages/*/*/lib && cross-env NODE_ENV=production PARCEL_BUILD_ENV=production PARCEL_SELF_BUILD=true parcel build --no-cache packages/core/{fs,codeframe,package-manager,utils} packages/reporters/{cli,dev-server} packages/utils/{parcel-lsp,parcel-lsp-protocol,parcel-watcher-watchman-js,error-overlay}",
15+
"build-bundles": "rimraf --glob 'packages/*/*/lib' && cross-env NODE_ENV=production PARCEL_BUILD_ENV=production PARCEL_SELF_BUILD=true ./node_modules/.bin/parcel build --no-cache 'packages/core/{fs,codeframe,package-manager,utils}' 'packages/reporters/{cli,dev-server}' 'packages/utils/{parcel-lsp,parcel-lsp-protocol,parcel-watcher-watchman-js,error-overlay}'",
1616
"build-ts": "lerna run build-ts && lerna run check-ts",
1717
"build-native": "node scripts/build-native.js",
1818
"build-native-release": "node scripts/build-native.js --release",
@@ -31,10 +31,10 @@
3131
"test:integration": "yarn workspace @parcel/integration-tests test",
3232
"test:integration-ci": "yarn workspace @parcel/integration-tests test-ci",
3333
"test": "yarn test:unit && yarn test:integration",
34-
"dev:release": "SKIP_PLUGIN_COMPATIBILITY_CHECK=true lerna publish -y --canary --preid dev --dist-tag=dev --exact --force-publish=* --no-git-tag-version --no-push",
35-
"canary:release": "SKIP_PLUGIN_COMPATIBILITY_CHECK=true lerna publish -y --canary --preid canary --dist-tag=canary --exact --force-publish=* --no-git-tag-version --no-push",
36-
"tag:prerelease": "lerna version --exact --force-publish=* --no-git-tag-version --no-push && yarn adjust-versions --exact",
37-
"tag:release": "lerna version --exact --force-publish=* --no-git-tag-version --no-push && yarn adjust-versions",
34+
"dev:release": "SKIP_PLUGIN_COMPATIBILITY_CHECK=true lerna publish -y --canary --preid dev --dist-tag=dev --exact --force-publish='*' --no-git-tag-version --no-push",
35+
"canary:release": "SKIP_PLUGIN_COMPATIBILITY_CHECK=true lerna publish -y --canary --preid canary --dist-tag=canary --exact --force-publish='*' --no-git-tag-version --no-push",
36+
"tag:prerelease": "lerna version --exact --force-publish='*' --no-git-tag-version --no-push && yarn adjust-versions --exact",
37+
"tag:release": "lerna version --exact --force-publish='*' --no-git-tag-version --no-push && yarn adjust-versions",
3838
"adjust-versions": "node scripts/update-config-dependencies.js && node scripts/update-engines-peerdeps.js",
3939
"release": "lerna publish -y from-package --pre-dist-tag=next --no-git-tag-version --no-push",
4040
"prepare": "husky install",
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "@parcel/rust-darwin-arm64",
3+
"version": "2.14.4",
4+
"license": "MIT",
5+
"publishConfig": {
6+
"access": "public"
7+
},
8+
"funding": {
9+
"type": "opencollective",
10+
"url": "https://opencollective.com/parcel"
11+
},
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/parcel-bundler/parcel.git"
15+
},
16+
"os": [
17+
"darwin"
18+
],
19+
"cpu": [
20+
"arm64"
21+
],
22+
"main": "parcel-node-bindings.darwin-arm64.node",
23+
"files": [
24+
"parcel-node-bindings.darwin-arm64.node"
25+
],
26+
"engines": {
27+
"node": ">= 10"
28+
}
29+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "@parcel/rust-darwin-x64",
3+
"version": "2.14.4",
4+
"license": "MIT",
5+
"publishConfig": {
6+
"access": "public"
7+
},
8+
"funding": {
9+
"type": "opencollective",
10+
"url": "https://opencollective.com/parcel"
11+
},
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/parcel-bundler/parcel.git"
15+
},
16+
"os": [
17+
"darwin"
18+
],
19+
"cpu": [
20+
"x64"
21+
],
22+
"main": "parcel-node-bindings.darwin-x64.node",
23+
"files": [
24+
"parcel-node-bindings.darwin-x64.node"
25+
],
26+
"engines": {
27+
"node": ">= 10"
28+
}
29+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "@parcel/rust-linux-arm-gnueabihf",
3+
"version": "2.14.4",
4+
"license": "MIT",
5+
"publishConfig": {
6+
"access": "public"
7+
},
8+
"funding": {
9+
"type": "opencollective",
10+
"url": "https://opencollective.com/parcel"
11+
},
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/parcel-bundler/parcel.git"
15+
},
16+
"os": [
17+
"linux"
18+
],
19+
"cpu": [
20+
"arm"
21+
],
22+
"main": "parcel-node-bindings.linux-arm-gnueabihf.node",
23+
"files": [
24+
"parcel-node-bindings.linux-arm-gnueabihf.node"
25+
],
26+
"engines": {
27+
"node": ">= 10"
28+
}
29+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "@parcel/rust-linux-arm64-gnu",
3+
"version": "2.14.4",
4+
"license": "MIT",
5+
"publishConfig": {
6+
"access": "public"
7+
},
8+
"funding": {
9+
"type": "opencollective",
10+
"url": "https://opencollective.com/parcel"
11+
},
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/parcel-bundler/parcel.git"
15+
},
16+
"os": [
17+
"linux"
18+
],
19+
"cpu": [
20+
"arm64"
21+
],
22+
"libc": [
23+
"glibc"
24+
],
25+
"main": "parcel-node-bindings.linux-arm64-gnu.node",
26+
"files": [
27+
"parcel-node-bindings.linux-arm64-gnu.node"
28+
],
29+
"engines": {
30+
"node": ">= 10"
31+
}
32+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "@parcel/rust-linux-arm64-musl",
3+
"version": "2.14.4",
4+
"license": "MIT",
5+
"publishConfig": {
6+
"access": "public"
7+
},
8+
"funding": {
9+
"type": "opencollective",
10+
"url": "https://opencollective.com/parcel"
11+
},
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/parcel-bundler/parcel.git"
15+
},
16+
"os": [
17+
"linux"
18+
],
19+
"cpu": [
20+
"arm64"
21+
],
22+
"libc": [
23+
"musl"
24+
],
25+
"main": "parcel-node-bindings.linux-arm64-musl.node",
26+
"files": [
27+
"parcel-node-bindings.linux-arm64-musl.node"
28+
],
29+
"engines": {
30+
"node": ">= 10"
31+
}
32+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "@parcel/rust-linux-x64-gnu",
3+
"version": "2.14.4",
4+
"license": "MIT",
5+
"publishConfig": {
6+
"access": "public"
7+
},
8+
"funding": {
9+
"type": "opencollective",
10+
"url": "https://opencollective.com/parcel"
11+
},
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/parcel-bundler/parcel.git"
15+
},
16+
"os": [
17+
"linux"
18+
],
19+
"cpu": [
20+
"x64"
21+
],
22+
"libc": [
23+
"glibc"
24+
],
25+
"main": "parcel-node-bindings.linux-x64-gnu.node",
26+
"files": [
27+
"parcel-node-bindings.linux-x64-gnu.node"
28+
],
29+
"engines": {
30+
"node": ">= 10"
31+
}
32+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "@parcel/rust-linux-x64-musl",
3+
"version": "2.14.4",
4+
"license": "MIT",
5+
"publishConfig": {
6+
"access": "public"
7+
},
8+
"funding": {
9+
"type": "opencollective",
10+
"url": "https://opencollective.com/parcel"
11+
},
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/parcel-bundler/parcel.git"
15+
},
16+
"os": [
17+
"linux"
18+
],
19+
"cpu": [
20+
"x64"
21+
],
22+
"libc": [
23+
"musl"
24+
],
25+
"main": "parcel-node-bindings.linux-x64-musl.node",
26+
"files": [
27+
"parcel-node-bindings.linux-x64-musl.node"
28+
],
29+
"engines": {
30+
"node": ">= 10"
31+
}
32+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "@parcel/rust-win32-x64-msvc",
3+
"version": "2.14.4",
4+
"license": "MIT",
5+
"publishConfig": {
6+
"access": "public"
7+
},
8+
"funding": {
9+
"type": "opencollective",
10+
"url": "https://opencollective.com/parcel"
11+
},
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/parcel-bundler/parcel.git"
15+
},
16+
"os": [
17+
"win32"
18+
],
19+
"cpu": [
20+
"x64"
21+
],
22+
"main": "parcel-node-bindings.win32-x64-msvc.node",
23+
"files": [
24+
"parcel-node-bindings.win32-x64-msvc.node"
25+
],
26+
"engines": {
27+
"node": ">= 10"
28+
}
29+
}

0 commit comments

Comments
 (0)