mirror of
https://github.com/zebrajr/react.git
synced 2025-12-07 12:20:38 +01:00
16 lines
347 B
JavaScript
16 lines
347 B
JavaScript
#!/usr/bin/env node
|
|
|
|
'use strict';
|
|
|
|
const {exec} = require('child-process-promise');
|
|
const {logPromise} = require('../utils');
|
|
|
|
const install = async ({cwd}) => {
|
|
await exec('rm -rf node_modules', {cwd});
|
|
await exec('yarn', {cwd});
|
|
};
|
|
|
|
module.exports = async ({cwd}) => {
|
|
return logPromise(install({cwd}), 'Installing NPM dependencies');
|
|
};
|