|
1 | 1 | { |
2 | 2 | "name": "@splitsoftware/splitio", |
3 | | - "version": "10.28.1-rc.4", |
| 3 | + "version": "11.0.0-rc.5", |
4 | 4 | "description": "Split SDK", |
5 | 5 | "files": [ |
6 | 6 | "README.md", |
7 | 7 | "CONTRIBUTORS-GUIDE.md", |
8 | 8 | "LICENSE", |
9 | 9 | "CHANGES.txt", |
10 | | - "lib", |
| 10 | + "cjs", |
11 | 11 | "types", |
12 | | - "es", |
| 12 | + "esm", |
13 | 13 | "src", |
14 | | - "scripts/ga-to-split-autorequire.js", |
15 | 14 | "client", |
16 | 15 | "server" |
17 | 16 | ], |
|
32 | 31 | "sdk", |
33 | 32 | "javascript" |
34 | 33 | ], |
35 | | - "main": "lib/index.js", |
36 | | - "module": "es/index.js", |
| 34 | + "main": "cjs/index.js", |
| 35 | + "module": "esm/index.js", |
37 | 36 | "types": "types", |
38 | 37 | "engines": { |
39 | | - "npm": ">=3", |
40 | | - "node": ">=6" |
| 38 | + "node": ">=14.0.0" |
41 | 39 | }, |
42 | 40 | "dependencies": { |
43 | | - "@splitsoftware/splitio-commons": "1.17.1-rc.4", |
44 | | - "@types/google.analytics": "0.0.40", |
45 | | - "@types/ioredis": "^4.28.0", |
| 41 | + "@splitsoftware/splitio-commons": "2.0.0-rc.6", |
46 | 42 | "bloom-filters": "^3.0.0", |
47 | 43 | "ioredis": "^4.28.0", |
48 | 44 | "js-yaml": "^3.13.1", |
|
84 | 80 | "webpack-merge": "^5.8.0" |
85 | 81 | }, |
86 | 82 | "scripts": { |
87 | | - "build-esm": "rimraf es && tsc -outDir es", |
88 | | - "postbuild-esm": "cross-env NODE_ENV=es node scripts/copy.packages.json.js && ./scripts/build_esm_replace_imports.sh", |
| 83 | + "build-esm": "rimraf esm && tsc -outDir esm", |
| 84 | + "postbuild-esm": "cross-env NODE_ENV=esm node scripts/copy.packages.json.js && ./scripts/build_esm_replace_imports.sh", |
89 | 85 | "build-umd:stats": "webpack --progress --env production --json > ./stats/stat_results.json", |
90 | | - "build-cjs": "rimraf lib && tsc -outDir lib -m CommonJS", |
| 86 | + "build-cjs": "rimraf cjs && tsc -outDir cjs -m CommonJS", |
91 | 87 | "postbuild-cjs": "cross-env NODE_ENV=cjs node scripts/copy.packages.json.js && ./scripts/build_cjs_replace_imports.sh", |
92 | 88 | "build-umd": "rimraf umd && webpack --config webpack.dev.js --env branch=$BUILD_BRANCH && webpack --config webpack.prod.js --env branch=$BUILD_BRANCH && ./scripts/clean_umd_build.sh", |
93 | 89 | "build:npm": "npm run build-cjs && npm run build-esm", |
94 | | - "build:ga-to-split-autorequire": "terser ./node_modules/@splitsoftware/splitio-commons/src/integrations/ga/autoRequire.js --mangle --output ./scripts/ga-to-split-autorequire.js && cp ./scripts/ga-to-split-autorequire.js umd/ga-to-split-autorequire.js", |
95 | 90 | "build": "npm run build-cjs && npm run build-esm && npm run build-umd", |
96 | 91 | "check": "npm run check:lint && npm run check:version", |
97 | 92 | "check:lint": "eslint src", |
|
104 | 99 | "test-browser-e2e-destroy": "cross-env NODE_ENV=test karma start karma/e2e.destroy.karma.conf.js", |
105 | 100 | "test-browser-e2e-errorCatching": "cross-env NODE_ENV=test karma start karma/e2e.errorCatching.karma.conf.js", |
106 | 101 | "test-browser-e2e-push": "cross-env NODE_ENV=test karma start karma/e2e.push.karma.conf.js", |
107 | | - "test-browser-e2e-gaIntegration": "cross-env NODE_ENV=test karma start karma/e2e.gaIntegration.karma.conf.js", |
108 | 102 | "test-node": "npm run test-node-unit && npm run test-node-e2e", |
109 | 103 | "test-node-unit": "cross-env NODE_ENV=test tape -r ./ts-node.register \"src/*/**/__tests__/**/!(browser).spec.js\" | tap-min", |
110 | 104 | "test-node-e2e": "npm run test-node-e2e-online && npm run test-node-e2e-offline && npm run test-node-e2e-destroy && npm run test-node-e2e-errorCatching && npm run test-node-e2e-push && npm run test-node-e2e-redis", |
|
114 | 108 | "test-node-e2e-errorCatching": "cross-env NODE_ENV=test tape -r ./ts-node.register src/__tests__/errorCatching/node.spec.js | tap-min", |
115 | 109 | "test-node-e2e-push": "cross-env NODE_ENV=test tape -r ./ts-node.register src/__tests__/push/node.spec.js | tap-min", |
116 | 110 | "test-node-e2e-redis": "cross-env NODE_ENV=test tape -r ./ts-node.register src/__tests__/consumer/node_redis.spec.js | tap-min", |
117 | | - "pretest-ts-decls": "npm run build-esm && npm run build-cjs && npm link", |
118 | | - "test-ts-decls": "./scripts/ts-tests.sh", |
119 | | - "posttest-ts-decls": "npm rm --location=global @splitsoftware/splitio && npm install", |
| 111 | + "test-ts-decls": "tsc --build ts-tests", |
120 | 112 | "test": "npm run test-node && npm run test-browser", |
121 | 113 | "all": "npm run check && npm run build && npm run test-ts-decls && npm run test", |
122 | 114 | "publish:rc": "npm run check && npm run build && npm publish --tag canary", |
|
0 commit comments