mirror of
https://github.com/swc-project/swc.git
synced 2024-11-27 04:47:03 +03:00
chore: Publish 1.4.1 with swc_core v0.90.8
This commit is contained in:
parent
447b66cd1b
commit
83dfc26dac
6
bindings/Cargo.lock
generated
6
bindings/Cargo.lock
generated
@ -224,7 +224,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "binding_core_wasm"
|
||||
version = "1.4.1-nightly-20240213.2"
|
||||
version = "1.4.1"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"getrandom",
|
||||
@ -284,7 +284,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "binding_minifier_wasm"
|
||||
version = "1.4.1-nightly-20240213.2"
|
||||
version = "1.4.1"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"getrandom",
|
||||
@ -3039,7 +3039,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "swc_cli"
|
||||
version = "0.91.169"
|
||||
version = "0.91.176"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"swc_cli_impl",
|
||||
|
@ -6,7 +6,7 @@ license = "Apache-2.0"
|
||||
name = "binding_core_wasm"
|
||||
publish = false
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
version = "1.4.1-nightly-20240213.2"
|
||||
version = "1.4.1"
|
||||
|
||||
[lib]
|
||||
bench = false
|
||||
|
@ -6,7 +6,7 @@ license = "Apache-2.0"
|
||||
name = "binding_minifier_wasm"
|
||||
publish = false
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
version = "1.4.1-nightly-20240213.2"
|
||||
version = "1.4.1"
|
||||
|
||||
[lib]
|
||||
bench = false
|
||||
|
@ -6,7 +6,7 @@ include = ["Cargo.toml", "src/**/*.rs"]
|
||||
license = "Apache-2.0"
|
||||
name = "swc_cli"
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
version = "0.91.169"
|
||||
version = "0.91.176"
|
||||
|
||||
[[bin]]
|
||||
bench = false
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@swc/core",
|
||||
"version": "1.4.1-nightly-20240213.2",
|
||||
"version": "1.4.1",
|
||||
"description": "Super-fast alternative for babel",
|
||||
"homepage": "https://swc.rs",
|
||||
"main": "./index.js",
|
||||
@ -57,7 +57,7 @@
|
||||
"build": "tsc -d && napi build --manifest-path bindings/Cargo.toml --platform -p binding_core_node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts --release -o .",
|
||||
"build:dev": "tsc -d && napi build --manifest-path bindings/Cargo.toml --platform -p binding_core_node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts -o .",
|
||||
"test": "cross-env NODE_OPTIONS='--experimental-vm-modules' jest --config ./node-swc/jest.config.js",
|
||||
"version": "napi version -p scripts/npm"
|
||||
"version": "napi version --npm-dir scripts/npm"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.toml": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@swc/minifier",
|
||||
"version": "1.4.1-nightly-20240213.2",
|
||||
"version": "1.4.1",
|
||||
"description": "Super-fast alternative for terser",
|
||||
"homepage": "https://swc.rs",
|
||||
"main": "./index.js",
|
||||
@ -50,7 +50,7 @@
|
||||
"build": "tsc -d && napi build --platform --js ./src/binding.js --dts ./src/binding.d.ts --manifest-path ../../bindings/Cargo.toml -p binding_minifier_node --output-dir . --release",
|
||||
"build:dev": "tsc -d && napi build --platform --js ./src/binding.js --dts ./src/binding.d.ts --manifest-path ../../bindings/Cargo.toml -p binding_minifier_node --output-dir .",
|
||||
"test": "cross-env NODE_OPTIONS='--experimental-vm-modules' echo 'no test'",
|
||||
"version": "napi version -p scripts/npm"
|
||||
"version": "napi version --npm-dir scripts/npm"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@swc/minifier-darwin-arm64",
|
||||
"version": "1.3.100",
|
||||
"version": "1.4.1",
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@swc/minifier-darwin-x64",
|
||||
"version": "1.4.0",
|
||||
"version": "1.4.1",
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@swc/minifier-linux-arm-gnueabihf",
|
||||
"version": "1.3.100",
|
||||
"version": "1.4.1",
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@swc/minifier-linux-arm64-gnu",
|
||||
"version": "1.3.100",
|
||||
"version": "1.4.1",
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@swc/minifier-linux-arm64-musl",
|
||||
"version": "1.3.100",
|
||||
"version": "1.4.1",
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@swc/minifier-linux-x64-gnu",
|
||||
"version": "1.4.0",
|
||||
"version": "1.4.1",
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@swc/minifier-linux-x64-musl",
|
||||
"version": "1.3.100",
|
||||
"version": "1.4.1",
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@swc/minifier-win32-arm64-msvc",
|
||||
"version": "1.3.100",
|
||||
"version": "1.4.1",
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@swc/minifier-win32-ia32-msvc",
|
||||
"version": "1.3.100",
|
||||
"version": "1.4.1",
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@swc/minifier-win32-x64-msvc",
|
||||
"version": "1.4.0",
|
||||
"version": "1.4.1",
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@swc/core-darwin-arm64",
|
||||
"version": "1.3.100",
|
||||
"version": "1.4.1",
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@swc/core-darwin-x64",
|
||||
"version": "1.4.0",
|
||||
"version": "1.4.1",
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@swc/core-linux-arm-gnueabihf",
|
||||
"version": "1.3.100",
|
||||
"version": "1.4.1",
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@swc/core-linux-arm64-gnu",
|
||||
"version": "1.3.100",
|
||||
"version": "1.4.1",
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@swc/core-linux-arm64-musl",
|
||||
"version": "1.3.100",
|
||||
"version": "1.4.1",
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@swc/core-linux-x64-gnu",
|
||||
"version": "1.4.0",
|
||||
"version": "1.4.1",
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@swc/core-linux-x64-musl",
|
||||
"version": "1.3.100",
|
||||
"version": "1.4.1",
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@swc/core-win32-arm64-msvc",
|
||||
"version": "1.3.100",
|
||||
"version": "1.4.1",
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@swc/core-win32-ia32-msvc",
|
||||
"version": "1.3.100",
|
||||
"version": "1.4.1",
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@swc/core-win32-x64-msvc",
|
||||
"version": "1.4.0",
|
||||
"version": "1.4.1",
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
|
@ -1,14 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eux
|
||||
set -eu
|
||||
|
||||
|
||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
|
||||
version="$1"
|
||||
swc_core_version="$(cargo tree -i -p swc_core --depth 0 | awk '{print $2}')"
|
||||
|
||||
# Reset other changes
|
||||
git commit $SCRIPT_DIR/publish.sh -m 'Update publish script' || true
|
||||
git reset --hard
|
||||
git pull || true
|
||||
yarn
|
||||
|
||||
echo "Publishing $version with swc_core $swc_core_version"
|
||||
|
||||
# Update swc_core
|
||||
(cd ./bindings && cargo upgrade -p swc_core --recursive false)
|
||||
@ -19,3 +21,20 @@ npm version "$version" --no-git-tag-version --allow-same-version || true
|
||||
(cd ./packages/minifier && npm version "$version" --no-git-tag-version --allow-same-version || true)
|
||||
(cd ./bindings && cargo set-version $version -p binding_core_wasm -p binding_minifier_wasm)
|
||||
(cd ./bindings && cargo set-version --bump patch -p swc_cli)
|
||||
|
||||
|
||||
# Commmit and tag
|
||||
git add -A
|
||||
git commit -am "chore: Publish $version with swc_core $swc_core_version"
|
||||
git tag -a -m "swc_core $swc_core_version" "v$version"
|
||||
|
||||
|
||||
# Update changelog
|
||||
yarn changelog
|
||||
git add -A
|
||||
git commit -m 'chore: Update changelog'
|
||||
|
||||
# Publish packages
|
||||
git push
|
||||
git push --tags
|
||||
(cd ./bindings && cargo mono publish --no-verify)
|
Loading…
Reference in New Issue
Block a user