Skip to content

Commit

Permalink
chore: don't use workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe committed Jan 28, 2024
1 parent c7c9294 commit 952365a
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 579 deletions.
1 change: 1 addition & 0 deletions examples/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn.lock
10 changes: 7 additions & 3 deletions examples/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@
},
"private": true,
"devDependencies": {
"@hono/vite-cloudflare-pages": "^0.2.2",
"vite": "^5.0.12",
"wrangler": "^3.23.0"
},
"dependencies": {
"@hono/vite-cloudflare-pages": "^0.2.0",
"honox": "workspace:^"
"hono": "^3.12.8",
"honox": "^0.0.0"
},
"resolutions": {
"honox": "portal:../.."
}
}
}
2 changes: 1 addition & 1 deletion examples/basic/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import build from '@hono/vite-cloudflare-pages'
import honox from 'honox/vite'
import { defineConfig } from '../../node_modules/vite'
import { defineConfig } from 'vite'

export default defineConfig(({ mode }) => {
if (mode === 'client') {
Expand Down
6 changes: 5 additions & 1 deletion examples/mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
"wrangler": "^3.23.0"
},
"dependencies": {
"honox": "workspace:^"
"hono": "4.0.0-rc.3",
"honox": "^0.0.0"
},
"resolutions": {
"honox": "portal:../.."
}
}
2 changes: 1 addition & 1 deletion examples/mdx/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import mdx from '@mdx-js/rollup'
import honox from 'honox/vite'
import remarkFrontmatter from 'remark-frontmatter'
import remarkMdxFrontmatter from 'remark-mdx-frontmatter'
import { defineConfig } from '../../node_modules/vite'
import { defineConfig } from 'vite'

const entry = './app/server.ts'

Expand Down
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@
"access": "public"
},
"homepage": "https://hono.dev",
"workspaces": [
"examples/basic",
"examples/mdx"
],
"dependencies": {
"@babel/generator": "^7.23.6",
"@babel/parser": "^7.23.6",
Expand Down
Loading

0 comments on commit 952365a

Please sign in to comment.