Skip to content

Commit 73618f0

Browse files
Merge pull request #17 from PhenoML/fern-bot/2025-12-10T17-08Z
🌿 Fern Regeneration -- December 10, 2025
2 parents dd4458b + 0d0e82c commit 73618f0

File tree

215 files changed

+5295
-4242
lines changed

Some content is hidden

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

215 files changed

+5295
-4242
lines changed

.github/workflows/ci.yml

Lines changed: 72 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -3,64 +3,75 @@ name: ci
33
on: [push]
44

55
jobs:
6-
compile:
7-
runs-on: ubuntu-latest
8-
9-
steps:
10-
- name: Checkout repo
11-
uses: actions/checkout@v4
12-
13-
- name: Set up node
14-
uses: actions/setup-node@v3
15-
16-
- name: Install dependencies
17-
run: yarn install
18-
19-
- name: Compile
20-
run: yarn build
21-
22-
test:
23-
runs-on: ubuntu-latest
24-
25-
steps:
26-
- name: Checkout repo
27-
uses: actions/checkout@v4
28-
29-
- name: Set up node
30-
uses: actions/setup-node@v3
31-
32-
- name: Install dependencies
33-
run: yarn install
34-
35-
- name: Test
36-
run: yarn test
37-
38-
publish:
39-
needs: [compile, test]
40-
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
41-
runs-on: ubuntu-latest
42-
steps:
43-
- name: Checkout repo
44-
uses: actions/checkout@v4
45-
46-
- name: Set up node
47-
uses: actions/setup-node@v3
48-
49-
- name: Install dependencies
50-
run: yarn install
51-
52-
- name: Build
53-
run: yarn build
54-
55-
- name: Publish to npm
56-
run: |
57-
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
58-
if [[ ${GITHUB_REF} == *alpha* ]]; then
59-
npm publish --access public --tag alpha
60-
elif [[ ${GITHUB_REF} == *beta* ]]; then
61-
npm publish --access public --tag beta
62-
else
63-
npm publish --access public
64-
fi
65-
env:
66-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6+
compile:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout repo
11+
uses: actions/checkout@v4
12+
13+
- name: Set up node
14+
uses: actions/setup-node@v4
15+
16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v4
18+
19+
- name: Install dependencies
20+
run: pnpm install
21+
22+
- name: Compile
23+
run: pnpm build
24+
25+
test:
26+
runs-on: ubuntu-latest
27+
28+
steps:
29+
- name: Checkout repo
30+
uses: actions/checkout@v4
31+
32+
- name: Set up node
33+
uses: actions/setup-node@v4
34+
35+
- name: Install pnpm
36+
uses: pnpm/action-setup@v4
37+
38+
- name: Install dependencies
39+
run: pnpm install
40+
41+
- name: Test
42+
run: pnpm test
43+
44+
publish:
45+
needs: [ compile, test ]
46+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
47+
runs-on: ubuntu-latest
48+
permissions:
49+
id-token: write # Required for OIDC
50+
steps:
51+
- name: Checkout repo
52+
uses: actions/checkout@v4
53+
54+
- name: Set up node
55+
uses: actions/setup-node@v4
56+
57+
- name: Install pnpm
58+
uses: pnpm/action-setup@v4
59+
60+
- name: Install dependencies
61+
run: pnpm install
62+
63+
- name: Build
64+
run: pnpm build
65+
66+
- name: Publish to npm
67+
run: |
68+
publish() { # use latest npm to ensure OIDC support
69+
npx -y npm@latest publish "$@"
70+
}
71+
if [[ ${GITHUB_REF} == *alpha* ]]; then
72+
publish --access public --tag alpha
73+
elif [[ ${GITHUB_REF} == *beta* ]]; then
74+
publish --access public --tag beta
75+
else
76+
publish --access public
77+
fi

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ tests
55
.github
66
.fernignore
77
.prettierrc.yml
8+
biome.json
89
tsconfig.json
910
yarn.lock
1011
pnpm-lock.yaml

.prettierignore

Lines changed: 0 additions & 9 deletions
This file was deleted.

.prettierrc.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

biome.json

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.3.1/schema.json",
3+
"root": true,
4+
"vcs": {
5+
"enabled": false
6+
},
7+
"files": {
8+
"ignoreUnknown": true,
9+
"includes": [
10+
"**",
11+
"!!dist",
12+
"!!**/dist",
13+
"!!lib",
14+
"!!**/lib",
15+
"!!_tmp_*",
16+
"!!**/_tmp_*",
17+
"!!*.tmp",
18+
"!!**/*.tmp",
19+
"!!.tmp/",
20+
"!!**/.tmp/",
21+
"!!*.log",
22+
"!!**/*.log",
23+
"!!**/.DS_Store",
24+
"!!**/Thumbs.db"
25+
]
26+
},
27+
"formatter": {
28+
"enabled": true,
29+
"indentStyle": "space",
30+
"indentWidth": 4,
31+
"lineWidth": 120
32+
},
33+
"javascript": {
34+
"formatter": {
35+
"quoteStyle": "double"
36+
}
37+
},
38+
"assist": {
39+
"enabled": true,
40+
"actions": {
41+
"source": {
42+
"organizeImports": "on"
43+
}
44+
}
45+
},
46+
"linter": {
47+
"rules": {
48+
"style": {
49+
"useNodejsImportProtocol": "off"
50+
},
51+
"suspicious": {
52+
"noAssignInExpressions": "warn",
53+
"noUselessEscapeInString": {
54+
"level": "warn",
55+
"fix": "none",
56+
"options": {}
57+
},
58+
"noThenProperty": "warn",
59+
"useIterableCallbackReturn": "warn",
60+
"noShadowRestrictedNames": "warn",
61+
"noTsIgnore": {
62+
"level": "warn",
63+
"fix": "none",
64+
"options": {}
65+
},
66+
"noConfusingVoidType": {
67+
"level": "warn",
68+
"fix": "none",
69+
"options": {}
70+
}
71+
}
72+
}
73+
}
74+
}

jest.config.mjs

Lines changed: 0 additions & 31 deletions
This file was deleted.

package.json

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "phenoml",
3-
"version": "0.0.7",
3+
"version": "0.0.8",
44
"private": false,
55
"repository": "github:phenoml/phenoml-ts-sdk",
66
"type": "commonjs",
@@ -29,34 +29,35 @@
2929
"LICENSE"
3030
],
3131
"scripts": {
32-
"format": "prettier . --write --ignore-unknown",
33-
"build": "yarn build:cjs && yarn build:esm",
32+
"format": "biome format --write --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
33+
"format:check": "biome format --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
34+
"lint": "biome lint --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
35+
"lint:fix": "biome lint --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
36+
"check": "biome check --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
37+
"check:fix": "biome check --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
38+
"build": "pnpm build:cjs && pnpm build:esm",
3439
"build:cjs": "tsc --project ./tsconfig.cjs.json",
3540
"build:esm": "tsc --project ./tsconfig.esm.json && node scripts/rename-to-esm-files.js dist/esm",
36-
"test": "jest --config jest.config.mjs",
37-
"test:unit": "jest --selectProjects unit",
38-
"test:wire": "jest --selectProjects wire"
41+
"test": "vitest",
42+
"test:unit": "vitest --project unit",
43+
"test:wire": "vitest --project wire"
3944
},
4045
"devDependencies": {
4146
"webpack": "^5.97.1",
4247
"ts-loader": "^9.5.1",
43-
"jest": "^29.7.0",
44-
"@jest/globals": "^29.7.0",
45-
"@types/jest": "^29.5.14",
46-
"ts-jest": "^29.3.4",
47-
"jest-environment-jsdom": "^29.7.0",
48+
"vitest": "^3.2.4",
4849
"msw": "2.11.2",
4950
"@types/node": "^18.19.70",
50-
"prettier": "^3.4.2",
51-
"typescript": "~5.7.2"
51+
"typescript": "~5.7.2",
52+
"@biomejs/biome": "2.3.1"
5253
},
5354
"browser": {
5455
"fs": false,
5556
"os": false,
5657
"path": false,
5758
"stream": false
5859
},
59-
"packageManager": "[email protected]",
60+
"packageManager": "[email protected]",
6061
"engines": {
6162
"node": ">=18.0.0"
6263
},

0 commit comments

Comments
 (0)