Skip to content

Commit

Permalink
fix: templates
Browse files Browse the repository at this point in the history
  • Loading branch information
oychao committed Dec 17, 2023
1 parent 422f40f commit 1f01243
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "boilerplate-creator",
"version": "3.0.4",
"version": "3.0.5",
"main": "index.js",
"author": {
"name": "ouyang-chao",
Expand Down
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ const main = async function () {
await execAsync(`git remote add origin ${templateSource}`);
await execAsync('git config core.sparseCheckout true');
// only check specific folder
await execAsync(`echo templates / ${options.template} >> .git / info / sparse - checkout`);
await execAsync(`echo templates/${options.template} >> .git/info/sparse - checkout`);
await execAsync('git pull --depth=1 origin master');
await fsex.copy(`templates / ${options.template} / `, './');
await fsex.copy(`templates/${options.template}/`, './');
if (options.auto) {
spinner.text = chalk.magentaBright('project initialized.');
spinner.succeed();
Expand Down

0 comments on commit 1f01243

Please sign in to comment.