diff --git a/package.json b/package.json index ce8f8478a..9cafcf0d6 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,9 @@ "tsc": "tsc -b packages/*/tsconfig.json packages/*/examples/*/tsconfig.json", "tsc-dev": "pnpm tsc --watch --preserveWatchOutput", "test": "pnpm -r --sequential test run", + "vite-ecosystem-ci:build": "pnpm -r --filter '@hiogawa/vite-rsc...' build", + "vite-ecosystem-ci:before-test": "playwright install chromium", + "vite-ecosystem-ci:test": "bash scripts/vite-ecosystem-ci.sh", "lint": "biome check --write .", "lint-check": "biome check ." }, diff --git a/packages/rsc/examples/basic/vite.config.ts b/packages/rsc/examples/basic/vite.config.ts index f1845d85e..9fc0fcca3 100644 --- a/packages/rsc/examples/basic/vite.config.ts +++ b/packages/rsc/examples/basic/vite.config.ts @@ -18,7 +18,8 @@ export default defineConfig({ ssr: "@hiogawa/vite-rsc/extra/ssr", }, }), - Inspect(), + // avoid ecosystem CI fail due to vite-plugin-inspect compatibility + !process.env.ECOSYSTEM_CI && Inspect(), { name: "show-encryption-key", enforce: "post", diff --git a/scripts/vite-ecosystem-ci.sh b/scripts/vite-ecosystem-ci.sh new file mode 100644 index 000000000..a70d00115 --- /dev/null +++ b/scripts/vite-ecosystem-ci.sh @@ -0,0 +1,7 @@ +#!/bin/bash +set -eu -o pipefail + +# a part of test-rsc-core from ci.yml +pnpm -C packages/rsc/examples/basic test-e2e +pnpm -C packages/rsc/examples/basic build +pnpm -C packages/rsc/examples/basic test-e2e-preview diff --git a/tsconfig.base.json b/tsconfig.base.json index 6551fb5c7..e0ab8c298 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1,6 +1,9 @@ { "extends": "@tsconfig/strictest/tsconfig.json", "compilerOptions": { + "paths": { + "@oxc-project/types": ["./node_modules/@types/estree"] + }, "noImplicitReturns": false, "exactOptionalPropertyTypes": false, "verbatimModuleSyntax": true,