Skip to content

Commit 18c8d79

Browse files
committed
SDK regeneration
1 parent 4fc9777 commit 18c8d79

File tree

1,606 files changed

+72229
-47960
lines changed

Some content is hidden

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

1,606 files changed

+72229
-47960
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,16 @@ jobs:
1111
uses: actions/checkout@v4
1212

1313
- name: Set up node
14-
uses: actions/setup-node@v3
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
1521

1622
- name: Compile
17-
run: yarn && yarn build
23+
run: pnpm build
1824

1925
test:
2026
runs-on: ubuntu-latest
@@ -24,10 +30,16 @@ jobs:
2430
uses: actions/checkout@v4
2531

2632
- name: Set up node
27-
uses: actions/setup-node@v3
33+
uses: actions/setup-node@v4
34+
35+
- name: Install pnpm
36+
uses: pnpm/action-setup@v4
2837

29-
- name: Compile
30-
run: yarn && yarn test
38+
- name: Install dependencies
39+
run: pnpm install
40+
41+
- name: Test
42+
run: pnpm test
3143

3244
publish:
3345
needs: [ compile, test ]
@@ -36,12 +48,18 @@ jobs:
3648
steps:
3749
- name: Checkout repo
3850
uses: actions/checkout@v4
51+
3952
- name: Set up node
40-
uses: actions/setup-node@v3
53+
uses: actions/setup-node@v4
54+
55+
- name: Install pnpm
56+
uses: pnpm/action-setup@v4
57+
4158
- name: Install dependencies
42-
run: yarn install
59+
run: pnpm install
60+
4361
- name: Build
44-
run: yarn build
62+
run: pnpm build
4563

4664
- name: Publish to npm
4765
run: |

.npmignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ tests
55
.github
66
.fernignore
77
.prettierrc.yml
8+
biome.json
89
tsconfig.json
9-
yarn.lock
10+
yarn.lock
11+
pnpm-lock.yaml

.prettierrc.yml

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

biome.json

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

jest.config.mjs

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,29 @@
22
export default {
33
preset: "ts-jest",
44
testEnvironment: "node",
5-
moduleNameMapper: {
6-
"(.+)\.js$": "$1",
7-
},
5+
projects: [
6+
{
7+
displayName: "unit",
8+
preset: "ts-jest",
9+
testEnvironment: "node",
10+
moduleNameMapper: {
11+
"^(\.{1,2}/.*)\.js$": "$1",
12+
},
13+
roots: ["<rootDir>/tests"],
14+
testPathIgnorePatterns: ["/tests/wire/"],
15+
setupFilesAfterEnv: [],
16+
},
17+
{
18+
displayName: "wire",
19+
preset: "ts-jest",
20+
testEnvironment: "node",
21+
moduleNameMapper: {
22+
"^(\.{1,2}/.*)\.js$": "$1",
23+
},
24+
roots: ["<rootDir>/tests/wire"],
25+
setupFilesAfterEnv: ["<rootDir>/tests/mock-server/setup.ts"],
26+
},
27+
],
28+
workerThreads: false,
29+
passWithNoTests: true,
830
};

package.json

Lines changed: 50 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,85 @@
11
{
22
"name": "@schematichq/schematic-typescript-node",
3-
"version": "1.2.4",
3+
"version": "1.2.5",
44
"private": false,
5-
"repository": "https://github.com/schematichq/schematic-node",
5+
"repository": "github:schematichq/schematic-node",
6+
"type": "commonjs",
67
"main": "./dist/index.js",
8+
"module": "./dist/esm/index.mjs",
79
"types": "./dist/index.d.ts",
10+
"exports": {
11+
".": {
12+
"types": "./dist/cjs/index.d.ts",
13+
"import": {
14+
"types": "./dist/esm/index.d.mts",
15+
"default": "./dist/esm/index.mjs"
16+
},
17+
"require": {
18+
"types": "./dist/cjs/index.d.ts",
19+
"default": "./dist/cjs/index.js"
20+
},
21+
"default": "./dist/cjs/index.js"
22+
},
23+
"./package.json": "./package.json"
24+
},
25+
"files": [
26+
"dist/**/*.js",
27+
"dist/**/*.d.ts",
28+
"!dist/**/*.js.map",
29+
"!dist/**/*.test.*",
30+
"README.md",
31+
"dist",
32+
"reference.md",
33+
"LICENSE"
34+
],
835
"scripts": {
9-
"format": "prettier . --write --ignore-unknown",
36+
"format": "biome format --write --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
37+
"format:check": "biome format --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
38+
"lint": "biome lint --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
39+
"lint:fix": "biome lint --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
40+
"check": "biome check --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
41+
"check:fix": "biome check --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
1042
"build": "node build.js",
11-
"prepack": "cp -rv dist/. .",
12-
"test": "jest",
43+
"build:cjs": "tsc --project ./tsconfig.cjs.json",
44+
"build:esm": "tsc --project ./tsconfig.esm.json && node scripts/rename-to-esm-files.js dist/esm",
45+
"test": "jest --config jest.config.mjs",
46+
"test:unit": "jest --selectProjects unit",
47+
"test:wire": "jest --selectProjects wire",
1348
"build:legacy": "tsc"
1449
},
1550
"dependencies": {
16-
"url-join": "4.0.1",
1751
"form-data": "^4.0.4",
1852
"formdata-node": "^6.0.3",
1953
"node-fetch": "^2.7.0",
20-
"qs": "^6.13.1",
2154
"readable-stream": "^4.5.2"
2255
},
2356
"devDependencies": {
24-
"@types/url-join": "4.0.1",
25-
"@types/qs": "^6.9.17",
2657
"@types/node-fetch": "^2.6.12",
2758
"@types/readable-stream": "^4.0.18",
2859
"webpack": "^5.97.1",
2960
"ts-loader": "^9.5.1",
3061
"jest": "^29.7.0",
62+
"@jest/globals": "^29.7.0",
3163
"@types/jest": "^29.5.14",
32-
"ts-jest": "^29.1.1",
64+
"ts-jest": "^29.3.4",
3365
"jest-environment-jsdom": "^29.7.0",
66+
"msw": "2.11.2",
3467
"@types/node": "^18.19.70",
35-
"prettier": "^3.4.2",
3668
"typescript": "~5.7.2",
69+
"@biomejs/biome": "2.2.5",
3770
"esbuild": "^0.25.9"
3871
},
3972
"browser": {
4073
"fs": false,
4174
"os": false,
4275
"path": false,
76+
"stream": false,
4377
"crypto": false,
4478
"timers": false
4579
},
46-
"packageManager": "[email protected]",
47-
"files": [
48-
"dist/**/*.js",
49-
"dist/**/*.d.ts",
50-
"!dist/**/*.js.map",
51-
"!dist/**/*.test.*",
52-
"README.md"
53-
]
80+
"packageManager": "[email protected]",
81+
"engines": {
82+
"node": ">=18.0.0"
83+
},
84+
"sideEffects": false
5485
}

0 commit comments

Comments
 (0)