mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
13 lines
411 B
JavaScript
13 lines
411 B
JavaScript
'use strict';
|
|
|
|
const BbPromise = require('bluebird');
|
|
const childProcess = BbPromise.promisifyAll(require('child_process'));
|
|
|
|
function installLocalEmulator() {
|
|
const stdout = childProcess.execSync('npm install -g serverless-local-emulator');
|
|
const stdoutString = new Buffer(stdout, 'base64').toString();
|
|
return stdoutString.includes('serverless-local-emulator');
|
|
}
|
|
|
|
module.exports = installLocalEmulator;
|