From e7a464ac1a2c743fc6abc2f51842a6940fe95172 Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Wed, 13 Jul 2016 11:21:15 +0200 Subject: [PATCH] gupfile website: temporarily create package.json --- gulpfile.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index 34c96147..d6a4d3b5 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -359,9 +359,14 @@ gulp.task('website', ['clean-website', 'playground-samples'], function() { .pipe(es.through(function(data) { this.emit('data', data); }, function() { + + // temporarily create package.json so that npm install doesn't bark + fs.writeFileSync('../monaco-editor-website/package.json', '{}'); cp.execSync('npm install monaco-editor', { cwd: path.join(__dirname, '../monaco-editor-website') }); + fs.unlink('../monaco-editor-website/package.json'); + cp.execSync('git init', { cwd: path.join(__dirname, '../monaco-editor-website') });