From 44d295ee8e780f976fe3c70ee8239435e26f1f78 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Thu, 14 Sep 2023 11:00:06 +0800 Subject: [PATCH] chore: update netlify config --- auto-imports.d.ts | 3 ++- components.d.ts | 4 +--- netlify.toml | 5 ++--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/auto-imports.d.ts b/auto-imports.d.ts index 5a12a4e..b01451d 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -1,6 +1,7 @@ /* eslint-disable */ /* prettier-ignore */ // @ts-nocheck +// noinspection JSUnusedGlobalSymbols // Generated by unplugin-auto-import export {} declare global { @@ -285,7 +286,7 @@ declare global { // for type re-export declare global { // @ts-ignore - export type { Component, ComponentPublicInstance, ComputedRef, InjectionKey, PropType, Ref, VNode } from 'vue' + export type { Component, ComponentPublicInstance, ComputedRef, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue' } // for vue template auto import import { UnwrapRef } from 'vue' diff --git a/components.d.ts b/components.d.ts index b8f55e8..4fa95c8 100644 --- a/components.d.ts +++ b/components.d.ts @@ -3,11 +3,9 @@ // @ts-nocheck // Generated by unplugin-vue-components // Read more: https://github.com/vuejs/core/pull/3399 -import '@vue/runtime-core' - export {} -declare module '@vue/runtime-core' { +declare module 'vue' { export interface GlobalComponents { RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] diff --git a/netlify.toml b/netlify.toml index bd06a07..fa7962b 100755 --- a/netlify.toml +++ b/netlify.toml @@ -1,10 +1,9 @@ [build.environment] - NPM_FLAGS = "--version" - NODE_VERSION = "16" + NODE_VERSION = "20" [build] publish = "dist" - command = "npx pnpm i --store=node_modules/.pnpm-store && npx pnpm run build" + command = "pnpm run build" [[redirects]] from = "/*"