Skip to content

Commit f960d52

Browse files
authored
refactor(bindings): Make @swc/core a subpackage (#8625)
**Description:** This is for consistency and future extensions.
1 parent edca394 commit f960d52

174 files changed

Lines changed: 6334 additions & 7005 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/CI.yml

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ jobs:
146146
# toolchain: stable
147147
# override: true
148148

149+
- run: corepack enable
150+
149151
- uses: actions/setup-node@v4
150152
with:
151153
node-version: "18"
@@ -154,6 +156,7 @@ jobs:
154156
- name: Install node dependencies
155157
shell: bash
156158
run: |
159+
corepack enable
157160
yarn
158161
159162
# Ensure that all components are compilable.
@@ -168,6 +171,9 @@ jobs:
168171
steps:
169172
- uses: actions/checkout@v4
170173

174+
- shell: bash
175+
run: corepack enable
176+
171177
# We explicitly do this to cache properly.
172178
- uses: actions-rs/toolchain@v1
173179
with:
@@ -191,6 +197,7 @@ jobs:
191197
- name: Install node dependencies
192198
shell: bash
193199
run: |
200+
corepack enable
194201
yarn
195202
196203
- name: Build
@@ -589,6 +596,8 @@ jobs:
589596
with:
590597
submodules: true
591598

599+
- run: corepack enable
600+
592601
# Source map format
593602
- uses: actions/setup-node@v4
594603
with:
@@ -613,6 +622,7 @@ jobs:
613622
- name: Install node dependencies
614623
shell: bash
615624
run: |
625+
corepack enable
616626
yarn
617627
# I don't want to think deeply about this
618628
yarn global add jest@27 mocha || \
@@ -633,7 +643,7 @@ jobs:
633643
- name: Verify dependencies
634644
shell: bash
635645
run: |
636-
jest --version && mocha --version
646+
yarn jest --version && yarn mocha --version
637647
638648
- name: Configure execution cache
639649
shell: bash
@@ -725,8 +735,7 @@ jobs:
725735
steps:
726736
- uses: actions/checkout@v4
727737

728-
- name: Corepack
729-
shell: bash
738+
- shell: bash
730739
run: corepack enable
731740

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

736745
- uses: actions/setup-node@v4
737746
with:
738-
node-version: 20
747+
node-version: 18
739748
cache: "yarn"
740749

741750
- name: Patch
@@ -761,7 +770,14 @@ jobs:
761770
corepack enable
762771
yarn
763772
773+
- name: Build
774+
working-directory: packages/core
775+
run: |
764776
yarn build:dev
777+
778+
- name: Test
779+
working-directory: packages/core
780+
run: |
765781
yarn test
766782
767783
integration-test:
@@ -772,8 +788,7 @@ jobs:
772788
steps:
773789
- uses: actions/checkout@v4
774790

775-
- name: Corepack
776-
shell: bash
791+
- shell: bash
777792
run: corepack enable
778793

779794
- uses: actions/setup-node@v4
@@ -878,14 +893,19 @@ jobs:
878893
with:
879894
submodules: true
880895

896+
- shell: bash
897+
run: corepack enable
898+
881899
- uses: actions/setup-node@v4
882900
with:
883901
node-version: "18"
884902
cache: "yarn"
885903

886904
- name: Install node dependencies
887905
shell: bash
888-
run: yarn
906+
run: |
907+
corepack enable
908+
yarn
889909
890910
- name: Print rustup toolchain version
891911
shell: bash

0 commit comments

Comments
 (0)