Skip to content

Commit 7e43973

Browse files
committed
feat: split packages
1 parent 136618e commit 7e43973

Some content is hidden

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

78 files changed

+1997
-10795
lines changed

.github/workflows/pr.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ jobs:
1919
with:
2020
node-version: '20'
2121
registry-url: 'https://registry.npmjs.org/'
22-
22+
cache: 'npm'
23+
cache-dependency-path: ./package-lock.json
2324
- name: Install WASM
2425
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
2526

26-
- run: cd ts && npm install && npm run build && npm test
27+
- run: npm install && npm test

.github/workflows/release.yml

+15-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
registry-url: 'https://registry.npmjs.org/'
3535
scope: '@trust0' # Replace with your organization scope
3636
cache: 'npm'
37-
cache-dependency-path: ./ts/package-lock.json
37+
cache-dependency-path: ./package-lock.json
3838

3939
- name: Install Rust toolchain
4040
uses: actions-rs/toolchain@v1
@@ -47,13 +47,24 @@ jobs:
4747

4848
- name: Configure npm authentication
4949
run: |
50-
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ./ts/.npmrc
51-
echo "@trust0:registry=https://registry.npmjs.org/" >> ./ts/.npmrc
50+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ./.npmrc
51+
echo "@trust0:registry=https://registry.npmjs.org/" >> ./.npmrc
5252
env:
5353
NPM_TOKEN: ${{ env.NPM_TOKEN }}
5454

5555
- name: Run semantic-release
5656
env:
5757
NPM_TOKEN: ${{ env.NPM_TOKEN }}
5858
GH_TOKEN: ${{ secrets.GH_SECRET }}
59-
run: cd ts && npm ci && npx semantic-release
59+
run: |
60+
npm ci
61+
npm install @semantic-release/changelog@^6.0.3
62+
npm install @semantic-release/commit-analyzer@^13.0.0
63+
npm install @semantic-release/exec@^6.0.3
64+
npm install @semantic-release/git@^10.0.1
65+
npm install @semantic-release/github@^10.3.3
66+
npm install @semantic-release/npm@^12.0.1
67+
npm install @semantic-release/release-notes-generator@^14.0.1
68+
npm install semantic-release@^24.1.1
69+
npm run docs
70+
npx semantic-release

.gitignore

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
2-
pkg
1+
node_modules/*
2+
cjs/*
3+
esm/*
4+
umd/*
35
.idea
4-
/target
5-
node_modules
6-
build
6+
coverage
7+
build/*
File renamed without changes.

ts/CHANGELOG.md CHANGELOG.md

File renamed without changes.

0 commit comments

Comments
 (0)