From 3f48f5d3f4ae928010b2f760c0bc9f9a76909496 Mon Sep 17 00:00:00 2001 From: Guany <1084072690@qq.com> Date: Mon, 27 Nov 2023 16:26:41 +0800 Subject: [PATCH] chore: move typed-router.d.ts to src and update version to 20 (#516) --- Dockerfile | 2 +- netlify.toml | 2 +- typed-router.d.ts => src/typed-router.d.ts | 0 vite.config.ts | 1 + 4 files changed, 3 insertions(+), 2 deletions(-) rename typed-router.d.ts => src/typed-router.d.ts (100%) diff --git a/Dockerfile b/Dockerfile index 6f913a9cc..3e3a684a8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16-alpine as build-stage +FROM node:20-alpine as build-stage WORKDIR /app RUN corepack enable diff --git a/netlify.toml b/netlify.toml index 0422d2143..becc5cc5a 100755 --- a/netlify.toml +++ b/netlify.toml @@ -1,5 +1,5 @@ [build.environment] - NODE_VERSION = "16" + NODE_VERSION = "20" [build] publish = "dist" diff --git a/typed-router.d.ts b/src/typed-router.d.ts similarity index 100% rename from typed-router.d.ts rename to src/typed-router.d.ts diff --git a/vite.config.ts b/vite.config.ts index d0991b20e..e8d78011f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -36,6 +36,7 @@ export default defineConfig({ // https://github.com/posva/unplugin-vue-router VueRouter({ extensions: ['.vue', '.md'], + dts: 'src/typed-router.d.ts', }), // https://github.com/JohnCampionJr/vite-plugin-vue-layouts