Skip to content

Commit

Permalink
fix: Include name and version in platform.
Browse files Browse the repository at this point in the history
  • Loading branch information
kinyoklion committed Apr 29, 2024
1 parent 5bfeaba commit cbc1345
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 2 additions & 5 deletions packages/sdk/cloudflare/src/createPlatformInfo.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import type { Info, PlatformData, SdkData } from '@launchdarkly/js-server-sdk-common-edge';

// @ts-ignore
// eslint-disable-next-line prettier/prettier
import * as packageJson from '../package.json' assert { type: "json" }

const { name, version } = packageJson
const name = "@launchdarkly/cloudflare-server-sdk";

Check failure on line 3 in packages/sdk/cloudflare/src/createPlatformInfo.ts

View workflow job for this annotation

GitHub Actions / build-test-cloudflare

Replace `"@launchdarkly/cloudflare-server-sdk"` with `'@launchdarkly/cloudflare-server-sdk'`
const version = "2.5.3"; // x-release-please-version

Check failure on line 4 in packages/sdk/cloudflare/src/createPlatformInfo.ts

View workflow job for this annotation

GitHub Actions / build-test-cloudflare

Replace `"2.5.3"` with `'2.5.3'`

class CloudflarePlatformInfo implements Info {
platformData(): PlatformData {
Expand Down
3 changes: 2 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"type": "json",
"path": "jsr.json",
"jsonpath": "$.version"
}
},
"src/createPlatformInfo.ts"
]
},
"packages/sdk/react-native": {},
Expand Down

0 comments on commit cbc1345

Please sign in to comment.