|
8 | 8 | "unpkg": "umd/flow-editor.min.js",
|
9 | 9 | "author": "Weni <support@weni.ai>",
|
10 | 10 | "homepage": "./",
|
| 11 | + "engines": { |
| 12 | + "node": ">=18.0.0" |
| 13 | + }, |
11 | 14 | "files": [
|
12 | 15 | "build"
|
13 | 16 | ],
|
14 | 17 | "private": false,
|
15 | 18 | "dependencies": {
|
16 | 19 | "@material-symbols/font-400": "0.13.2",
|
17 |
| - "@weni/unnnic-system": "1.24.8", |
| 20 | + "@weni/unnnic-system": "2.0.2", |
18 | 21 | "react": "^16.8.6",
|
19 | 22 | "react-dom": "^16.8.6",
|
20 | 23 | "sms-length": "0.1.2",
|
21 |
| - "vuereact-combined": "1.2.11" |
| 24 | + "veaury": "2.3.18" |
22 | 25 | },
|
23 | 26 | "scripts": {
|
24 | 27 | "lambda:serve": "netlify-lambda serve lambda -p 6000",
|
25 | 28 | "lambda:build": "netlify-lambda build lambda",
|
26 |
| - "lambda": "yarn run lambda:build && yarn run lambda:serve", |
| 29 | + "lambda": "netlify functions:serve --functions lambda --port 6000", |
27 | 30 | "prettify": "prettier --write 'src/**/*.{ts,tsx,json,js,css,md}'",
|
28 | 31 | "netlify": "yarn run build && yarn run lambda:build",
|
29 | 32 | "precommit": "lint-staged",
|
|
32 | 35 | "version": "yarn run build && auto-changelog -p && git add CHANGELOG.md",
|
33 | 36 | "scan": "./node_modules/i18next-scanner/bin/cli.js",
|
34 | 37 | "dev": "yarn build && cp -Rf build/* ../rapidpro/node_modules/@weni/flow-editor/build/",
|
35 |
| - "start": "react-scripts start", |
36 |
| - "build": "react-scripts build", |
37 |
| - "test": "react-scripts test --env=jsdom-sixteen", |
38 |
| - "tester": "react-scripts test --env=jest-environment-happy-dom", |
39 |
| - "eject": "react-scripts eject", |
40 |
| - "lint": "eslint -c .eslintrc.json src/**/*.{ts,tsx,js} --fix" |
| 38 | + "start": "vite --port 3000", |
| 39 | + "build": "vite build", |
| 40 | + "test": "vitest", |
| 41 | + "lint": "eslint -c .eslintrc.json src/**/*.{ts,tsx,js} --fix", |
| 42 | + "build:vite": "tsc && vite build", |
| 43 | + "preview": "vite preview" |
41 | 44 | },
|
42 | 45 | "browserslist": {
|
43 | 46 | "production": [
|
|
76 | 79 | "@babel/preset-env": "^7.4.4",
|
77 | 80 | "@babel/preset-react": "7.0.0",
|
78 | 81 | "@nyaruka/temba-components": "0.18.1",
|
79 |
| - "@testing-library/jest-dom": "4.0.0", |
80 |
| - "@testing-library/react": "8.0.1", |
| 82 | + "@originjs/vite-plugin-commonjs": "1.0.3", |
| 83 | + "@testing-library/jest-dom": "6.4.5", |
| 84 | + "@testing-library/react": "12.1.5", |
81 | 85 | "@testing-library/user-event": "12.0.0",
|
82 | 86 | "@types/common-tags": "^1.8.0",
|
83 | 87 | "@types/core-js": "2.5.0",
|
84 | 88 | "@types/dateformat": "3.0.0",
|
85 | 89 | "@types/enzyme": "^3.9.3",
|
86 | 90 | "@types/enzyme-adapter-react-16": "^1.0.3",
|
87 |
| - "@types/jest": "24.0.13", |
88 |
| - "@types/react": "16.8.23", |
| 91 | + "@types/react": "16.14.1", |
89 | 92 | "@types/react-addons-shallow-compare": "0.14.22",
|
90 |
| - "@types/react-dom": "16.8.4", |
| 93 | + "@types/react-dom": "16.9.10", |
91 | 94 | "@types/react-modal": "^3.8.1",
|
92 | 95 | "@types/react-redux": "7.1.3",
|
93 | 96 | "@types/react-select": "3.0.8",
|
94 | 97 | "@types/redux-mock-store": "^1.0.0",
|
95 | 98 | "@types/textarea-caret": "3.0.0",
|
96 | 99 | "@types/uniqid": "^4.1.2",
|
97 | 100 | "@types/uuid": "^3.4.3",
|
98 |
| - "@types/webpack-env": "^1.13.6", |
99 |
| - "@typescript-eslint/eslint-plugin": "1.12.0", |
100 |
| - "@typescript-eslint/parser": "1.12.0", |
101 |
| - "@weni/eslint-config": "1.0.2", |
| 101 | + "@typescript-eslint/eslint-plugin": "5.62.0", |
| 102 | + "@typescript-eslint/parser": "5.62.0", |
| 103 | + "@vitejs/plugin-react": "4.2.1", |
| 104 | + "@vitejs/plugin-vue": "5.0.4", |
| 105 | + "@vitejs/plugin-vue-jsx": "3.1.0", |
| 106 | + "@vitest/coverage-v8": "1.6.0", |
| 107 | + "@weni/eslint-config": "1.0.4", |
102 | 108 | "ajv": "6.5.2",
|
103 | 109 | "array-move": "2.1.0",
|
104 | 110 | "auto-bind": "2.1.0",
|
|
113 | 119 | "enzyme-adapter-react-16": "^1.13.0",
|
114 | 120 | "enzyme-adapter-utils": "1.12.0",
|
115 | 121 | "enzyme-to-json": "^3.3.4",
|
116 |
| - "eslint-config-prettier": "6.0.0", |
| 122 | + "eslint": "8.57.0", |
| 123 | + "eslint-config-prettier": "9.1.0", |
117 | 124 | "eslint-config-react": "1.1.7",
|
118 |
| - "eslint-plugin-prettier": "3.1.0", |
| 125 | + "eslint-config-react-app": "7.0.1", |
| 126 | + "eslint-plugin-prettier": "4.2.1", |
119 | 127 | "fast-deep-equal": "2.0.1",
|
120 | 128 | "http-headers-validation": "0.0.1",
|
121 | 129 | "http-proxy-middleware": "0.19.1",
|
|
127 | 135 | "identity-obj-proxy": "3.0.0",
|
128 | 136 | "immutability-helper": "2.7.1",
|
129 | 137 | "jest-environment-jsdom-sixteen": "2.0.0",
|
| 138 | + "jsdom": "24.0.0", |
130 | 139 | "jsplumb": "file:jsplumb-2.13.1.tgz",
|
131 | 140 | "lint-staged": "8.1.7",
|
132 | 141 | "local-storage": "1.4.2",
|
133 | 142 | "lodash.clonedeep": "4.5.0",
|
134 | 143 | "material-symbols": "0.12.0",
|
135 | 144 | "moment": "2.24.0",
|
136 |
| - "netlify-lambda": "^1.4.9", |
| 145 | + "msw": "2.3.1", |
| 146 | + "netlify-cli": "17.23.1", |
137 | 147 | "panzoom": "9.4.3",
|
138 | 148 | "prettier": "1.18.2",
|
139 | 149 | "pretty-quick": "^1.11.0",
|
|
150 | 160 | "react-page-visibility": "3.2.1",
|
151 | 161 | "react-player": "1.9.3",
|
152 | 162 | "react-redux": "7.1.3",
|
153 |
| - "react-scripts": "^3.4.1", |
154 | 163 | "react-select": "3.0.8",
|
155 | 164 | "react-sortable-hoc": "1.9.1",
|
156 | 165 | "redux": "3.7.2",
|
157 | 166 | "redux-devtools-extension": "^2.13.5",
|
158 | 167 | "redux-mock-store": "1.5.3",
|
159 | 168 | "redux-thunk": "2.2.0",
|
160 | 169 | "resize-observer-polyfill": "1.5.1",
|
161 |
| - "sass": "1.32.13", |
| 170 | + "sass": "1.75.0", |
162 | 171 | "sha1": "1.1.1",
|
163 | 172 | "shx": "0.3.2",
|
164 | 173 | "sign-bunny": "1.0.0",
|
|
167 | 176 | "tslint": "5.17.0",
|
168 | 177 | "tslint-config-prettier": "1.18.0",
|
169 | 178 | "tslint-plugin-prettier": "2.0.1",
|
170 |
| - "typescript": "3.4.5", |
| 179 | + "typescript": "3.9", |
171 | 180 | "uniqid": "5.0.3",
|
172 |
| - "uuid": "3.3.2" |
| 181 | + "uuid": "3.3.2", |
| 182 | + "vite": "4.5.3", |
| 183 | + "vite-plugin-eslint": "1.8.1", |
| 184 | + "vite-tsconfig-paths": "4.2.1", |
| 185 | + "vitest": "1.6.0" |
| 186 | + }, |
| 187 | + "resolutions": { |
| 188 | + "@types/react": "16.8.25", |
| 189 | + "typescript": "3.9" |
173 | 190 | }
|
174 | 191 | }
|
0 commit comments