Skip to content

Commit 39645d6

Browse files
committed
chore: update js sdk dependency to workspace ref
1 parent 62ef08d commit 39645d6

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

packages/node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
},
6060
"dependencies": {
6161
"eventsource": "^2.0.2",
62-
"featurehub-javascript-client-sdk": "^1.4.0"
62+
"featurehub-javascript-client-sdk": "workspace:*"
6363
},
6464
"engines": {
6565
"node": ">=20.0.0"

packages/node/tsconfig.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,24 @@
22
"$schema": "https://json.schemastore.org/tsconfig",
33
"extends": "featurehub-tsconfig/base.json",
44
"compilerOptions": {
5-
"module": "CommonJS",
6-
"moduleResolution": "node",
75
"declaration": true,
86
"declarationMap": true,
97
"emitDeclarationOnly": true,
108
"noEmitOnError": true,
119
"verbatimModuleSyntax": false,
12-
"types": ["node"]
10+
// TODO: Remove DOM here!! The Node SDK should not need DOM types. We need to define a core JS package
11+
"lib": ["ESNext", "DOM"],
12+
"types": ["node"],
13+
"paths": {
14+
"featurehub-javascript-client-sdk": ["../js/src"],
15+
/*
16+
This is a workaround to bypass Typescript checking of the cross-sha256 package.
17+
The author of the package improperly exported the source .ts file alongside the js file
18+
*/
19+
"cross-sha256": [
20+
"../../node_modules/.pnpm/[email protected]/node_modules/cross-sha256/index.d.ts"
21+
]
22+
}
1323
},
1424
"include": ["**/*.ts", "**/*.tsx"],
1525
"exclude": ["node_modules", "dist"]

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)