Skip to content

Commit 66311c8

Browse files
committed
upgraded some stuff
1 parent 0002a40 commit 66311c8

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

lib/packExternalModules.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -292,19 +292,19 @@ module.exports = {
292292
this.serverless.utils.writeFileSync(modulePackageJson, JSON.stringify(modulePackage, null, 2));
293293

294294
// Copy modules
295-
const startCopy = _.now();
296-
return BbPromise.fromCallback(callback => fse.copy(path.join(compositeModulePath, 'node_modules'), path.join(modulePath, 'node_modules'), callback))
297-
.tap(() => this.options.verbose && this.serverless.cli.log(`Copy modules: ${modulePath} [${_.now() - startCopy} ms]`))
298-
.then(() => {
299-
// Prune extraneous packages - removes not needed ones
300-
const startPrune = _.now();
301-
return BbPromise.fromCallback(callback => {
302-
childProcess.exec('npm prune', {
303-
cwd: modulePath
304-
}, callback);
305-
})
306-
.tap(() => this.options.verbose && this.serverless.cli.log(`Prune: ${modulePath} [${_.now() - startPrune} ms]`));
307-
});
295+
// const startCopy = _.now();
296+
// return BbPromise.fromCallback(callback => fse.copy(path.join(compositeModulePath, 'node_modules'), path.join(modulePath, 'node_modules'), callback))
297+
// .tap(() => this.options.verbose && this.serverless.cli.log(`Copy modules: ${modulePath} [${_.now() - startCopy} ms]`))
298+
// .then(() => {
299+
// // Prune extraneous packages - removes not needed ones
300+
// const startPrune = _.now();
301+
// return BbPromise.fromCallback(callback => {
302+
// childProcess.exec('npm prune', {
303+
// cwd: modulePath
304+
// }, callback);
305+
// })
306+
// .tap(() => this.options.verbose && this.serverless.cli.log(`Prune: ${modulePath} [${_.now() - startPrune} ms]`));
307+
// });
308308
})
309309
.return();
310310
});

0 commit comments

Comments
 (0)