@openfeature/react-sdk 0.0.1-experimental

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@openfeature/react-sdk",
3
+ "version": "0.0.1-experimental",
4
+ "description": "OpenFeature React SDK",
5
+ "main": "./dist/cjs/index.js",
6
+ "files": [
7
+ "dist/"
8
+ ],
9
+ "exports": {
10
+ "types": "./dist/types.d.ts",
11
+ "import": "./dist/esm/index.js",
12
+ "require": "./dist/cjs/index.js",
13
+ "default": "./dist/cjs/index.js"
14
+ },
15
+ "types": "./dist/types.d.ts",
16
+ "scripts": {
17
+ "test": "jest --verbose",
18
+ "lint": "eslint ./",
19
+ "clean": "shx rm -rf ./dist",
20
+ "build:react-esm": "esbuild src/index.ts --bundle --external:react --external:@openfeature/web-sdk --sourcemap --target=es2016 --platform=browser --format=esm --outfile=./dist/esm/index.js --analyze",
21
+ "build:react-cjs": "esbuild src/index.ts --bundle --external:react --external:@openfeature/web-sdk --sourcemap --target=es2016 --platform=browser --format=cjs --outfile=./dist/cjs/index.js --analyze",
22
+ "build:rollup-types": "rollup -c ../../rollup.config.mjs",
23
+ "build": "npm run clean && npm run build:react-esm && npm run build:react-cjs && npm run build:rollup-types",
24
+ "postbuild": "shx cp ./../../package.esm.json ./dist/esm/package.json",
25
+ "current-version": "echo $npm_package_version",
26
+ "prepack": "shx cp ./../../LICENSE ./LICENSE",
27
+ "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",
28
+ "docs": "typedoc"
29
+ },
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "git+https://github.com/open-feature/js-sdk.git"
33
+ },
34
+ "keywords": [
35
+ "openfeature",
36
+ "feature",
37
+ "flags",
38
+ "toggles",
39
+ "browser",
40
+ "web",
41
+ "react"
42
+ ],
43
+ "author": "",
44
+ "license": "Apache-2.0",
45
+ "bugs": {
46
+ "url": "https://github.com/open-feature/js-sdk/issues"
47
+ },
48
+ "homepage": "https://github.com/open-feature/js-sdk#readme",
49
+ "peerDependencies": {
50
+ "@openfeature/web-sdk": ">=0.4.0",
51
+ "react": ">=18.0.0"
52
+ },
53
+ "devDependencies": {
54
+ "@openfeature/web-sdk": "*"
55
+ },
56
+ "typedoc": {
57
+ "displayName": "OpenFeature React SDK",
58
+ "entryPoint": "./src/index.ts"
59
+ }
60
+ }