mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 21:30:43 +08:00
fix: replace taskfile module
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
import path from 'path';
|
||||
import fs from 'fs-extra';
|
||||
import { isEqual } from 'lodash';
|
||||
import { sh } from 'tasksfile';
|
||||
import { successConsole, errorConsole } from '../utils';
|
||||
// import { sh } from 'tasksfile';
|
||||
import { successConsole, errorConsole, run } from '../utils';
|
||||
|
||||
const resolve = (dir: string) => {
|
||||
return path.resolve(process.cwd(), dir);
|
||||
@@ -46,10 +46,11 @@ export async function runPreserve() {
|
||||
'A dependency change is detected, and the dependency is being installed to ensure that the dependency is consistent! (Tip: The project will be executed for the first time)!'
|
||||
);
|
||||
try {
|
||||
await sh('npm run bootstrap ', {
|
||||
async: true,
|
||||
nopipe: true,
|
||||
});
|
||||
await run('npm', ['run', 'bootstrap']);
|
||||
// await sh('npm run bootstrap ', {
|
||||
// async: true,
|
||||
// nopipe: true,
|
||||
// });
|
||||
|
||||
successConsole('Dependency installation is successful, start running the project!');
|
||||
|
||||
|
Reference in New Issue
Block a user