Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use yarn classic #16

Merged
merged 2 commits into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
893 changes: 0 additions & 893 deletions .yarn/releases/yarn-4.0.2.cjs

This file was deleted.

147,529 changes: 147,529 additions & 0 deletions .yarn/releases/yarn-classic.cjs

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
yarnPath: .yarn/releases/yarn-4.0.2.cjs
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-classic.cjs
2 changes: 1 addition & 1 deletion examples/basic/app/client.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { createClient } from 'honox/client'
import { createClient } from '../../../src/client'

createClient()
2 changes: 1 addition & 1 deletion examples/basic/app/routes/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createRoute } from 'honox/factory'
import { createRoute } from '../../../../src/factory'
import Counter from '../islands/counter'

export default createRoute((c) => {
Expand Down
2 changes: 1 addition & 1 deletion examples/basic/app/server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { showRoutes } from 'hono/dev'
import { createApp } from 'honox/server'
import { createApp } from '../../../src/server'

const app = createApp()

Expand Down
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 honox from '../../src/vite'

export default defineConfig(({ mode }) => {
if (mode === 'client') {
Expand Down
2 changes: 1 addition & 1 deletion examples/mdx/app/server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { showRoutes } from 'hono/dev'
import { createApp } from 'honox/server'
import { createApp } from '../../../src/server'

const app = createApp()

Expand Down
5 changes: 1 addition & 4 deletions examples/mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,5 @@
"remark-mdx-frontmatter": "^4.0.0",
"vite": "^5.0.12",
"wrangler": "^3.23.0"
},
"dependencies": {
"honox": "workspace:^"
}
}
}
2 changes: 1 addition & 1 deletion examples/mdx/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import devServer from '@hono/vite-dev-server'
import ssg from '@hono/vite-ssg'
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 honox from '../../src/vite'

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

Expand Down
12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"lint": "eslint src/**.ts",
"lint:fix": "eslint src/**.ts --fix",
"prerelease": "yarn test && yarn build",
"release": "np --no-yarn"
"release": "np"
},
"files": [
"dist"
Expand Down Expand Up @@ -84,21 +84,17 @@
"access": "public"
},
"homepage": "https://hono.dev",
"workspaces": [
"examples/basic",
"examples/mdx"
],
"dependencies": {
"@babel/generator": "^7.23.6",
"@babel/parser": "^7.23.6",
"@babel/traverse": "^7.23.6",
"@babel/types": "^7.23.6",
"@hono/vite-dev-server": "^0.3.5"
"@hono/vite-dev-server": "^0.4.0"
},
"devDependencies": {
"@hono/eslint-config": "^0.0.3",
"@mdx-js/rollup": "^3.0.0",
"@playwright/test": "^1.41.0",
"@playwright/test": "^1.41.1",
"@types/babel__generator": "^7",
"@types/babel__traverse": "^7",
"@types/node": "^20.10.5",
Expand All @@ -117,4 +113,4 @@
"engines": {
"node": ">=18.14.1"
}
}
}
2 changes: 1 addition & 1 deletion test/hono-jsx/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default defineConfig({
},
],
webServer: {
command: 'yarn vite --port 6173 -c ./vite.config.ts',
command: 'yarn vite --port 6173 -c ./test/hono-jsx/vite.config.ts',
port: 6173,
reuseExistingServer: !process.env.CI,
},
Expand Down
3 changes: 2 additions & 1 deletion test/hono-jsx/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ import { defineConfig } from 'vite'
import honox from '../../src/vite'

export default defineConfig({
root: './test/hono-jsx',
plugins: [
honox({
entry: './app/server.ts',
entry: '/app/server.ts',
}),
mdx({
jsxImportSource: 'hono/jsx',
Expand Down
Loading