diff options
| author | 2023-10-05 16:06:19 +0200 | |
|---|---|---|
| committer | 2023-10-05 16:06:19 +0200 | |
| commit | d173fcdfa3ad6f6aee721c8553f25f4db38fa302 (patch) | |
| tree | 722cdaf93e090edcf83769ae763731008daf5fd3 /web/source/package.json | |
| parent | updates markdown parsing to reduce allocations in the same way as the plain t... (diff) | |
| download | gotosocial-d173fcdfa3ad6f6aee721c8553f25f4db38fa302.tar.xz | |
[chore] Convert some settings / admin panel JS to TypeScript (#2247)
* initial conversion of STUFF to typescript
* more stuff
* update babel deps, include commonjs transform
* update bundler & eslint configuration
* eslint --fix
* upgrade deps
* update docs, build stuff, peripheral stuff
---------
Co-authored-by: f0x <f0x@cthu.lu>
Diffstat (limited to 'web/source/package.json')
| -rw-r--r-- | web/source/package.json | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/web/source/package.json b/web/source/package.json index abdb46159..d3c1cbe2b 100644 --- a/web/source/package.json +++ b/web/source/package.json @@ -6,7 +6,7 @@ "author": "f0x", "license": "AGPL-3.0", "scripts": { - "lint": "eslint . --ext .js,.jsx", + "lint": "eslint . --ext .js,.jsx,.ts,.tsx", "build": "node index.js", "dev": "NODE_ENV=development node index.js" }, @@ -29,21 +29,25 @@ "psl": "^1.9.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "react-redux": "^8.0.4", + "react-redux": "^8.1.3", "redux": "^4.2.0", "redux-persist": "^6.0.0", - "skulk": "^0.0.6", + "skulk": "^0.0.8-fix", "split-filter-n": "^1.1.3", "syncpipe": "^1.0.0", "wouter": "^2.8.0-alpha.2" }, "devDependencies": { - "@babel/core": "^7.19.6", - "@babel/preset-env": "^7.19.4", - "@babel/preset-react": "^7.18.6", + "@babel/core": "^7.23.0", + "@babel/preset-env": "^7.22.20", + "@babel/preset-react": "^7.22.15", + "@babel/preset-typescript": "^7.23.0", "@browserify/envify": "^6.0.0", "@browserify/uglifyify": "^6.0.0", "@joepie91/eslint-config": "^1.1.1", + "@types/react-dom": "^18.2.8", + "@typescript-eslint/eslint-plugin": "^6.7.4", + "@typescript-eslint/parser": "^6.7.4", "autoprefixer": "^10.4.13", "babelify": "^10.0.0", "css-extract": "^2.0.0", @@ -56,6 +60,10 @@ "postcss": "^8.4.18", "postcss-custom-prop-vars": "^0.0.5", "postcss-import": "^15.0.0", - "postcss-nested": "^6.0.0" + "postcss-nested": "^6.0.0", + "source-map-loader": "^4.0.1", + "ts-loader": "^9.4.4", + "tsify": "^5.0.4", + "typescript": "^5.2.2" } } |
