Skip to content

Commit 1349bee

Browse files
authored
fix: publish script, compilation error in tests (#643)
Signed-off-by: Todd Baert <[email protected]>
1 parent cbcb009 commit 1349bee

File tree

3 files changed

+5
-33
lines changed

3 files changed

+5
-33
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
"private": true,
55
"description": "OpenFeature SDK for JavaScript",
66
"scripts": {
7-
"test": "jest --selectProjects=server --selectProjects=shared --selectProjects=client --verbose",
7+
"test": "jest --selectProjects=shared --selectProjects=server --selectProjects=client --verbose",
88
"e2e-server": "git submodule update --init --recursive && shx cp test-harness/features/evaluation.feature packages/server/e2e/features && jest --selectProjects=server-e2e --verbose",
99
"e2e-client": "git submodule update --init --recursive && shx cp test-harness/features/evaluation.feature packages/client/e2e/features && jest --selectProjects=client-e2e --verbose",
1010
"e2e": "npm run e2e-server && npm run e2e-client",
1111
"lint": "npm run lint --workspace=packages/shared --workspace=packages/server --workspace=packages/client --workspace=packages/react",
1212
"clean": "shx rm -rf ./dist",
1313
"build": "npm run build --workspace=packages/shared --workspace=packages/server --workspace=packages/client --workspace=packages/react",
14-
"publish-all": "npm run publish-if-not-exists --workspace=packages/server --workspace=packages/client --workspace=packages/react",
14+
"publish-all": "npm run publish-if-not-exists --workspace=packages/shared --workspace=packages/server --workspace=packages/client --workspace=packages/react",
1515
"docs": "typedoc",
1616
"core-version": "npm run version --workspace=packages/shared",
1717
"update-core-peers": "export OPENFEATURE_CORE_VERSION=$(npm run --silent core-version) && npm run update-core-peer --workspace=packages/server --workspace=packages/client --workspace=packages/react"

packages/shared/README.md

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<!-- markdownlint-disable MD033 -->
2-
<!-- x-hide-in-docs-start -->
32
<p align="center">
43
<picture>
54
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/open-feature/community/0e23508c163a6a1ac8c0ced3e4bd78faafe627c7/assets/logo/horizontal/white/openfeature-horizontal-white.svg" />
@@ -9,37 +8,8 @@
98

109
<h2 align="center">Shared js components (server and web)</h2>
1110

12-
<!-- x-hide-in-docs-end -->
13-
<!-- The 'github-badges' class is used in the docs -->
14-
<p align="center" class="github-badges">
15-
<a href="https://github.com/open-feature/spec/tree/v0.7.0">
16-
<img alt="Specification" src="https://img.shields.io/static/v1?label=specification&message=v0.7.0&color=yellow&style=for-the-badge" />
17-
</a>
18-
<!-- x-release-please-start-version -->
19-
<a href="https://github.com/open-feature/js-sdk/releases/tag/server-sdk-v1.6.3">
20-
<img alt="Release" src="https://img.shields.io/static/v1?label=release&message=v1.6.3&color=blue&style=for-the-badge" />
21-
</a>
22-
<!-- x-release-please-end -->
23-
<br/>
24-
<a href="https://open-feature.github.io/js-sdk/modules/OpenFeature_Server_SDK.html">
25-
<img alt="API Reference" src="https://img.shields.io/badge/reference-teal?logo=javascript&logoColor=white" />
26-
</a>
27-
<a href="https://www.npmjs.com/package/@openfeature/server-sdk">
28-
<img alt="NPM Download" src="https://img.shields.io/npm/dm/%40openfeature%2Fserver-sdk" />
29-
</a>
30-
<a href="https://codecov.io/gh/open-feature/js-sdk">
31-
<img alt="codecov" src="https://codecov.io/gh/open-feature/js-sdk/branch/main/graph/badge.svg?token=3DC5XOEHMY" />
32-
</a>
33-
<a href="https://bestpractices.coreinfrastructure.org/projects/6594">
34-
<img alt="CII Best Practices" src="https://bestpractices.coreinfrastructure.org/projects/6594/badge" />
35-
</a>
36-
</p>
37-
<!-- x-hide-in-docs-start -->
38-
3911
[OpenFeature](https://openfeature.dev) is an open standard that provides a vendor-agnostic, community-driven API for feature flagging that works with your favorite feature flag management tool.
4012

41-
<!-- x-hide-in-docs-end -->
42-
4313
## 🔩 Shared JS components
4414

4515
> [!IMPORTANT]

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
// "rootDir": "./", /* Specify the root folder within your source files. */
2929
"moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
3030
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
31-
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
31+
"paths": {
32+
"@openfeature/core": [ "./packages/shared/src" ]
33+
}, /* Specify a set of entries that re-map imports to additional lookup locations. */
3234
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
3335
// "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */
3436
// "types": [], /* Specify type package names to be included without being referenced in a source file. */

0 commit comments

Comments
 (0)