Skip to content

Commit

Permalink
chore: switch to yarn (#11)
Browse files Browse the repository at this point in the history
* chore: switch to `yarn`

* fix CI
  • Loading branch information
yusukebe authored Oct 23, 2023
1 parent 1dc019a commit c223966
Show file tree
Hide file tree
Showing 11 changed files with 5,758 additions and 3,614 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-dev-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: pnpm/action-setup@v2
with:
version: 8
- run: pnpm install
- run: pnpm build
- run: yarn install
- run: yarn build
- run: npx playwright install --with-deps
- run: pnpm test
- run: yarn test
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ sandbox
test-results
playwright-report

# yarn
.yarn/*
yarn.lock
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
yarn-error.log
874 changes: 874 additions & 0 deletions .yarn/releases/yarn-3.6.4.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yarnPath: .yarn/releases/yarn-3.6.4.cjs
nodeLinker: node-modules
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
"version": "0.0.0",
"private": true,
"license": "MIT",
"packageManager": "[email protected]",
"workspaces": [
"packages/*"
],
"engines": {
"node": ">=18.14.1",
"pnpm": ">=8.7.0"
"node": ">=18.14.1"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.6.0",
Expand All @@ -18,4 +21,4 @@
"prettier": "^3.0.3",
"typescript": "^5.2.2"
}
}
}
4 changes: 2 additions & 2 deletions packages/dev-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"module": "dist/index.js",
"type": "module",
"scripts": {
"test": "pnpm exec playwright test -c test/playwright.config.ts test/e2e.test.ts",
"test": "playwright test -c test/playwright.config.ts test/e2e.test.ts",
"build": "rimraf dist && tsup && publint",
"watch": "tsup --watch",
"prepublishOnly": "pnpm run build && pnpm run test",
Expand Down Expand Up @@ -51,7 +51,7 @@
"vitest": "^0.31.4"
},
"engines": {
"node": ">=18.0.0"
"node": ">=18.14.1"
},
"dependencies": {
"@hono/node-server": "^1.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/dev-server/test/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default defineConfig({
},
],
webServer: {
command: 'pnpm exec vite --port 6173 -c ./test/vite.config.ts',
command: 'yarn vite --port 6173 -c ./vite.config.ts',
port: 6173,
reuseExistingServer: !process.env.CI,
},
Expand Down
2 changes: 1 addition & 1 deletion packages/dev-server/test/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import devServer, { defaultOptions } from '../src'
export default defineConfig({
plugins: [
devServer({
entry: './test/mock/worker.ts',
entry: './mock/worker.ts',
exclude: [...defaultOptions.exclude, '/app/.*'],
cf: {
bindings: {
Expand Down
Loading

0 comments on commit c223966

Please sign in to comment.