From 761f2ee4f4dc97bf53a8713a9d7aa537fc8df7b7 Mon Sep 17 00:00:00 2001 From: AMAGI / Jun Yuri Date: Fri, 7 Jun 2024 14:21:57 -0700 Subject: [PATCH] docs: use Vercel for PR preview (#52) * chore: update deps * chore: switch base path by VERCEL * fix: include dist to outputs --- package-lock.json | 30 ++++++++++++++++++------------ packages/docs/package.json | 4 ++-- packages/docs/vite.config.ts | 2 +- packages/react-vfx/package.json | 2 +- turbo.json | 3 ++- 5 files changed, 24 insertions(+), 17 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1379863..51b8c9b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1924,10 +1924,17 @@ } }, "node_modules/dedent": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", - "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", - "license": "MIT" + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.3.tgz", + "integrity": "sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ==", + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } + } }, "node_modules/deep-is": { "version": "0.1.4", @@ -6003,17 +6010,16 @@ } }, "node_modules/typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "version": "5.4.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", + "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", "dev": true, - "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=4.2.0" + "node": ">=14.17" } }, "node_modules/unbox-primitive": { @@ -6411,7 +6417,7 @@ "@react-spring/web": "^9.2.3", "@react-three/fiber": "^8.6.0", "@react-three/postprocessing": "^2.6.2", - "dedent": "^0.7.0", + "dedent": "^1.5.3", "is-mobile": "^3.0.0", "lodash.debounce": "^4.0.8", "postprocessing": "^6.28.6", @@ -6436,7 +6442,7 @@ "@types/three": "^0.143.2", "@vitejs/plugin-react": "^2.0.1", "rimraf": "^3.0.2", - "typescript": "^4.6.4", + "typescript": "^5.4.5", "vite": "^3.0.7" } }, @@ -6462,7 +6468,7 @@ "npm-run-all": "^4.1.5", "prettier": "^2.3.2", "rimraf": "^3.0.2", - "typescript": "^4.3.5" + "typescript": "^5.4.5" }, "peerDependencies": { "react": ">= 16.12.0", diff --git a/packages/docs/package.json b/packages/docs/package.json index 78ee81f..da29dc5 100644 --- a/packages/docs/package.json +++ b/packages/docs/package.json @@ -12,7 +12,7 @@ "@react-spring/web": "^9.2.3", "@react-three/fiber": "^8.6.0", "@react-three/postprocessing": "^2.6.2", - "dedent": "^0.7.0", + "dedent": "^1.5.3", "is-mobile": "^3.0.0", "lodash.debounce": "^4.0.8", "postprocessing": "^6.28.6", @@ -37,7 +37,7 @@ "@types/three": "^0.143.2", "@vitejs/plugin-react": "^2.0.1", "rimraf": "^3.0.2", - "typescript": "^4.6.4", + "typescript": "^5.4.5", "vite": "^3.0.7" } } diff --git a/packages/docs/vite.config.ts b/packages/docs/vite.config.ts index fe70228..109039f 100644 --- a/packages/docs/vite.config.ts +++ b/packages/docs/vite.config.ts @@ -4,6 +4,6 @@ import { viteCommonjs } from "@originjs/vite-plugin-commonjs"; // https://vitejs.dev/config/ export default defineConfig({ - base: "/react-vfx/", + base: process.env.VERCEL ? "" : "/react-vfx/", plugins: [react(), viteCommonjs()], }); diff --git a/packages/react-vfx/package.json b/packages/react-vfx/package.json index bfa7e63..0f2cada 100644 --- a/packages/react-vfx/package.json +++ b/packages/react-vfx/package.json @@ -30,7 +30,7 @@ "npm-run-all": "^4.1.5", "prettier": "^2.3.2", "rimraf": "^3.0.2", - "typescript": "^4.3.5" + "typescript": "^5.4.5" }, "homepage": "https://amagi.dev/react-vfx", "keywords": [ diff --git a/turbo.json b/turbo.json index 803e8bb..d4ded58 100644 --- a/turbo.json +++ b/turbo.json @@ -7,7 +7,8 @@ ], "outputs": [ "lib", - "build" + "build", + "dist" ] }, "dev": {