From 355b4460a11723f68ad765dcdf1d98f0481069a7 Mon Sep 17 00:00:00 2001 From: Kagol Date: Thu, 8 Feb 2024 09:49:00 +0800 Subject: [PATCH] chore(ci): add pr preview through vercel deploy (#1388) --- package.json | 6 ++++-- packages/vue/src/guide/package.json | 4 +--- vercel.json | 3 +++ 3 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 vercel.json diff --git a/package.json b/package.json index a482535b9..12694d656 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "main": "packages/index.js", "engines": { "node": ">=16", - "pnpm": ">=7" + "pnpm": ">=6.35" }, "scripts": { "preinstall": "npx only-allow pnpm", @@ -65,7 +65,9 @@ "build:themeMobile": "pnpm -C packages/theme-mobile build:fast", "build:themejson": "gulp themeJson", "build:internals": "pnpm \"--filter=./internals/*\" build", - "build:site": "gulp themeConcat && pnpm -C examples/sites build", + "build:vite-import": "pnpm --filter @opentiny/vue-vite-import build", + "build:virtual-template": "pnpm --filter @opentiny-internal/unplugin-virtual-template build", + "build:site": "gulp themeConcat && pnpm i -g pnpm && pnpm build:vite-import && pnpm build:virtual-template && pnpm -C examples/sites build", "release:aurora": "pnpm -C internals/cli release:aurora", "// ---------- 使用pnpm批量发布npm包 ----------": "", "pub2": "pnpm --filter=\"./packages/dist2/**\" publish --tag v2-latest --no-git-checks --access=public", diff --git a/packages/vue/src/guide/package.json b/packages/vue/src/guide/package.json index a0c322989..705d71a21 100644 --- a/packages/vue/src/guide/package.json +++ b/packages/vue/src/guide/package.json @@ -13,9 +13,7 @@ "dependencies": { "@opentiny/vue-renderless": "workspace:~", "@opentiny/vue-common": "workspace:~", - "shepherd.js": "11.0.1" - }, - "peerDependencies": { + "shepherd.js": "11.0.1", "@floating-ui/dom": "^1.0.10" }, "license": "MIT" diff --git a/vercel.json b/vercel.json new file mode 100644 index 000000000..afea4aed5 --- /dev/null +++ b/vercel.json @@ -0,0 +1,3 @@ +{ + "rewrites": [{ "source": "/:path*", "destination": "/index.html" }] +}