Skip to content

Commit e3757ae

Browse files
authored
feat: refactor for simplicity (#647)
BREAKING CHANGE: Exported types have changed, some have been removed. Some supported units were also removed.
1 parent caf5faf commit e3757ae

File tree

157 files changed

+2870
-13364
lines changed

Some content is hidden

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

157 files changed

+2870
-13364
lines changed

.github/workflows/ci.yml

+15-20
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,14 @@ jobs:
1515
- name: Setup Node.js
1616
uses: actions/setup-node@v4
1717
with:
18-
node-version: '18'
18+
node-version: '20'
1919
cache: 'yarn'
20+
- name: Setup Bun
21+
uses: oven-sh/setup-bun@v1
2022
- name: Install dependencies with Yarn
2123
run: yarn install --immutable
22-
- name: Build
23-
run: yarn build
24-
- name: Upload compiled package
25-
uses: actions/upload-artifact@v4
26-
with:
27-
name: dist
28-
path: packages/convert/dist
29-
- name: Run tests
30-
run: yarn run test
24+
- name: Build and test
25+
run: yarn just build lint test size
3126
legacy-test:
3227
name: Legacy Node.js tests
3328

@@ -40,12 +35,14 @@ jobs:
4035
- name: Setup Node.js
4136
uses: actions/setup-node@v4
4237
with:
43-
node-version: '18'
38+
node-version: '20'
4439
cache: 'yarn'
40+
- name: Setup Bun
41+
uses: oven-sh/setup-bun@v1
4542
- name: Install dependencies with Yarn
4643
run: yarn install --immutable
4744
- name: Build
48-
run: yarn run build
45+
run: yarn just bundle
4946
- name: Download Node.js v0.9.1
5047
run: |
5148
wget https://nodejs.org/dist/v0.9.1/node-v0.9.1-linux-x64.tar.gz
@@ -54,9 +51,9 @@ jobs:
5451
cp ./node-v0.9.1-linux-x64/bin/node $HOME/.local/bin/node-0.9.1
5552
echo "$HOME/.local/bin" >> $GITHUB_PATH
5653
- name: Run tests on modern Node.js
57-
run: node packages/convert/test/legacy.cjs
54+
run: node ./test/legacy.cjs
5855
- name: Run tests on Node.js v0.9.1
59-
run: node-0.9.1 packages/convert/test/legacy.cjs
56+
run: node-0.9.1 ./test/legacy.cjs
6057
publish:
6158
name: Publish
6259

@@ -75,16 +72,14 @@ jobs:
7572
- name: Setup Node.js
7673
uses: actions/setup-node@v4
7774
with:
78-
node-version: '18'
75+
node-version: '20'
7976
cache: 'yarn'
77+
- name: Setup Bun
78+
uses: oven-sh/setup-bun@v1
8079
- name: Install dependencies with Yarn
8180
run: yarn install --immutable
82-
- name: Build
83-
run: yarn run build
84-
- name: Generate TypeScript declaration rollup
85-
run: yarn run validate-api
8681
- name: Run release
87-
run: yarn workspace convert run release
82+
run: yarn just release
8883
env:
8984
GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
9085
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

+16
Original file line numberDiff line numberDiff line change
@@ -256,3 +256,19 @@ $RECYCLE.BIN/
256256

257257
# Rollup temporary files
258258
rollup.config-*.cjs
259+
260+
# Generated files
261+
src/generated/*
262+
263+
# API Extractor
264+
temp
265+
266+
# Rollup cache
267+
.rollup.cache
268+
269+
# moon
270+
.moon/cache
271+
.moon/docker
272+
273+
# Docs
274+
docs_out

.prettierignore

-264
This file was deleted.
File renamed without changes.

.vscode/settings.json

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
{
22
"[javascript]": {
3-
"editor.defaultFormatter": "samverschueren.linter-xo"
3+
"editor.defaultFormatter": "biomejs.biome"
44
},
55
"[javascriptreact]": {
6-
"editor.defaultFormatter": "samverschueren.linter-xo"
6+
"editor.defaultFormatter": "biomejs.biome"
7+
},
8+
"[json]": {
9+
"editor.defaultFormatter": "biomejs.biome"
10+
},
11+
"[jsonc]": {
12+
"editor.defaultFormatter": "biomejs.biome"
713
},
814
"[typescript]": {
9-
"editor.defaultFormatter": "samverschueren.linter-xo"
15+
"editor.defaultFormatter": "biomejs.biome"
1016
},
1117
"[typescriptreact]": {
12-
"editor.defaultFormatter": "samverschueren.linter-xo"
18+
"editor.defaultFormatter": "biomejs.biome"
1319
},
1420
"editor.defaultFormatter": "esbenp.prettier-vscode",
15-
"typescript.preferences.importModuleSpecifierEnding": "js",
21+
"typescript.preferences.importModuleSpecifierEnding": "index",
1622
"typescript.tsdk": "node_modules/typescript/lib"
1723
}

0 commit comments

Comments
 (0)