Skip to content

Commit d8ecf1c

Browse files
authored
feat: sdk export createclient (#2425)
1 parent 69acd57 commit d8ecf1c

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

packages/sdk/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"build:profile": "npx vite-bundle-visualizer -c vite.config.ts"
3232
},
3333
"dependencies": {
34+
"@scaleway/sdk-client": "workspace:^",
3435
"@scaleway/sdk-account": "workspace:*",
3536
"@scaleway/sdk-applesilicon": "workspace:*",
3637
"@scaleway/sdk-audit-trail": "workspace:*",

packages/sdk/src/index.gen.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ import { Testv1 } from '@scaleway/sdk-test'
4444
import { Vpcv2 } from '@scaleway/sdk-vpc'
4545
import { Vpcgwv1, Vpcgwv2 } from '@scaleway/sdk-vpcgw'
4646
import { Webhostingv1 } from '@scaleway/sdk-webhosting'
47+
48+
export { createAdvancedClient, createClient } from '@scaleway/sdk-client'
49+
4750
/**
4851
* @deprecated Direct version exports are deprecated. Use the 'Account' namespace instead (e.g., Account.v1).
4952
*/

pnpm-lock.yaml

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/generateAlias.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,9 @@ for (const service of services) {
7272
}
7373
}
7474
appendFileSync(OUTPUT_PATH, importsOutput)
75+
appendFileSync(
76+
OUTPUT_PATH,
77+
"export { createClient, createAdvancedClient } from '@scaleway/sdk-client'\n\n",
78+
)
7579
appendFileSync(OUTPUT_PATH, output)
7680
console.log(`✅ File generated: ${OUTPUT_PATH}`)

0 commit comments

Comments
 (0)