|
12 | 12 | "sdk", |
13 | 13 | "bindings" |
14 | 14 | ], |
15 | | - "source": "src/index.ts", |
16 | | - "main": "dist/main.js", |
17 | | - "types": "dist/index.d.ts", |
| 15 | + "main": "lib/index.js", |
| 16 | + "types": "lib/index.d.ts", |
18 | 17 | "files": [ |
19 | 18 | "lib", |
20 | 19 | "src", |
|
24 | 23 | "scripts": { |
25 | 24 | "test": "jest", |
26 | 25 | "test:junit": "jest --ci --reporters=default --reporters=jest-junit", |
27 | | - "build": "parcel build", |
28 | | - "build:analyze": "parcel build --reporter @parcel/reporter-bundle-analyzer", |
| 26 | + "build": "rimraf lib/* && tsc && mv lib/src/* lib && rimraf lib/package.json lib/src lib/*.test.*", |
29 | 27 | "lint": "tslint -p tsconfig.json 'src/**/*.ts*'", |
30 | 28 | "lint:all": "npm run lint", |
31 | 29 | "check-typescript": "tsc", |
|
40 | 38 | }, |
41 | 39 | "homepage": "https://github.com/launchdarkly/react-client-sdk", |
42 | 40 | "devDependencies": { |
43 | | - "@parcel/packager-ts": "2.8.3", |
44 | | - "@parcel/reporter-bundle-analyzer": "^2.8.3", |
45 | | - "@parcel/transformer-typescript-types": "2.8.3", |
46 | 41 | "@testing-library/jest-dom": "^5.16.4", |
47 | 42 | "@testing-library/react": "^13.0.1", |
48 | 43 | "@types/hoist-non-react-statics": "^3.3.1", |
|
56 | 51 | "jest-environment-jsdom": "^27.4.4", |
57 | 52 | "jest-environment-jsdom-global": "^3.0.0", |
58 | 53 | "jest-junit": "^13.0.0", |
59 | | - "parcel": "^2.8.3", |
60 | 54 | "prettier": "^1.18.2", |
61 | 55 | "prop-types": "^15.7.2", |
| 56 | + "react": "^18.0.0", |
| 57 | + "react-dom": "^18.0.0", |
62 | 58 | "react-test-renderer": "^18.0.0", |
63 | 59 | "rimraf": "^3.0.0", |
64 | 60 | "ts-jest": "^27.1.1", |
|
68 | 64 | "typescript": "^4.5.3" |
69 | 65 | }, |
70 | 66 | "dependencies": { |
71 | | - "@swc/helpers": "^0.4.14", |
72 | 67 | "hoist-non-react-statics": "^3.3.2", |
73 | 68 | "launchdarkly-js-client-sdk": "^3.1.3", |
74 | 69 | "lodash.camelcase": "^4.3.0" |
75 | 70 | }, |
76 | 71 | "peerDependencies": { |
77 | 72 | "react": "^16.6.3 || ^17.0.0 || ^18.0.0", |
78 | 73 | "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 | | - } |
93 | 74 | } |
94 | 75 | } |
0 commit comments