From 0fc3c8e95c853ca923359caa026cb70543d5cade Mon Sep 17 00:00:00 2001 From: "K.B.Dharun Krishna" Date: Fri, 1 Mar 2024 13:31:08 +0530 Subject: [PATCH] fix: port to new vite version format Signed-off-by: K.B.Dharun Krishna --- package.json | 1 + postcss.config.js => postcss.config.cjs | 0 tsconfig.json | 3 ++- tsconfig.node.json | 3 ++- 4 files changed, 5 insertions(+), 2 deletions(-) rename postcss.config.js => postcss.config.cjs (100%) diff --git a/package.json b/package.json index 4d58aef..f176d8d 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "chronos-fe", "private": true, "version": "2.0.0", + "type": "module", "scripts": { "dev": "vite", "build": "vite build", diff --git a/postcss.config.js b/postcss.config.cjs similarity index 100% rename from postcss.config.js rename to postcss.config.cjs diff --git a/tsconfig.json b/tsconfig.json index 1e81501..655c3c1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "@vue/tsconfig/tsconfig.web.json", + "extends": "@vue/tsconfig/tsconfig.dom.json", "include": ["env.d.ts", "src/**/*", "src/**/*.vue"], "compilerOptions": { + "moduleResolution": "Node", "ignoreDeprecations": "5.0", "baseUrl": ".", "paths": { diff --git a/tsconfig.node.json b/tsconfig.node.json index 2892f27..acd93b8 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -1,7 +1,8 @@ { - "extends": "@vue/tsconfig/tsconfig.node.json", + "extends": "@vue/tsconfig", "include": ["vite.config.*", "vitest.config.*", "cypress.config.*", "playwright.config.*"], "compilerOptions": { + "moduleResolution": "Node", "composite": true, "types": ["node"] }