Skip to content

Commit

Permalink
chore: update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jan 29, 2024
1 parent f37f8e8 commit 24eaea4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: "pnpm"
- run: pnpm install
- name: Fix lint issues
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: "pnpm"
- run: pnpm install
- run: pnpm lint
- run: pnpm test:types
- run: pnpm build
- run: pnpm vitest --coverage
# - run: pnpm vitest --coverage
- uses: codecov/codecov-action@v3
11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "crossws",
"version": "0.0.1",
"description": "",
"description": "Cross-platform WebSocket Servers for Node.js, Deno, Bun and Cloudflare Workers",
"repository": "unjs/crossws",
"license": "MIT",
"sideEffects": false,
Expand Down Expand Up @@ -61,24 +61,22 @@
],
"scripts": {
"build": "unbuild",
"dev": "vitest dev",
"play:node": "jiti playground/node.ts",
"play:bun": "bun playground/bun.ts",
"play:deno": "deno run -A playground/deno.ts",
"play:cf": "wrangler dev --port 3001",
"lint": "eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test",
"lint:fix": "eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w",
"lint": "eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src",
"lint:fix": "eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src -w",
"prepack": "pnpm run build",
"release": "pnpm test && changelogen --release && npm publish && git push --follow-tags",
"test": "pnpm lint && pnpm test:types && vitest run --coverage",
"test": "pnpm lint && pnpm test:types",
"test:types": "tsc --noEmit --skipLibCheck"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20240117.0",
"@types/node": "^20.11.10",
"@types/web": "^0.0.135",
"@types/ws": "^8.5.10",
"@vitest/coverage-v8": "^1.2.2",
"bun-types": "^1.0.25",
"changelogen": "^0.5.5",
"consola": "^3.2.3",
Expand All @@ -89,7 +87,6 @@
"typescript": "^5.3.3",
"uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.33.0",
"unbuild": "^2.0.0",
"vitest": "^1.2.2",
"wrangler": "^3.25.0",
"ws": "^8.16.0"
},
Expand Down

0 comments on commit 24eaea4

Please sign in to comment.