Skip to content

Commit c8c31a6

Browse files
authored
chore(ci): Fix publish pipeline & publish packages (#432)
1 parent af2e35d commit c8c31a6

File tree

19 files changed

+65
-58
lines changed

19 files changed

+65
-58
lines changed

.changeset/legal-breads-sink.md

-5
This file was deleted.

.github/workflows/npm-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Install wasm target
4242
shell: bash
4343
run: |
44-
rustup target add wasm32-wasi
44+
rustup target add wasm32-wasip1
4545
4646
- name: Create Release Pull Request or Publish to npm
4747
id: changesets

packages/emotion/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"description": "SWC plugin for emotion css-in-js library",
55
"main": "swc_plugin_emotion.wasm",
66
"scripts": {
7-
"prepack": "npm run build && vitest run",
8-
"build": "cargo build --release -p swc_plugin_emotion --target wasm32-wasi && cp ../../target/wasm32-wasi/release/swc_plugin_emotion.wasm .",
9-
"build:debug": "cargo build -p swc_plugin_emotion --target wasm32-wasi && cp ../../target/wasm32-wasi/debug/swc_plugin_emotion.wasm .",
10-
"test": "npm run build:debug && vitest run"
7+
"prepack": "pnpm run build && vitest run",
8+
"build": "cargo build --release -p swc_plugin_emotion --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/release/swc_plugin_emotion.wasm .",
9+
"build:debug": "cargo build -p swc_plugin_emotion --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/debug/swc_plugin_emotion.wasm .",
10+
"test": "pnpm run build:debug && vitest run"
1111
},
1212
"homepage": "https://swc.rs",
1313
"repository": {

packages/formatjs/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @swc/plugin-formatjs
22

3+
## 3.1.0
4+
5+
### Minor Changes
6+
7+
- af2e35d: Add support for sha1 hash_type in idInterpolationPattern
8+
39
## 3.0.1
410

511
### Patch Changes

packages/formatjs/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ FormatJS SWC plugin, maintained by SWC team.
44

55
# @swc/plugin-formatjs
66

7+
## 3.1.0
8+
9+
### Minor Changes
10+
11+
- af2e35d: Add support for sha1 hash_type in idInterpolationPattern
12+
713
## 3.0.1
814

915
### Patch Changes

packages/formatjs/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "@swc/plugin-formatjs",
3-
"version": "3.0.1",
3+
"version": "3.1.0",
44
"description": "FormatJS SWC plugin",
55
"main": "swc_plugin_formatjs.wasm",
66
"scripts": {
7-
"prepack": "npm run build && vitest run",
8-
"build": "cargo build --release -p swc_plugin_formatjs --target wasm32-wasi && cp ../../target/wasm32-wasi/release/swc_plugin_formatjs.wasm .",
9-
"build:debug": "cargo build -p swc_plugin_formatjs --target wasm32-wasi && cp ../../target/wasm32-wasi/debug/swc_plugin_formatjs.wasm .",
10-
"test": "npm run build:debug && vitest run"
7+
"prepack": "pnpm run build && vitest run",
8+
"build": "cargo build --release -p swc_plugin_formatjs --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/release/swc_plugin_formatjs.wasm .",
9+
"build:debug": "cargo build -p swc_plugin_formatjs --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/debug/swc_plugin_formatjs.wasm .",
10+
"test": "pnpm run build:debug && vitest run"
1111
},
1212
"homepage": "https://swc.rs",
1313
"repository": {

packages/jest/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"description": "SWC plugin for jest",
55
"main": "swc_plugin_jest.wasm",
66
"scripts": {
7-
"prepack": "npm run build && vitest run",
8-
"build": "cargo build --release -p swc_plugin_jest --target wasm32-wasi && cp ../../target/wasm32-wasi/release/swc_plugin_jest.wasm .",
9-
"build:debug": "cargo build -p swc_plugin_jest --target wasm32-wasi && cp ../../target/wasm32-wasi/debug/swc_plugin_jest.wasm .",
10-
"test": "npm run build:debug && vitest run"
7+
"prepack": "pnpm run build && vitest run",
8+
"build": "cargo build --release -p swc_plugin_jest --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/release/swc_plugin_jest.wasm .",
9+
"build:debug": "cargo build -p swc_plugin_jest --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/debug/swc_plugin_jest.wasm .",
10+
"test": "pnpm run build:debug && vitest run"
1111
},
1212
"homepage": "https://swc.rs",
1313
"repository": {

packages/loadable-components/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"description": "SWC plugin for `@loadable/components`",
55
"main": "swc_plugin_loadable_components.wasm",
66
"scripts": {
7-
"prepack": "npm run build && vitest run",
8-
"build": "cargo build --release -p swc_plugin_loadable_components --target wasm32-wasi && cp ../../target/wasm32-wasi/release/swc_plugin_loadable_components.wasm .",
9-
"build:debug": "cargo build -p swc_plugin_loadable_components --target wasm32-wasi && cp ../../target/wasm32-wasi/debug/swc_plugin_loadable_components.wasm .",
10-
"test": "npm run build:debug && vitest run"
7+
"prepack": "pnpm run build && vitest run",
8+
"build": "cargo build --release -p swc_plugin_loadable_components --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/release/swc_plugin_loadable_components.wasm .",
9+
"build:debug": "cargo build -p swc_plugin_loadable_components --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/debug/swc_plugin_loadable_components.wasm .",
10+
"test": "pnpm run build:debug && vitest run"
1111
},
1212
"homepage": "https://swc.rs",
1313
"repository": {

packages/noop/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Noop SWC plugin, for debugging",
55
"main": "swc_plugin_noop.wasm",
66
"scripts": {
7-
"prepack": "cargo build --release -p swc_plugin_noop --target wasm32-wasi && cp ../../target/wasm32-wasi/release/swc_plugin_noop.wasm ."
7+
"prepack": "cargo build --release -p swc_plugin_noop --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/release/swc_plugin_noop.wasm ."
88
},
99
"homepage": "https://swc.rs",
1010
"repository": {

packages/prefresh/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"description": "SWC plugin for preact refresh",
55
"main": "swc_plugin_prefresh.wasm",
66
"scripts": {
7-
"prepack": "npm run build && vitest run",
8-
"build": "cargo build --release -p swc_plugin_prefresh --target wasm32-wasi && cp ../../target/wasm32-wasi/release/swc_plugin_prefresh.wasm .",
9-
"build:debug": "cargo build -p swc_plugin_prefresh --target wasm32-wasi && cp ../../target/wasm32-wasi/debug/swc_plugin_prefresh.wasm .",
10-
"test": "npm run build:debug && vitest run"
7+
"prepack": "pnpm run build && vitest run",
8+
"build": "cargo build --release -p swc_plugin_prefresh --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/release/swc_plugin_prefresh.wasm .",
9+
"build:debug": "cargo build -p swc_plugin_prefresh --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/debug/swc_plugin_prefresh.wasm .",
10+
"test": "pnpm run build:debug && vitest run"
1111
},
1212
"homepage": "https://swc.rs",
1313
"repository": {

packages/react-remove-properties/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"description": "SWC plugin for https://www.npmjs.com/package/babel-plugin-react-remove-properties",
55
"main": "swc_plugin_react_remove_properties.wasm",
66
"scripts": {
7-
"prepack": "npm run build && vitest run",
8-
"build": "cargo build --release -p swc_plugin_react_remove_properties --target wasm32-wasi && cp ../../target/wasm32-wasi/release/swc_plugin_react_remove_properties.wasm .",
9-
"build:debug": "cargo build -p swc_plugin_react_remove_properties --target wasm32-wasi && cp ../../target/wasm32-wasi/debug/swc_plugin_react_remove_properties.wasm .",
10-
"test": "npm run build:debug && vitest run"
7+
"prepack": "pnpm run build && vitest run",
8+
"build": "cargo build --release -p swc_plugin_react_remove_properties --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/release/swc_plugin_react_remove_properties.wasm .",
9+
"build:debug": "cargo build -p swc_plugin_react_remove_properties --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/debug/swc_plugin_react_remove_properties.wasm .",
10+
"test": "pnpm run build:debug && vitest run"
1111
},
1212
"homepage": "https://swc.rs",
1313
"repository": {

packages/relay/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"main": "swc_plugin_relay.wasm",
66
"types": "./types.d.ts",
77
"scripts": {
8-
"prepack": "npm run build && vitest run",
9-
"build": "cargo build --release -p swc_plugin_relay --target wasm32-wasi && cp ../../target/wasm32-wasi/release/swc_plugin_relay.wasm .",
10-
"build:debug": "cargo build -p swc_plugin_relay --target wasm32-wasi && cp ../../target/wasm32-wasi/debug/swc_plugin_relay.wasm .",
11-
"test": "npm run build:debug && vitest run"
8+
"prepack": "pnpm run build && vitest run",
9+
"build": "cargo build --release -p swc_plugin_relay --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/release/swc_plugin_relay.wasm .",
10+
"build:debug": "cargo build -p swc_plugin_relay --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/debug/swc_plugin_relay.wasm .",
11+
"test": "pnpm run build:debug && vitest run"
1212
},
1313
"homepage": "https://swc.rs",
1414
"repository": {

packages/remove-console/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"description": "SWC plugin for https://www.npmjs.com/package/babel-plugin-remove-console",
55
"main": "swc_plugin_remove_console.wasm",
66
"scripts": {
7-
"prepack": "npm run build && vitest run",
8-
"build": "cargo build --release -p swc_plugin_remove_console --target wasm32-wasi && cp ../../target/wasm32-wasi/release/swc_plugin_remove_console.wasm .",
9-
"build:debug": "cargo build -p swc_plugin_remove_console --target wasm32-wasi && cp ../../target/wasm32-wasi/debug/swc_plugin_remove_console.wasm .",
10-
"test": "npm run build:debug && vitest run"
7+
"prepack": "pnpm run build && vitest run",
8+
"build": "cargo build --release -p swc_plugin_remove_console --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/release/swc_plugin_remove_console.wasm .",
9+
"build:debug": "cargo build -p swc_plugin_remove_console --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/debug/swc_plugin_remove_console.wasm .",
10+
"test": "pnpm run build:debug && vitest run"
1111
},
1212
"homepage": "https://swc.rs",
1313
"repository": {

packages/styled-components/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"description": "SWC plugin for styled-components",
55
"main": "swc_plugin_styled_components.wasm",
66
"scripts": {
7-
"prepack": "npm run build && vitest run",
8-
"build": "cargo build --release -p swc_plugin_styled_components --target wasm32-wasi && cp ../../target/wasm32-wasi/release/swc_plugin_styled_components.wasm .",
9-
"build:debug": "cargo build -p swc_plugin_styled_components --target wasm32-wasi && cp ../../target/wasm32-wasi/release/swc_plugin_styled_components.wasm .",
10-
"test": "npm run build:debug && vitest run"
7+
"prepack": "pnpm run build && vitest run",
8+
"build": "cargo build --release -p swc_plugin_styled_components --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/release/swc_plugin_styled_components.wasm .",
9+
"build:debug": "cargo build -p swc_plugin_styled_components --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/debug/swc_plugin_styled_components.wasm .",
10+
"test": "pnpm run build:debug && vitest run"
1111
},
1212
"homepage": "https://swc.rs",
1313
"repository": {

packages/styled-jsx/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"description": "SWC plugin for styled-jsx",
55
"main": "swc_plugin_styled_jsx.wasm",
66
"scripts": {
7-
"prepack": "npm run build && vitest run",
8-
"build": "cargo build --release -p swc_plugin_styled_jsx --target wasm32-wasi && cp ../../target/wasm32-wasi/release/swc_plugin_styled_jsx.wasm .",
9-
"build:debug": "cargo build -p swc_plugin_styled_jsx --target wasm32-wasi && cp ../../target/wasm32-wasi/release/swc_plugin_styled_jsx.wasm .",
10-
"test": "npm run build:debug && vitest run"
7+
"prepack": "pnpm run build && vitest run",
8+
"build": "cargo build --release -p swc_plugin_styled_jsx --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/release/swc_plugin_styled_jsx.wasm .",
9+
"build:debug": "cargo build -p swc_plugin_styled_jsx --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/debug/swc_plugin_styled_jsx.wasm .",
10+
"test": "pnpm run build:debug && vitest run"
1111
},
1212
"homepage": "https://swc.rs",
1313
"repository": {

packages/swc-confidential/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"description": "SWC plugin for swc-confidential",
55
"main": "swc_plugin_swc_confidential.wasm",
66
"scripts": {
7-
"prepack": "npm run build && vitest run",
8-
"build": "cargo build --release -p swc_plugin_swc_confidential --target wasm32-wasi && cp ../../target/wasm32-wasi/release/swc_plugin_swc_confidential.wasm .",
9-
"build:debug": "cargo build -p swc_plugin_swc_confidential --target wasm32-wasi && cp ../../target/wasm32-wasi/debug/swc_plugin_swc_confidential.wasm .",
10-
"test": "npm run build:debug && vitest run"
7+
"prepack": "pnpm run build && vitest run",
8+
"build": "cargo build --release -p swc_plugin_swc_confidential --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/release/swc_plugin_swc_confidential.wasm .",
9+
"build:debug": "cargo build -p swc_plugin_swc_confidential --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/debug/swc_plugin_swc_confidential.wasm .",
10+
"test": "pnpm run build:debug && vitest run"
1111
},
1212
"homepage": "https://swc.rs",
1313
"repository": {

packages/swc-magic/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "SWC plugin for swc-magic",
55
"main": "swc_plugin_swc_magic.wasm",
66
"scripts": {
7-
"prepack": "cargo build --release -p swc_plugin_swc_magic --target wasm32-wasi && cp ../../target/wasm32-wasi/release/swc_plugin_swc_magic.wasm ."
7+
"prepack": "cargo build --release -p swc_plugin_swc_magic --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/release/swc_plugin_swc_magic.wasm ."
88
},
99
"homepage": "https://swc.rs",
1010
"repository": {

packages/swc-sdk/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "SWC plugin for swc-sdk",
55
"main": "swc_plugin_swc_sdk.wasm",
66
"scripts": {
7-
"prepack": "cargo build --release -p swc_plugin_swc_sdk --target wasm32-wasi && cp ../../target/wasm32-wasi/release/swc_plugin_swc_sdk.wasm ."
7+
"prepack": "cargo build --release -p swc_plugin_swc_sdk --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/release/swc_plugin_swc_sdk.wasm ."
88
},
99
"homepage": "https://swc.rs",
1010
"repository": {

packages/transform-imports/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"description": "SWC plugin for https://www.npmjs.com/package/babel-plugin-transform-imports",
55
"main": "swc_plugin_transform_imports.wasm",
66
"scripts": {
7-
"prepack": "npm run build && vitest run",
8-
"build": "cargo build --release -p swc_plugin_transform_imports --target wasm32-wasi && cp ../../target/wasm32-wasi/release/swc_plugin_transform_imports.wasm .",
9-
"build:debug": "cargo build -p swc_plugin_transform_imports --target wasm32-wasi && cp ../../target/wasm32-wasi/debug/swc_plugin_transform_imports.wasm .",
10-
"test": "npm run build:debug && vitest run"
7+
"prepack": "pnpm run build && vitest run",
8+
"build": "cargo build --release -p swc_plugin_transform_imports --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/release/swc_plugin_transform_imports.wasm .",
9+
"build:debug": "cargo build -p swc_plugin_transform_imports --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/debug/swc_plugin_transform_imports.wasm .",
10+
"test": "pnpm run build:debug && vitest run"
1111
},
1212
"homepage": "https://swc.rs",
1313
"repository": {

0 commit comments

Comments
 (0)