Remove Worker TypeScript tooling

This commit is contained in:
Matt Isenhower
2026-08-30 19:56:22 -07:00
parent b85c990921
commit 8d157963f0
8 changed files with 4 additions and 55 deletions

View File

@@ -53,7 +53,7 @@ export default [
},
},
// Cloudflare types are generated from the Worker configuration.
// Cloudflare runtime types referenced by Worker JSDoc.
{
files: ['workers/**/*.js'],
rules: {

13
package-lock.json generated
View File

@@ -38,12 +38,10 @@
},
"devDependencies": {
"@cloudflare/vitest-plugin": "^1.1.2",
"@cloudflare/workers-types": "^5.20260830.1",
"@dword-design/eslint-plugin-import-alias": "^8.1.3",
"@eslint/js": "^10.0.1",
"@intlify/unplugin-vue-i18n": "^11.2.5",
"@tailwindcss/vite": "^4.3.3",
"@types/mustache": "^4.2.6",
"@vitejs/plugin-vue": "^6.0.8",
"eslint": "^10.9.1",
"eslint-plugin-jsdoc": "^63.3.3",
@@ -1562,7 +1560,9 @@
"resolved": "https://registry.npmjs.org/@cloudflare/workers-types/-/workers-types-5.20260831.1.tgz",
"integrity": "sha512-yXg4pwfYjhsDH9rYc3qZ3K+z62DCSvO/aj7GiZo6AyDeWGZpyFRpPMYcQ6LF/zfaf1x0Ngw2gSqL8JjuUtMGlA==",
"dev": true,
"license": "MIT OR Apache-2.0"
"license": "MIT OR Apache-2.0",
"optional": true,
"peer": true
},
"node_modules/@cspotcode/source-map-support": {
"version": "0.8.1",
@@ -5249,13 +5249,6 @@
"integrity": "sha512-jJ41Q4z6ZVO260MNDdHfW7+7a5iMiX8Mr6ZJHcmgrvhZha6dz5704o/lF2kKl6URjH6ivEL97w9xS/MgpJEphg==",
"license": "MIT"
},
"node_modules/@types/mustache": {
"version": "4.2.6",
"resolved": "https://registry.npmjs.org/@types/mustache/-/mustache-4.2.6.tgz",
"integrity": "sha512-t+8/QWTAhOFlrF1IVZqKnMRJi84EgkIK5Kh0p2JV4OLywUvCwJPFxbJAl7XAow7DVIHsF+xW9f1MVzg0L6Szjw==",
"dev": true,
"license": "MIT"
},
"node_modules/@types/node": {
"version": "26.4.0",
"resolved": "https://registry.npmjs.org/@types/node/-/node-26.4.0.tgz",

View File

@@ -6,8 +6,6 @@
"build": "vite build",
"assets-browser:dev": "wrangler dev --local --var LOCAL_DEVELOPMENT:true --persist-to .wrangler/state --cwd workers/assets-directory-browser",
"assets-browser:test": "vitest run --config workers/assets-directory-browser/vitest.config.mjs",
"assets-browser:types": "wrangler types --include-runtime false --cwd workers/assets-directory-browser",
"assets-browser:typecheck": "tsc --project workers/assets-directory-browser/tsconfig.json",
"assets-browser:dry-run": "wrangler deploy --dry-run --cwd workers/assets-directory-browser",
"preview": "vite preview --port 5050",
"lint": "eslint .",
@@ -70,12 +68,10 @@
},
"devDependencies": {
"@cloudflare/vitest-plugin": "^1.1.2",
"@cloudflare/workers-types": "^5.20260830.1",
"@dword-design/eslint-plugin-import-alias": "^8.1.3",
"@eslint/js": "^10.0.1",
"@intlify/unplugin-vue-i18n": "^11.2.5",
"@tailwindcss/vite": "^4.3.3",
"@types/mustache": "^4.2.6",
"@vitejs/plugin-vue": "^6.0.8",
"eslint": "^10.9.1",
"eslint-plugin-jsdoc": "^63.3.3",

View File

@@ -64,8 +64,6 @@ connects to the production bucket.
```sh
npm run assets-browser:test
npm run assets-browser:types
npm run assets-browser:typecheck
npm run assets-browser:dry-run
```

View File

@@ -1,3 +0,0 @@
interface Env {
LOCAL_DEVELOPMENT?: string;
}

View File

@@ -1,4 +0,0 @@
declare module '*.html' {
const template: string;
export default template;
}

View File

@@ -1,19 +0,0 @@
{
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"lib": ["ES2022"],
"module": "ESNext",
"moduleResolution": "Bundler",
"noEmit": true,
"strict": true,
"target": "ES2022",
"types": ["@cloudflare/workers-types"]
},
"include": [
"src/index.js",
"src/local-env.d.ts",
"src/template.d.ts",
"worker-configuration.d.ts"
]
}

View File

@@ -1,12 +0,0 @@
/* eslint-disable */
// Generated by Wrangler by running `wrangler types --include-runtime=false` (hash: ebbe4016149875d3bf7884f67316fd2a)
interface __BaseEnv_Env {
ASSETS: R2Bucket;
}
declare namespace Cloudflare {
interface GlobalProps {
mainModule: typeof import("./src/index");
}
interface Env extends __BaseEnv_Env {}
}
interface Env extends __BaseEnv_Env {}