Skip to content

Commit

Permalink
package.json improvements (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesopstad authored Dec 4, 2024
1 parent 66a00f9 commit c5667eb
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 16 deletions.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@vite-plugin-cloudflare/root",
"license": "MIT",
"private": true,
"description": "Monorepo for vite-plugin-cloudflare",
"type": "module",
"scripts": {
"check": "pnpm run check:types && pnpm run check:prettier",
Expand All @@ -27,5 +28,8 @@
"prettier-plugin-packagejson": "^2.5.3",
"vite": "catalog:default",
"vitest": "^2.1.3"
},
"engines": {
"pnpm": "^9.12.0"
}
}
1 change: 1 addition & 0 deletions packages/typescript-config/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "@vite-plugin-cloudflare/typescript-config",
"version": "0.0.0",
"private": true
}
25 changes: 21 additions & 4 deletions packages/vite-plugin-cloudflare/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{
"name": "@flarelabs-net/vite-plugin-cloudflare",
"version": "0.0.0",
"description": "Cloudflare plugin for Vite",
"keywords": [
"cloudflare",
"workers",
"cloudflare-workers",
"vite",
"vite-plugin"
],
"repository": {
"type": "git",
"url": "https://github.com/flarelabs-net/vite-plugin-cloudflare",
Expand All @@ -9,23 +17,32 @@
"license": "MIT",
"sideEffects": false,
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "tsup",
"check:types": "tsc --build",
"test": "vitest run --passWithNoTests",
"test": "vitest run",
"watch": "tsup --watch"
},
"dependencies": {
"@hattip/adapter-node": "^0.0.48",
"cjs-module-lexer": "^1.4.1",
"miniflare": "^3.20241106.0"
},
"devDependencies": {
"@cloudflare/workers-shared": "^0.7.0",
"@cloudflare/workers-types": "catalog:default",
"@types/node": "catalog:default",
"@vite-plugin-cloudflare/typescript-config": "workspace:*",
"magic-string": "^0.30.12",
"tsup": "^8.3.0",
"typescript": "catalog:default",
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-plugin-cloudflare/tsconfig.assets.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../typescript-config/worker.json",
"extends": "@vite-plugin-cloudflare/typescript-config/worker.json",
"include": ["src/assets"]
}
2 changes: 1 addition & 1 deletion packages/vite-plugin-cloudflare/tsconfig.plugin.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../typescript-config/base.json",
"extends": "@vite-plugin-cloudflare/typescript-config/base.json",
"include": ["src"],
"exclude": ["src/runner", "src/assets"]
}
2 changes: 1 addition & 1 deletion packages/vite-plugin-cloudflare/tsconfig.runner.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../typescript-config/worker.json",
"extends": "@vite-plugin-cloudflare/typescript-config/worker.json",
"include": ["src/runner"]
}
11 changes: 3 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c5667eb

Please sign in to comment.