From 1400abb6a91cb523d0c879cf50ec6f1a89457615 Mon Sep 17 00:00:00 2001 From: ThaUnknown <6506529+ThaUnknown@users.noreply.github.com> Date: Tue, 21 Nov 2023 18:07:11 +0100 Subject: [PATCH] fix: build and config --- .github/workflows/main.yml | 3 +++ jsconfig.json | 5 ++++- tsconfig.json | 5 ++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4790cef..1ba2529 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,6 +32,9 @@ jobs: node-version: '16' cache: 'pnpm' + - name: Enter Electron + run: cd electron + - name: Install dependencies run: pnpm install --frozen-lockfile diff --git a/jsconfig.json b/jsconfig.json index f16ef36..fc9339d 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -4,7 +4,10 @@ "target": "ESNext", "moduleResolution": "node", "module": "ESNext", - "allowSyntheticDefaultImports": true + "allowSyntheticDefaultImports": true, + "paths": { + "@/*": ["./common/*"], + } }, "exclude": ["node_modules/**", "**/node_modules", "dist", "build"] } \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index f16ef36..fc9339d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,10 @@ "target": "ESNext", "moduleResolution": "node", "module": "ESNext", - "allowSyntheticDefaultImports": true + "allowSyntheticDefaultImports": true, + "paths": { + "@/*": ["./common/*"], + } }, "exclude": ["node_modules/**", "**/node_modules", "dist", "build"] } \ No newline at end of file