diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 5cb2623..2684080 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b485602..654e167 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/package.json b/package.json index 4d9c2ce..1645c00 100644 --- a/package.json +++ b/package.json @@ -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, @@ -61,16 +61,15 @@ ], "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": { @@ -78,7 +77,6 @@ "@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", @@ -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" },