chore(ci): add pr preview through vercel deploy (#1388)

This commit is contained in:
Kagol 2024-02-08 09:49:00 +08:00 committed by GitHub
parent e97eb93323
commit 355b4460a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 5 deletions

View File

@ -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",

View File

@ -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"

3
vercel.json Normal file
View File

@ -0,0 +1,3 @@
{
"rewrites": [{ "source": "/:path*", "destination": "/index.html" }]
}