Skip to content

Commit 366c334

Browse files
authored
fix: improve config formatting and exclude sdk index (#2675)
1 parent 2f52671 commit 366c334

File tree

136 files changed

+1000
-984
lines changed

Some content is hidden

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

136 files changed

+1000
-984
lines changed

biome.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
},
5454
"overrides": [
5555
{
56-
"includes": ["packages_generated/**", "**/dist/**", "coverage/**", "**/examples/**", "**/*.gen.ts", "scripts/templates/**", "packages/sdk/src/index.gen.ts"],
56+
"includes": ["**/dist/**", "coverage/**", "**/examples/**", "**/*.gen.ts", "scripts/templates/**", "packages/sdk/src/index.gen.ts"],
5757
"formatter": {
5858
"enabled": false
5959
},
@@ -62,7 +62,7 @@
6262
}
6363
},
6464
{
65-
"includes": ["vite.config.ts", "vitest.config.ts", "packages/**/*.config.ts", "packages/**/*.config.js"],
65+
"includes": ["vite.config.ts", "vitest.config.ts", "packages/**/*.config.ts", "packages/**/*.config.js", "packages_generated/**/*.config.ts"],
6666
"linter": {
6767
"rules": {
6868
"style": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"generatePackages": "pnpm dlx tsx ./scripts/generatePackages.ts",
1616
"generateGlobalSdkPackage": "pnpm dlx tsx ./scripts/updateGlobalSdkPackage.ts",
1717
"setupNewProducts": "pnpm dlx tsx ./scripts/setupNewProducts.ts",
18-
"prebuild": "pnpm run generatePackages && pnpm run generateAlias && pnpm dlx tsx ./scripts/formatGeneratedConfigFiles.ts && pnpm biome format --write packages packages/sdk/vite.config.ts scripts",
18+
"prebuild": "pnpm run generatePackages && pnpm run generateAlias && pnpm dlx tsx ./scripts/formatGeneratedConfigFiles.ts && pnpm biome format --write scripts --files-ignore-unknown=true",
1919
"build:packages": "pnpm turbo run build",
2020
"fix-import-extensions": "pnpm dlx tsx ./scripts/fix-import-extensions.ts",
2121
"build": "pnpm run build:packages && pnpm run fix-import-extensions",

packages/sdk/src/index.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ import { Testv1 } from '@scaleway/sdk-test'
4646
import { Vpcv2 } from '@scaleway/sdk-vpc'
4747
import { Vpcgwv1, Vpcgwv2 } from '@scaleway/sdk-vpcgw'
4848
import { Webhostingv1 } from '@scaleway/sdk-webhosting'
49-
50-
export { createAdvancedClient, createClient } from '@scaleway/sdk-client'
49+
export { createClient, createAdvancedClient } from '@scaleway/sdk-client'
5150

5251
/**
5352
* @deprecated Direct version exports are deprecated. Use the 'Account' namespace instead (e.g., Account.v1).
@@ -405,3 +404,4 @@ export { Webhostingv1 }
405404
export const Webhosting = {
406405
v1: Webhostingv1,
407406
}
407+
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"extends": "./tsconfig.json",
3-
"compilerOptions": {
4-
"noEmit": false,
5-
"emitDeclarationOnly": true,
6-
"rootDir": "src",
7-
"outDir": "dist"
8-
},
9-
"exclude": [
10-
"dist/*",
11-
"*.config.ts",
12-
"*.setup.ts",
13-
"**/__tests__",
14-
"**/__mocks__",
15-
"src/**/*.test.tsx"
16-
]
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"noEmit": false,
5+
"emitDeclarationOnly": true,
6+
"rootDir": "src",
7+
"outDir": "dist"
8+
},
9+
"exclude": [
10+
"dist/*",
11+
"*.config.ts",
12+
"*.setup.ts",
13+
"**/__tests__",
14+
"**/__mocks__",
15+
"src/**/*.test.tsx"
16+
]
1717
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"extends": "../../tsconfig.json",
3-
"include": ["src/**/*.ts", "src/**/*.tsx", "*.config.ts"]
2+
"extends": "../../tsconfig.json",
3+
"include": ["src/**/*.ts", "src/**/*.tsx", "*.config.ts"]
44
}

packages_generated/account/vite.config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import { defineConfig, mergeConfig } from 'vite'
66
import { defaultConfig } from '../../vite.config'
77

88
export default mergeConfig(defineConfig(defaultConfig), {
9-
build: {
10-
lib: {
11-
entry: 'src/index.gen.ts',
12-
},
13-
},
9+
build: {
10+
lib: {
11+
entry: 'src/index.gen.ts',
12+
},
13+
},
1414
})
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"extends": "./tsconfig.json",
3-
"compilerOptions": {
4-
"noEmit": false,
5-
"emitDeclarationOnly": true,
6-
"rootDir": "src",
7-
"outDir": "dist"
8-
},
9-
"exclude": [
10-
"dist/*",
11-
"*.config.ts",
12-
"*.setup.ts",
13-
"**/__tests__",
14-
"**/__mocks__",
15-
"src/**/*.test.tsx"
16-
]
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"noEmit": false,
5+
"emitDeclarationOnly": true,
6+
"rootDir": "src",
7+
"outDir": "dist"
8+
},
9+
"exclude": [
10+
"dist/*",
11+
"*.config.ts",
12+
"*.setup.ts",
13+
"**/__tests__",
14+
"**/__mocks__",
15+
"src/**/*.test.tsx"
16+
]
1717
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"extends": "../../tsconfig.json",
3-
"include": ["src/**/*.ts", "src/**/*.tsx", "*.config.ts"]
2+
"extends": "../../tsconfig.json",
3+
"include": ["src/**/*.ts", "src/**/*.tsx", "*.config.ts"]
44
}

packages_generated/applesilicon/vite.config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import { defineConfig, mergeConfig } from 'vite'
66
import { defaultConfig } from '../../vite.config'
77

88
export default mergeConfig(defineConfig(defaultConfig), {
9-
build: {
10-
lib: {
11-
entry: 'src/index.gen.ts',
12-
},
13-
},
9+
build: {
10+
lib: {
11+
entry: 'src/index.gen.ts',
12+
},
13+
},
1414
})
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"extends": "./tsconfig.json",
3-
"compilerOptions": {
4-
"noEmit": false,
5-
"emitDeclarationOnly": true,
6-
"rootDir": "src",
7-
"outDir": "dist"
8-
},
9-
"exclude": [
10-
"dist/*",
11-
"*.config.ts",
12-
"*.setup.ts",
13-
"**/__tests__",
14-
"**/__mocks__",
15-
"src/**/*.test.tsx"
16-
]
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"noEmit": false,
5+
"emitDeclarationOnly": true,
6+
"rootDir": "src",
7+
"outDir": "dist"
8+
},
9+
"exclude": [
10+
"dist/*",
11+
"*.config.ts",
12+
"*.setup.ts",
13+
"**/__tests__",
14+
"**/__mocks__",
15+
"src/**/*.test.tsx"
16+
]
1717
}

0 commit comments

Comments
 (0)