Skip to content

Commit 7c1bc03

Browse files
committed
Use release-please to set version
1 parent dff0e69 commit 7c1bc03

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

packages/sdk/fastly/src/createPlatformInfo.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import { Info, PlatformData, SdkData } from '@launchdarkly/js-server-sdk-common';
22

3+
const name = '@launchdarkly/fastly-server-sdk';
4+
const version = '0.0.1'; // x-release-please-version
5+
36
class FastlyPlatformInfo implements Info {
47
platformData(): PlatformData {
58
return {
@@ -9,8 +12,8 @@ class FastlyPlatformInfo implements Info {
912

1013
sdkData(): SdkData {
1114
return {
12-
name: '@launchdarkly/fastly-server-sdk',
13-
version: '__LD_VERSION__',
15+
name,
16+
version,
1417
userAgentBase: 'FastlyEdgeSDK',
1518
};
1619
}

release-please-config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"type": "json",
3232
"path": "example/package.json",
3333
"jsonpath": "$.dependencies['@launchdarkly/fastly-server-sdk']"
34-
}
34+
},
35+
"src/createPlatformInfo.ts"
3536
]
3637
},
3738
"packages/sdk/react-native": {},

0 commit comments

Comments
 (0)