Skip to content

Commit

Permalink
fix: remove check install before push/rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Romakita committed Oct 19, 2023
1 parent c5465a1 commit eeaf128
Show file tree
Hide file tree
Showing 3 changed files with 1,306 additions and 1,280 deletions.
40 changes: 0 additions & 40 deletions src/command/install/check-install.js

This file was deleted.

8 changes: 1 addition & 7 deletions src/command/install/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ const hasYarn = require('has-yarn');
const Listr = require('listr');
const { catchError, throwError } = require('rxjs/operators');
const exec = require('../../exec');
const checkInstall = require('./check-install');

module.exports = () => ({
title: 'Install',
enabled: () => checkInstall.requiredInstall(),
task: () => new Listr(
[
{
Expand All @@ -25,13 +23,9 @@ module.exports = () => ({
title: 'Installing dependencies using npm',
enabled: () => hasYarn() === false,
task: () => {
const args = ['install', '--no-package-lock', '--no-production'];
const args = ['install'];
return exec('npm', args);
}
},
{
title: 'Refresh metadata',
task: () => checkInstall.refresh()
}
],
{ concurrency: false }
Expand Down
Loading

0 comments on commit eeaf128

Please sign in to comment.