modernize sw to target the same ES and TS standards as the rest of the app

This commit is contained in:
Hazelnoot 2025-10-05 23:58:08 -04:00
parent 7cbe8eb629
commit df1766e6b5
6 changed files with 66 additions and 49 deletions

View file

@ -4,18 +4,22 @@
"scripts": {
"watch": "nodemon -w ../../package.json -e json --exec \"node build.js watch\"",
"build": "node build.js",
"typecheck": "tsc --noEmit",
"eslint": "eslint --quiet \"{src,test,js,@types}/**/*.{js,jsx,ts,tsx,vue}\" --cache",
"typecheck-all": "pnpm run --no-bail typecheck:sw && pnpm run --no-bail typecheck:scripts",
"typecheck": "pnpm run typecheck:sw && pnpm run typecheck:scripts",
"typecheck:sw": "tsc -p tsconfig.sw.json --noEmit",
"typecheck:scripts": "tsc -p jsconfig.scripts.json --noEmit",
"eslint": "eslint --quiet --cache -c eslint.config.js",
"lint": "pnpm typecheck && pnpm eslint"
},
"dependencies": {
"esbuild": "0.25.10",
"idb-keyval": "6.2.2",
"misskey-js": "workspace:*"
},
"devDependencies": {
"@types/node": "22.18.1",
"@typescript-eslint/parser": "8.44.1",
"@typescript/lib-webworker": "npm:@types/serviceworker@0.0.153",
"esbuild": "0.25.10",
"eslint-plugin-import": "2.32.0",
"nodemon": "3.1.10",
"typescript": "5.9.2"