Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(bindings): Make @swc/core a subpackage #8625

Merged
merged 81 commits into from
May 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
d4d7338
move package.json
kdy1 Feb 8, 2024
97f3cd4
Move lint-staged
kdy1 Feb 8, 2024
81ee629
Remove packages/yarn.lock
kdy1 Feb 8, 2024
8d3118d
fixup for rebase
kdy1 May 16, 2024
5b8b6b7
yarn lockifle
kdy1 May 16, 2024
b222bc7
scripts
kdy1 May 16, 2024
10891fd
typo
kdy1 May 16, 2024
6044c57
yarn lockfile
kdy1 May 16, 2024
3a1d079
postinstall
kdy1 May 16, 2024
ff9ce20
path
kdy1 May 16, 2024
6a2ddc7
dep
kdy1 May 16, 2024
3905548
yarn lockfile
kdy1 May 16, 2024
bfd9159
dep
kdy1 May 16, 2024
64b79a0
yarn lockfile
kdy1 May 16, 2024
04c0469
move
kdy1 May 16, 2024
9cb0232
rootDir
kdy1 May 16, 2024
a91c686
util.ts
kdy1 May 16, 2024
008e66e
binding
kdy1 May 16, 2024
80f009e
path
kdy1 May 16, 2024
def0e79
postinstall
kdy1 May 16, 2024
5039b6e
tsconfig
kdy1 May 16, 2024
01439a8
tsc -d
kdy1 May 16, 2024
6d0358b
allowjs
kdy1 May 16, 2024
691a293
- run: corepack enable
kdy1 May 16, 2024
a589675
publish
kdy1 May 16, 2024
1429885
fix
kdy1 May 16, 2024
f1b8ee8
yarn lockfile
kdy1 May 16, 2024
49684a2
binding
kdy1 May 16, 2024
3e2d9f7
yarn
kdy1 May 16, 2024
8eeca2d
import path
kdy1 May 16, 2024
ca67600
cancel
kdy1 May 16, 2024
cffe0c9
bindings.js
kdy1 May 16, 2024
0856efd
yarn
kdy1 May 16, 2024
f80540e
publish
kdy1 May 16, 2024
bf4cdad
corepack
kdy1 May 16, 2024
47e888b
helpers
kdy1 May 16, 2024
e16986d
yarn lockfile
kdy1 May 16, 2024
0502877
yarbn
kdy1 May 16, 2024
2d8ef3a
package
kdy1 May 16, 2024
617a4d6
yarn lockfile
kdy1 May 16, 2024
057528d
corepack enable
kdy1 May 16, 2024
bf34db3
yarn
kdy1 May 16, 2024
9ad9299
cd ./packages/core &&
kdy1 May 16, 2024
d121be4
(cd packages/core && yarn test)
kdy1 May 16, 2024
31179c4
dep
kdy1 May 16, 2024
e305e42
yarn lockfile
kdy1 May 16, 2024
3dbda83
rust-toolchain
kdy1 May 16, 2024
7825753
exec
kdy1 May 16, 2024
deefc18
f9x path
kdy1 May 16, 2024
688ea8a
move dep jes
kdy1 May 16, 2024
3bc4276
yarn lockfile
kdy1 May 16, 2024
572e5a8
move
kdy1 May 16, 2024
645f3da
dep
kdy1 May 16, 2024
b198869
yarn lockfile
kdy1 May 16, 2024
928133a
binding
kdy1 May 16, 2024
6aea90a
Fix index.ts
kdy1 May 16, 2024
d8741ac
Paths
kdy1 May 16, 2024
4439b97
path
kdy1 May 16, 2024
e0c0872
path
kdy1 May 16, 2024
85068dd
path
kdy1 May 16, 2024
ba5d990
test
kdy1 May 16, 2024
bd4f3db
move dep jest
kdy1 May 17, 2024
c6cc4b2
yarn lockfile
kdy1 May 17, 2024
6c83d95
scripts/npm
kdy1 May 17, 2024
19b077d
order
kdy1 May 17, 2024
6bfd27e
move
kdy1 May 17, 2024
db89918
swc crate
kdy1 May 17, 2024
e410d38
version
kdy1 May 17, 2024
ac04e16
split
kdy1 May 17, 2024
fd75867
cancel
kdy1 May 17, 2024
9242d21
PATH
kdy1 May 17, 2024
195403e
upload path
kdy1 May 17, 2024
0f03253
corepack
kdy1 May 17, 2024
c1367d5
yarn script
kdy1 May 17, 2024
c064f3a
CI*
kdy1 May 17, 2024
c1fa07b
cwd
kdy1 May 17, 2024
7a1c0b7
test
kdy1 May 17, 2024
4df6580
download path
kdy1 May 17, 2024
1295fc0
Move cli_artifcats
kdy1 May 17, 2024
c7ee7bf
./packages/core/
kdy1 May 17, 2024
1bc5d60
working-directory: ./packages/core
kdy1 May 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 27 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ jobs:
# toolchain: stable
# override: true

- run: corepack enable

- uses: actions/setup-node@v4
with:
node-version: "18"
Expand All @@ -154,6 +156,7 @@ jobs:
- name: Install node dependencies
shell: bash
run: |
corepack enable
yarn

# Ensure that all components are compilable.
Expand All @@ -168,6 +171,9 @@ jobs:
steps:
- uses: actions/checkout@v4

- shell: bash
run: corepack enable

# We explicitly do this to cache properly.
- uses: actions-rs/toolchain@v1
with:
Expand All @@ -191,6 +197,7 @@ jobs:
- name: Install node dependencies
shell: bash
run: |
corepack enable
yarn

- name: Build
Expand Down Expand Up @@ -589,6 +596,8 @@ jobs:
with:
submodules: true

- run: corepack enable

# Source map format
- uses: actions/setup-node@v4
with:
Expand All @@ -613,6 +622,7 @@ jobs:
- name: Install node dependencies
shell: bash
run: |
corepack enable
yarn
# I don't want to think deeply about this
yarn global add jest@27 mocha || \
Expand All @@ -633,7 +643,7 @@ jobs:
- name: Verify dependencies
shell: bash
run: |
jest --version && mocha --version
yarn jest --version && yarn mocha --version

- name: Configure execution cache
shell: bash
Expand Down Expand Up @@ -725,8 +735,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Corepack
shell: bash
- shell: bash
run: corepack enable

# We explicitly do this to cache properly.
Expand All @@ -735,7 +744,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 18
cache: "yarn"

- name: Patch
Expand All @@ -761,7 +770,14 @@ jobs:
corepack enable
yarn

- name: Build
working-directory: packages/core
run: |
yarn build:dev

- name: Test
working-directory: packages/core
run: |
yarn test

integration-test:
Expand All @@ -772,8 +788,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Corepack
shell: bash
- shell: bash
run: corepack enable

- uses: actions/setup-node@v4
Expand Down Expand Up @@ -878,14 +893,19 @@ jobs:
with:
submodules: true

- shell: bash
run: corepack enable

- uses: actions/setup-node@v4
with:
node-version: "18"
cache: "yarn"

- name: Install node dependencies
shell: bash
run: yarn
run: |
corepack enable
yarn

- name: Print rustup toolchain version
shell: bash
Expand Down