Skip to content

Commit 0446eab

Browse files
toddbaertbeeme1mr
andauthored
fix: packaging issues impacting babel/react (#596)
Signed-off-by: Todd Baert <[email protected]> Signed-off-by: Michael Beemer <[email protected]> Co-authored-by: Michael Beemer <[email protected]>
1 parent f4d7b8d commit 0446eab

39 files changed

+913
-362
lines changed

libs/hooks/open-telemetry/project.json

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"targets": {
77
"package": {
88
"executor": "@nx/rollup:rollup",
9-
"outputs": ["{options.outputPath}"],
9+
"outputs": [
10+
"{options.outputPath}"
11+
],
1012
"options": {
1113
"project": "libs/hooks/open-telemetry/package.json",
1214
"outputPath": "dist/libs/hooks/open-telemetry",
@@ -16,7 +18,10 @@
1618
"generateExportsField": true,
1719
"umdName": "OpenTelemetry",
1820
"external": "all",
19-
"format": ["cjs", "esm"],
21+
"format": [
22+
"cjs",
23+
"esm"
24+
],
2025
"assets": [
2126
{
2227
"glob": "package.json",
@@ -39,12 +44,16 @@
3944
},
4045
"build": {
4146
"executor": "@nx/js:tsc",
42-
"outputs": ["{options.outputPath}"],
47+
"outputs": [
48+
"{options.outputPath}"
49+
],
4350
"options": {
4451
"outputPath": "dist/libs/hooks/open-telemetry",
4552
"main": "libs/hooks/open-telemetry/src/index.ts",
4653
"tsConfig": "libs/hooks/open-telemetry/tsconfig.lib.json",
47-
"assets": ["libs/hooks/open-telemetry/*.md"],
54+
"assets": [
55+
"libs/hooks/open-telemetry/*.md"
56+
],
4857
"updateBuildableProjectDepsInPackageJson": true
4958
}
5059
},
@@ -62,14 +71,20 @@
6271
},
6372
"lint": {
6473
"executor": "@nx/linter:eslint",
65-
"outputs": ["{options.outputFile}"],
74+
"outputs": [
75+
"{options.outputFile}"
76+
],
6677
"options": {
67-
"lintFilePatterns": ["libs/hooks/open-telemetry/**/*.ts"]
78+
"lintFilePatterns": [
79+
"libs/hooks/open-telemetry/**/*.ts"
80+
]
6881
}
6982
},
7083
"test": {
7184
"executor": "@nx/jest:jest",
72-
"outputs": ["coverage/libs/hooks/open-telemetry"],
85+
"outputs": [
86+
"{workspaceRoot}/coverage/libs/hooks/open-telemetry"
87+
],
7388
"options": {
7489
"jestConfig": "libs/hooks/open-telemetry/jest.config.ts",
7590
"passWithNoTests": true,

libs/providers/config-cat/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "@openfeature/config-cat-provider",
33
"version": "0.3.0",
4-
"type": "commonjs",
54
"scripts": {
65
"publish-if-not-exists": "cp $NPM_CONFIG_USERCONFIG .npmrc && if [ \"$(npm show $npm_package_name@$npm_package_version version)\" = \"$(npm run current-version -s)\" ]; then echo 'already published, skipping'; else npm publish --access public; fi",
76
"current-version": "echo $npm_package_version"

libs/providers/config-cat/project.json

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,20 @@
1818
},
1919
"lint": {
2020
"executor": "@nx/linter:eslint",
21-
"outputs": ["{options.outputFile}"],
21+
"outputs": [
22+
"{options.outputFile}"
23+
],
2224
"options": {
23-
"lintFilePatterns": ["libs/providers/config-cat/**/*.ts"]
25+
"lintFilePatterns": [
26+
"libs/providers/config-cat/**/*.ts"
27+
]
2428
}
2529
},
2630
"test": {
2731
"executor": "@nx/jest:jest",
28-
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
32+
"outputs": [
33+
"{workspaceRoot}/coverage/{projectRoot}"
34+
],
2935
"options": {
3036
"jestConfig": "libs/providers/config-cat/jest.config.ts",
3137
"passWithNoTests": true
@@ -39,7 +45,9 @@
3945
},
4046
"package": {
4147
"executor": "@nx/rollup:rollup",
42-
"outputs": ["{options.outputPath}"],
48+
"outputs": [
49+
"{options.outputPath}"
50+
],
4351
"options": {
4452
"project": "libs/providers/config-cat/package.json",
4553
"outputPath": "dist/libs/providers/config-cat",
@@ -50,7 +58,10 @@
5058
"generateExportsField": true,
5159
"umdName": "config-cat",
5260
"external": "all",
53-
"format": ["cjs", "esm"],
61+
"format": [
62+
"cjs",
63+
"esm"
64+
],
5465
"assets": [
5566
{
5667
"glob": "package.json",

libs/providers/env-var/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "@openfeature/env-var-provider",
33
"version": "0.1.1",
4-
"type": "commonjs",
54
"scripts": {
65
"publish-if-not-exists": "cp $NPM_CONFIG_USERCONFIG .npmrc && if [ \"$(npm show $npm_package_name@$npm_package_version version)\" = \"$(npm run current-version -s)\" ]; then echo 'already published, skipping'; else npm publish --access public; fi",
76
"current-version": "echo $npm_package_version"

libs/providers/env-var/project.json

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,20 @@
1818
},
1919
"lint": {
2020
"executor": "@nx/linter:eslint",
21-
"outputs": ["{options.outputFile}"],
21+
"outputs": [
22+
"{options.outputFile}"
23+
],
2224
"options": {
23-
"lintFilePatterns": ["libs/providers/env-var/**/*.ts"]
25+
"lintFilePatterns": [
26+
"libs/providers/env-var/**/*.ts"
27+
]
2428
}
2529
},
2630
"test": {
2731
"executor": "@nx/jest:jest",
28-
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
32+
"outputs": [
33+
"{workspaceRoot}/coverage/{projectRoot}"
34+
],
2935
"options": {
3036
"jestConfig": "libs/providers/env-var/jest.config.ts",
3137
"passWithNoTests": true
@@ -39,7 +45,9 @@
3945
},
4046
"package": {
4147
"executor": "@nx/rollup:rollup",
42-
"outputs": ["{options.outputPath}"],
48+
"outputs": [
49+
"{options.outputPath}"
50+
],
4351
"options": {
4452
"project": "libs/providers/env-var/package.json",
4553
"outputPath": "dist/libs/providers/env-var",
@@ -50,7 +58,10 @@
5058
"generateExportsField": true,
5159
"umdName": "Env Var",
5260
"external": "all",
53-
"format": ["cjs", "esm"],
61+
"format": [
62+
"cjs",
63+
"esm"
64+
],
5465
"assets": [
5566
{
5667
"glob": "package.json",

libs/providers/flagd-web/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "@openfeature/flagd-web-provider",
33
"version": "0.4.0",
4-
"type": "commonjs",
54
"scripts": {
65
"publish-if-not-exists": "cp $NPM_CONFIG_USERCONFIG .npmrc && if [ \"$(npm show $npm_package_name@$npm_package_version version)\" = \"$(npm run current-version -s)\" ]; then echo 'already published, skipping'; else npm publish --access public; fi",
76
"current-version": "echo $npm_package_version"

libs/providers/flagd-web/project.json

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,13 @@
3131
},
3232
"lint": {
3333
"executor": "@nx/linter:eslint",
34-
"outputs": ["{options.outputFile}"],
34+
"outputs": [
35+
"{options.outputFile}"
36+
],
3537
"options": {
36-
"lintFilePatterns": ["libs/providers/flagd-web/**/*.ts"]
38+
"lintFilePatterns": [
39+
"libs/providers/flagd-web/**/*.ts"
40+
]
3741
},
3842
"dependsOn": [
3943
{
@@ -43,7 +47,9 @@
4347
},
4448
"test": {
4549
"executor": "@nx/jest:jest",
46-
"outputs": ["coverage/libs/providers/flagd-web"],
50+
"outputs": [
51+
"{workspaceRoot}/coverage/libs/providers/flagd-web"
52+
],
4753
"options": {
4854
"jestConfig": "libs/providers/flagd-web/jest.config.ts",
4955
"passWithNoTests": true
@@ -86,7 +92,9 @@
8692
},
8793
"package": {
8894
"executor": "@nx/rollup:rollup",
89-
"outputs": ["{options.outputPath}"],
95+
"outputs": [
96+
"{options.outputPath}"
97+
],
9098
"options": {
9199
"project": "libs/providers/flagd-web/package.json",
92100
"outputPath": "dist/libs/providers/flagd-web",
@@ -97,7 +105,10 @@
97105
"buildableProjectDepsInPackageJsonType": "dependencies",
98106
"umdName": "flagd-web",
99107
"external": "all",
100-
"format": ["cjs", "esm"],
108+
"format": [
109+
"cjs",
110+
"esm"
111+
],
101112
"assets": [
102113
{
103114
"glob": "package.json",

libs/providers/flagd/project.json

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,13 @@
3131
},
3232
"lint": {
3333
"executor": "@nx/linter:eslint",
34-
"outputs": ["{options.outputFile}"],
34+
"outputs": [
35+
"{options.outputFile}"
36+
],
3537
"options": {
36-
"lintFilePatterns": ["libs/providers/flagd/**/*.ts"]
38+
"lintFilePatterns": [
39+
"libs/providers/flagd/**/*.ts"
40+
]
3741
},
3842
"dependsOn": [
3943
{
@@ -43,7 +47,9 @@
4347
},
4448
"test": {
4549
"executor": "@nx/jest:jest",
46-
"outputs": ["coverage/libs/providers/flagd"],
50+
"outputs": [
51+
"{workspaceRoot}/coverage/libs/providers/flagd"
52+
],
4753
"options": {
4854
"jestConfig": "libs/providers/flagd/jest.config.ts",
4955
"passWithNoTests": true
@@ -86,7 +92,9 @@
8692
},
8793
"package": {
8894
"executor": "@nx/rollup:rollup",
89-
"outputs": ["{options.outputPath}"],
95+
"outputs": [
96+
"{options.outputPath}"
97+
],
9098
"options": {
9199
"project": "libs/providers/flagd/package.json",
92100
"outputPath": "dist/libs/providers/flagd",
@@ -97,7 +105,10 @@
97105
"buildableProjectDepsInPackageJsonType": "dependencies",
98106
"umdName": "flagd",
99107
"external": "all",
100-
"format": ["cjs", "esm"],
108+
"format": [
109+
"cjs",
110+
"esm"
111+
],
101112
"assets": [
102113
{
103114
"glob": "package.json",

libs/providers/flagd/src/lib/flagd-provider.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ export class FlagdProvider implements Provider {
1717
name: 'flagd Provider',
1818
};
1919

20+
readonly runsOn = 'server';
21+
2022
get status() {
2123
return this._status;
2224
}
@@ -31,7 +33,7 @@ export class FlagdProvider implements Provider {
3133

3234
/**
3335
* Construct a new flagd provider.
34-
*
36+
*
3537
* @param options options, see {@link FlagdProviderOptions}
3638
* @param logger optional logger, see {@link Logger}
3739
* @param service optional internal service implementation, should not be needed for production

libs/providers/go-feature-flag-web/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "@openfeature/go-feature-flag-web-provider",
33
"version": "0.1.3",
4-
"type": "commonjs",
54
"scripts": {
65
"publish-if-not-exists": "cp $NPM_CONFIG_USERCONFIG .npmrc && if [ \"$(npm show $npm_package_name@$npm_package_version version)\" = \"$(npm run current-version -s)\" ]; then echo 'already published, skipping'; else npm publish --access public; fi",
76
"current-version": "echo $npm_package_version"

libs/providers/go-feature-flag-web/project.json

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,26 @@
1212
},
1313
"dependsOn": [
1414
{
15-
"projects": "self",
1615
"target": "package"
1716
}
1817
]
1918
},
2019
"lint": {
2120
"executor": "@nx/linter:eslint",
22-
"outputs": ["{options.outputFile}"],
21+
"outputs": [
22+
"{options.outputFile}"
23+
],
2324
"options": {
24-
"lintFilePatterns": ["libs/providers/go-feature-flag-web/**/*.ts"]
25+
"lintFilePatterns": [
26+
"libs/providers/go-feature-flag-web/**/*.ts"
27+
]
2528
}
2629
},
2730
"test": {
2831
"executor": "@nx/jest:jest",
29-
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
32+
"outputs": [
33+
"{workspaceRoot}/coverage/{projectRoot}"
34+
],
3035
"options": {
3136
"jestConfig": "libs/providers/go-feature-flag-web/jest.config.ts",
3237
"passWithNoTests": true
@@ -40,7 +45,9 @@
4045
},
4146
"package": {
4247
"executor": "@nx/rollup:rollup",
43-
"outputs": ["{options.outputPath}"],
48+
"outputs": [
49+
"{options.outputPath}"
50+
],
4451
"options": {
4552
"project": "libs/providers/go-feature-flag-web/package.json",
4653
"outputPath": "dist/libs/providers/go-feature-flag-web",
@@ -51,7 +58,10 @@
5158
"generateExportsField": true,
5259
"umdName": "go-feature-flag-web",
5360
"external": "all",
54-
"format": ["cjs", "esm"],
61+
"format": [
62+
"cjs",
63+
"esm"
64+
],
5565
"assets": [
5666
{
5767
"glob": "package.json",

0 commit comments

Comments
 (0)