Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit 4fb1366

Browse files
committed
[fix]: update app-builder path accordingly;
1 parent b5ca14d commit 4fb1366

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/project-generator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: 'Installing Deps'
2828
run: npm i -g pnpm && pnpm i
2929
- name: 'Generate Project'
30-
run: node ./scripts/app-builder.js
30+
run: node scripts/app-builder.js
3131
- name: Commit and push project
3232
env:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

scripts/app-builder.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
const fs = require('fs');
22
const path = require('path');
33

4-
const dumpDir = path.join(__dirname, './src/dump');
5-
const pageBaseDir = path.join(__dirname, './src/page');
6-
const appFile = path.join(__dirname, './src/App.tsx');
7-
const layoutFile = path.join(__dirname, './src/layout/CustomLayout.tsx');
4+
const dumpDir = path.join(__dirname, '../src/dump');
5+
const pageBaseDir = path.join(__dirname, '../src/page');
6+
const appFile = path.join(__dirname, '../src/App.tsx');
7+
const layoutFile = path.join(__dirname, '../src/layout/CustomLayout.tsx');
88

99
const files = fs.readdirSync(dumpDir);
1010

0 commit comments

Comments
 (0)