diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5c70dc7..ec2c820 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,11 +20,16 @@ jobs: with: node-version: 18.x + - name: Install pnpm + uses: pnpm/action-setup@v2.0.1 + with: + version: 8.7.0 + - name: Install dependencies - run: npx pnpm install --no-frozen-lockfile + run: pnpm install --no-frozen-lockfile - name: Lint - run: npm run lint + run: pnpm lint - name: Test - run: npm run test + run: pnpm test diff --git a/package.json b/package.json index 1ec2db4..f0874ab 100644 --- a/package.json +++ b/package.json @@ -36,10 +36,10 @@ "dev": "tsup --watch", "build": "tsup", "build:pages": "pnpm run build && cd playground/spa && pnpm run build", - "test:unit": "vitest run --coverage", + "test:unit": "vitest run", "test": "run-s test:unit test:serve test:build", - "test:serve": "vitest run -c vitest.config.e2e.ts --coverage", - "test:build": "cross-env VITE_TEST_BUILD=1 vitest run -c vitest.config.e2e.ts --coverage", + "test:serve": "vitest run -c vitest.config.e2e.ts", + "test:build": "cross-env VITE_TEST_BUILD=1 vitest run -c vitest.config.e2e.ts", "lint": "eslint .", "preinstall": "npx only-allow pnpm", "up": "pnpm update --i --L", diff --git a/playground/spa-file-mode/package.json b/playground/spa-file-mode/package.json index fb61adb..f47b09c 100644 --- a/playground/spa-file-mode/package.json +++ b/playground/spa-file-mode/package.json @@ -1,5 +1,5 @@ { - "name": "spa", + "name": "spa-file-mode", "version": "0.0.0", "private": true, "type": "module", diff --git a/playground/ssr/package.json b/playground/ssr/package.json index d0e9bc8..8706387 100644 --- a/playground/ssr/package.json +++ b/playground/ssr/package.json @@ -1,5 +1,5 @@ { - "name": "ssr-react", + "name": "ssr", "version": "0.0.0", "private": true, "type": "module", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5ac5fd5..97de138 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -202,36 +202,6 @@ importers: specifier: ^1.15.0 version: 1.15.0 - playground/ssr-react: - dependencies: - react: - specifier: ^18.2.0 - version: 18.2.0 - react-dom: - specifier: ^18.2.0 - version: 18.2.0(react@18.2.0) - react-router-dom: - specifier: ^6.16.0 - version: 6.17.0(react-dom@18.2.0)(react@18.2.0) - vite-plugin-public-typescript: - specifier: workspace:* - version: link:../.. - devDependencies: - '@vitejs/plugin-react': - specifier: ^4.1.0 - version: 4.1.0(vite@4.4.11) - compression: - specifier: ^1.7.4 - version: 1.7.4 - express: - specifier: ^4.18.2 - version: 4.18.2 - serve-static: - specifier: ^1.15.0 - version: 1.15.0 - - playground/ssr/lib: {} - packages: /@aashutoshrathi/word-wrap@1.2.6: