Skip to content

Commit 813347a

Browse files
authored
fix(release): versioning client (#1948)
1 parent a7fe9c8 commit 813347a

File tree

5 files changed

+7
-35
lines changed

5 files changed

+7
-35
lines changed

packages/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"repository": {
2929
"type": "git",
3030
"url": "https://github.com/scaleway/scaleway-sdk-js",
31-
"directory": "packages/clients"
31+
"directory": "packages/client"
3232
},
3333
"engines": {
3434
"node": ">=18.0"
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
export const version = 'v2.71.0'
1+
import pkg from '../../package.json'
2+
3+
export const { version } = pkg
24

35
export const userAgent = `scaleway-sdk-js/${version}`

packages/clients/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"module": "dist/index.js",
1313
"types": "dist/index.d.ts",
1414
"scripts": {
15-
"version": "./scripts/update-constants-file.sh",
1615
"typecheck": "tsc --noEmit",
1716
"type:generate": "tsc --declaration -p tsconfig.build.json",
1817
"build": "vite build --config ../../vite.config.ts && pnpm run type:generate && tsc-alias -p tsconfig.build.json",

packages/clients/scripts/update-constants-file.sh

Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
export const version = 'v2.71.0'
1+
import pkg from '../../package.json'
2+
3+
export const { version } = pkg
24

35
export const userAgent = `scaleway-sdk-js/${version}`

0 commit comments

Comments
 (0)