Skip to content

Commit

Permalink
fix: remove extraneous command execution (#198)
Browse files Browse the repository at this point in the history
* fix: windows issue for mevn init

* fix: linting error

Co-authored-by: James George <[email protected]>
  • Loading branch information
jamesjose03 and jamesgeorge007 authored Oct 21, 2020
1 parent b262abb commit af1643f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/commands/basic/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import showBanner from 'node-banner';
import validate from 'validate-npm-package-name';

import copyDirSync from '../../utils/fs';
import { isWin } from '../../utils/constants';
import {
directoryExistsInPath,
hasStrayArgs,
Expand Down Expand Up @@ -58,8 +57,6 @@ const showInstructions = () => {
console.log(chalk.cyan.bold(`You're all set`));
console.log(chalk.cyan.bold(`Now, just type in ${userCommandInstruction}`));

let removeCmd = isWin ? 'rmdir /s /q' : 'rm -rf';
execa.commandSync(`${removeCmd} ${path.join(projectPathRelative, '.git')}`);
makeInitialCommit();
};

Expand Down

0 comments on commit af1643f

Please sign in to comment.