diff --git a/.changeset/sixty-bulldogs-change.md b/.changeset/sixty-bulldogs-change.md new file mode 100644 index 0000000..09c7c22 --- /dev/null +++ b/.changeset/sixty-bulldogs-change.md @@ -0,0 +1,5 @@ +--- +"@virtual-live-lab/tsconfig": patch +--- + +Add tsconfig for hono diff --git a/packages/tsconfig/hono.json b/packages/tsconfig/hono.json new file mode 100644 index 0000000..130a8d5 --- /dev/null +++ b/packages/tsconfig/hono.json @@ -0,0 +1,14 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig", + "display": "Hono", + "extends": "./base.json", + "compilerOptions": { + "target": "ESNext", + "module": "ESNext", + "moduleResolution": "Bundler", + "jsx": "react-jsx", + "jsxImportSource": "hono/jsx", + "lib": ["ESNext"], + "types": ["@cloudflare/workers-types"] + } +} diff --git a/packages/tsconfig/package.json b/packages/tsconfig/package.json index 5156e44..e2b178b 100644 --- a/packages/tsconfig/package.json +++ b/packages/tsconfig/package.json @@ -20,5 +20,8 @@ }, "bugs": { "url": "https://github.com/VirtualLiveLab/js-toolchain/issues" + }, + "devDependencies": { + "@cloudflare/workers-types": "^4.20240419.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5aadbaa..55dc89e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -123,7 +123,11 @@ importers: specifier: ^8.0.2 version: 8.0.2(postcss@8.4.38)(typescript@5.4.5) - packages/tsconfig: {} + packages/tsconfig: + devDependencies: + '@cloudflare/workers-types': + specifier: ^4.20240419.0 + version: 4.20240419.0 packages: @@ -368,6 +372,10 @@ packages: prettier: 2.8.8 dev: true + /@cloudflare/workers-types@4.20240419.0: + resolution: {integrity: sha512-UM16sr4HEe0mDj6C5OFcodzdj/CnEp0bfncAq3g7OpDsoZ1sBrfsMrb7Yc4f8J81EemvmQZyE6sSanpURtVkcQ==} + dev: true + /@csstools/css-parser-algorithms@2.6.1(@csstools/css-tokenizer@2.2.4): resolution: {integrity: sha512-ubEkAaTfVZa+WwGhs5jbo5Xfqpeaybr/RvWzvFxRs4jfq16wH8l8Ty/QEEpINxll4xhuGfdMbipRyz5QZh9+FA==} engines: {node: ^14 || ^16 || >=18}