Skip to content

Commit df4e72e

Browse files
authored
chore: move client/ dir to web/ (#991)
I've been meaning to do this for a while... it just renames the `client/` dir to `web/`. I think this is better because there will be less confusion around the OpenFeature client object (which has it's own dirs) and because it's more consistent with the associated artifact name "web-sdk". Signed-off-by: Todd Baert <[email protected]>
1 parent d9d5a3d commit df4e72e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+27
-27
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"packages/nest": "0.2.1-experimental",
33
"packages/react": "0.4.3",
4-
"packages/client": "1.2.2",
4+
"packages/web": "1.2.2",
55
"packages/server": "1.15.0",
66
"packages/shared": "1.3.0"
77
}

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions

README.md

Lines changed: 2 additions & 2 deletions

jest.config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ export default {
124124
},
125125
},
126126
{
127-
displayName: 'client',
127+
displayName: 'web',
128128
testEnvironment: 'node',
129129
preset: 'ts-jest',
130-
testMatch: ['<rootDir>/packages/client/test/**/*.spec.ts'],
130+
testMatch: ['<rootDir>/packages/web/test/**/*.spec.ts'],
131131
moduleNameMapper: {
132132
'@openfeature/core': '<rootDir>/packages/shared/src',
133133
},
@@ -143,10 +143,10 @@ export default {
143143
},
144144
},
145145
{
146-
displayName: 'client-e2e',
146+
displayName: 'web-e2e',
147147
testEnvironment: 'node',
148148
preset: 'ts-jest',
149-
testMatch: ['<rootDir>/packages/client/e2e/**/*.spec.ts'],
149+
testMatch: ['<rootDir>/packages/web/e2e/**/*.spec.ts'],
150150
modulePathIgnorePatterns: ['.*/node-modules/'],
151151
moduleNameMapper: {
152152
'^uuid$': require.resolve('uuid'),
@@ -178,7 +178,7 @@ export default {
178178
testMatch: ['<rootDir>/packages/react/test/**/*.spec.{ts,tsx}'],
179179
moduleNameMapper: {
180180
'@openfeature/core': '<rootDir>/packages/shared/src',
181-
'@openfeature/web-sdk': '<rootDir>/packages/client/src',
181+
'@openfeature/web-sdk': '<rootDir>/packages/web/src',
182182
},
183183
transform: {
184184
'^.+\\.(ts|tsx)$': [

package-lock.json

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

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
"private": true,
55
"description": "OpenFeature SDK for JavaScript",
66
"scripts": {
7-
"test": "jest --selectProjects=shared --selectProjects=server --selectProjects=client --selectProjects=react --silent",
7+
"test": "jest --selectProjects=shared --selectProjects=server --selectProjects=web --selectProjects=react --silent",
88
"e2e-server": "git submodule update --init --recursive && shx cp test-harness/features/evaluation.feature packages/server/e2e/features && jest --selectProjects=server-e2e --verbose",
9-
"e2e-client": "git submodule update --init --recursive && shx cp test-harness/features/evaluation.feature packages/client/e2e/features && jest --selectProjects=client-e2e --verbose",
10-
"e2e": "npm run e2e-server && npm run e2e-client",
11-
"lint": "npm run lint --workspace=packages/shared --workspace=packages/server --workspace=packages/client --workspace=packages/react --workspace=packages/nest",
9+
"e2e-web": "git submodule update --init --recursive && shx cp test-harness/features/evaluation.feature packages/web/e2e/features && jest --selectProjects=web-e2e --verbose",
10+
"e2e": "npm run e2e-server && npm run e2e-web",
11+
"lint": "npm run lint --workspace=packages/shared --workspace=packages/server --workspace=packages/web --workspace=packages/react --workspace=packages/nest",
1212
"clean": "shx rm -rf ./dist",
13-
"build": "npm run build --workspace=packages/shared --workspace=packages/server --workspace=packages/client --workspace=packages/react --workspace=packages/nest",
14-
"publish-all": "npm run publish-if-not-exists --workspace=packages/shared --workspace=packages/server --workspace=packages/client --workspace=packages/react --workspace=packages/nest",
13+
"build": "npm run build --workspace=packages/shared --workspace=packages/server --workspace=packages/web --workspace=packages/react --workspace=packages/nest",
14+
"publish-all": "npm run publish-if-not-exists --workspace=packages/shared --workspace=packages/server --workspace=packages/web --workspace=packages/react --workspace=packages/nest",
1515
"docs": "typedoc",
1616
"core-version": "npm run version --workspace=packages/shared",
17-
"update-core-peers": "export OPENFEATURE_CORE_VERSION=$(npm run --silent core-version) && npm run update-core-peer --workspace=packages/server --workspace=packages/client"
17+
"update-core-peers": "export OPENFEATURE_CORE_VERSION=$(npm run --silent core-version) && npm run update-core-peer --workspace=packages/server --workspace=packages/web"
1818
},
1919
"repository": {
2020
"type": "git",
@@ -74,7 +74,7 @@
7474
"workspaces": [
7575
"packages/shared",
7676
"packages/server",
77-
"packages/client",
77+
"packages/web",
7878
"packages/react",
7979
"packages/nest"
8080
]

packages/react/README.md

Lines changed: 1 addition & 1 deletion

packages/react/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
3232
"paths": {
3333
"@openfeature/core": [ "../shared/src" ],
34-
"@openfeature/web-sdk": [ "../client/src" ]
34+
"@openfeature/web-sdk": [ "../web/src" ]
3535
}, /* Specify a set of entries that re-map imports to additional lookup locations. */
3636
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
3737
// "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */

0 commit comments

Comments
 (0)