|
1 | 1 | { |
2 | 2 | "name": "launchdarkly-react-client-sdk", |
3 | | - "version": "3.0.4", |
| 3 | + "version": "3.0.5", |
4 | 4 | "description": "LaunchDarkly SDK for React", |
5 | 5 | "author": "LaunchDarkly <[email protected]>", |
6 | 6 | "license": "Apache-2.0", |
|
12 | 12 | "sdk", |
13 | 13 | "bindings" |
14 | 14 | ], |
15 | | - "main": "lib/index.js", |
16 | | - "types": "lib/index.d.ts", |
| 15 | + "source": "src/index.ts", |
| 16 | + "main": "dist/main.js", |
| 17 | + "types": "dist/index.d.ts", |
17 | 18 | "files": [ |
18 | 19 | "lib", |
19 | 20 | "src", |
|
23 | 24 | "scripts": { |
24 | 25 | "test": "jest", |
25 | 26 | "test:junit": "jest --ci --reporters=default --reporters=jest-junit", |
26 | | - "build": "rimraf lib/* && tsc && mv lib/src/* lib && rimraf lib/package.json lib/src lib/*.test.*", |
| 27 | + "build": "parcel build", |
| 28 | + "build:analyze": "parcel build --reporter @parcel/reporter-bundle-analyzer", |
27 | 29 | "lint": "tslint -p tsconfig.json 'src/**/*.ts*'", |
28 | 30 | "lint:all": "npm run lint", |
29 | 31 | "check-typescript": "tsc", |
|
38 | 40 | }, |
39 | 41 | "homepage": "https://github.com/launchdarkly/react-client-sdk", |
40 | 42 | "devDependencies": { |
| 43 | + "@parcel/packager-ts": "2.8.3", |
| 44 | + "@parcel/reporter-bundle-analyzer": "^2.8.3", |
| 45 | + "@parcel/transformer-typescript-types": "2.8.3", |
41 | 46 | "@testing-library/jest-dom": "^5.16.4", |
42 | 47 | "@testing-library/react": "^13.0.1", |
43 | 48 | "@types/hoist-non-react-statics": "^3.3.1", |
|
51 | 56 | "jest-environment-jsdom": "^27.4.4", |
52 | 57 | "jest-environment-jsdom-global": "^3.0.0", |
53 | 58 | "jest-junit": "^13.0.0", |
| 59 | + "parcel": "^2.8.3", |
54 | 60 | "prettier": "^1.18.2", |
55 | 61 | "prop-types": "^15.7.2", |
56 | | - "react": "^18.0.0", |
57 | | - "react-dom": "^18.0.0", |
58 | 62 | "react-test-renderer": "^18.0.0", |
59 | 63 | "rimraf": "^3.0.0", |
60 | 64 | "ts-jest": "^27.1.1", |
|
64 | 68 | "typescript": "^4.5.3" |
65 | 69 | }, |
66 | 70 | "dependencies": { |
| 71 | + "@swc/helpers": "^0.4.14", |
67 | 72 | "hoist-non-react-statics": "^3.3.2", |
68 | 73 | "launchdarkly-js-client-sdk": "^3.1.3", |
69 | 74 | "lodash.camelcase": "^4.3.0" |
70 | 75 | }, |
71 | 76 | "peerDependencies": { |
72 | 77 | "react": "^16.6.3 || ^17.0.0 || ^18.0.0", |
73 | 78 | "react-dom": "^16.8.4 || ^17.0.0 || ^18.0.0" |
| 79 | + }, |
| 80 | + "targets": { |
| 81 | + "main": { |
| 82 | + "context": "browser", |
| 83 | + "outputFormat": "commonjs", |
| 84 | + "isLibrary": true, |
| 85 | + "optimize": true, |
| 86 | + "engines": { |
| 87 | + "browsers": [ |
| 88 | + "> 0.5%, last 2 versions, not dead", |
| 89 | + "ie >= 11" |
| 90 | + ] |
| 91 | + } |
| 92 | + } |
74 | 93 | } |
75 | 94 | } |
0 commit comments