UNPKG

@openfeature/core

Version:

Shared OpenFeature JS components (server and web)

50 lines (49 loc) 1.94 kB
{ "name": "@openfeature/core", "version": "1.8.1", "description": "Shared OpenFeature JS components (server and web)", "main": "./dist/cjs/index.js", "files": [ "dist/" ], "exports": { "types": "./dist/types.d.ts", "import": "./dist/esm/index.js", "require": "./dist/cjs/index.js", "default": "./dist/cjs/index.js" }, "types": "./dist/types.d.ts", "devDependencies": {}, "scripts": { "test": "jest --verbose", "lint": "eslint ./", "lint:fix": "eslint ./ --fix", "clean": "shx rm -rf ./dist", "type": "tsc --project ./tsconfig.json --declaration --emitDeclarationOnly", "build:esm": "esbuild src/index.ts --bundle --external:events --sourcemap --target=es2015 --format=esm --outfile=./dist/esm/index.js --analyze", "build:cjs": "esbuild src/index.ts --bundle --external:events --sourcemap --target=es2015 --format=cjs --outfile=./dist/cjs/index.js --analyze", "build:rollup-types": "rollup -c ../../rollup.config.mjs", "build": "npm run clean && npm run build:esm && npm run build:cjs && npm run build:rollup-types", "postbuild": "shx cp ./../../package.esm.json ./dist/esm/package.json", "current-version": "echo $npm_package_version", "prepack": "shx cp ./../../LICENSE ./LICENSE", "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", "version": "echo $npm_package_version" }, "repository": { "type": "git", "url": "git+https://github.com/open-feature/js-sdk.git" }, "author": "", "license": "Apache-2.0", "bugs": { "url": "https://github.com/open-feature/js-sdk/issues" }, "homepage": "https://github.com/open-feature/js-sdk#readme", "keywords": [ "openfeature", "feature", "flags", "toggles" ] }