This commit is contained in:
2025-11-18 02:01:22 +08:00
parent 6d32fedfb0
commit 6f709ff3e2
4 changed files with 51 additions and 380 deletions

View File

@@ -90,7 +90,7 @@ export class AssistantInit extends AssistantConfig {
}
}
initPnpm() {
const pnpmPath = path.join(this.configDir, 'assistant-app', 'pnpm.yaml');
const pnpmPath = path.join(this.configDir, 'assistant-app', 'pnpm-workspace.yaml');
let create = false;
if (!checkFileExists(pnpmPath, true)) {
create = true;
@@ -101,7 +101,7 @@ export class AssistantInit extends AssistantConfig {
- 'pages/**/*'
`,
);
console.log(chalk.green('助手 pnpm.yaml 文件创建成功'));
console.log(chalk.green('助手 pnpm-workspace.yaml 文件创建成功'));
}
const packagePath = path.join(this.configDir, 'assistant-app', 'package.json');
if (!checkFileExists(packagePath, true)) {
@@ -133,6 +133,7 @@ export class AssistantInit extends AssistantConfig {
"unstorage": "latest",
"dayjs": "latest",
"es-toolkit": "latest",
"node-cron": "latest",
"dotenv": "latest"
},
"devDependencies": {