diff --git a/gulpfile.js b/gulpfile.js index 3cf20833..3c3fe562 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -53,7 +53,7 @@ gulp.task('clean:staging', function () { function createBundle(format, destination) { return rollup.rollup({ - entry: 'src/desktop.ts', + input: 'src/desktop.ts', plugins: [ tsrollup({ typescript: typescript }), rollupReplace({ @@ -61,11 +61,12 @@ function createBundle(format, destination) { }) ] }).then(function (bundle) { - bundle.write({ - dest: destination, + return bundle.write({ + file: destination, format: format, + name: pkg.title, moduleName: pkg.title, - sourceMap: true, + sourcemap: true }); }); } diff --git a/package.json b/package.json index d10f9352..485e66b7 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "gulp-webserver": "^0.9.1", "merge2": "^1.0.3", "remap-istanbul": "^0.11.0", - "rollup": "^0.41.6", + "rollup": "^0.59.1", "rollup-plugin-replace": "^2.0.0", "rollup-plugin-typescript": "^0.8.1", "run-sequence": "^2.2.0",