chore: move to pnpm (#9817)

This commit is contained in:
neverland
2021-11-06 15:39:10 +08:00
committed by GitHub
parent 6e3ba5af63
commit 06d7f3fefa
29 changed files with 13162 additions and 20362 deletions

View File

@@ -65,10 +65,16 @@ export class VanGenerator extends Generator {
/**
@see {@link https://github.com/mrmlnc/fast-glob#how-to-write-patterns-on-windows}
*/
const templatePath = join(GENERATOR_DIR, this.inputs.vueVersion).replace(/\\/g, '/');
const templateFiles = glob.sync(join(templatePath, '**', '*').replace(/\\/g, '/'), {
dot: true,
});
const templatePath = join(GENERATOR_DIR, this.inputs.vueVersion).replace(
/\\/g,
'/'
);
const templateFiles = glob.sync(
join(templatePath, '**', '*').replace(/\\/g, '/'),
{
dot: true,
}
);
const destinationRoot = this.destinationRoot();
templateFiles.forEach((filePath) => {
@@ -99,7 +105,7 @@ export class VanGenerator extends Generator {
console.log();
consola.success(`Successfully created ${chalk.yellow(name)}.`);
consola.success(
`Run ${chalk.yellow(`cd ${name} && yarn dev`)} to start development!`
`Run ${chalk.yellow(`cd ${name} && npm run dev`)} to start development!`
);
}
}