Skip to content

Commit

Permalink
chore: update build configurations for improved compatibility
Browse files Browse the repository at this point in the history
- Update the node version to '18' in .github/workflows/test.yml
- Remove the --dest flag in the yarn build command in Taskfile.yml
- Set the outDir to '../client/ui' in the build section in ui/vite.config.ts

Signed-off-by: ysicing <[email protected]>
  • Loading branch information
ysicing committed Mar 21, 2024
1 parent 85ea245 commit 99fe67e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
check-latest: true
- uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '18'
- name: install task
run: |
echo "install task"
Expand Down
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ tasks:
dir: ui
cmds:
- yarn install
- yarn build --dest ../client/ui
- yarn build

prepare:
desc: start prepare res
Expand Down
3 changes: 3 additions & 0 deletions ui/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ export default defineConfig({
},
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.less'],
},
build: {
outDir: '../client/ui',
},
plugins: [vue()],
})

0 comments on commit 99fe67e

Please sign in to comment.