Skip to content

Commit

Permalink
feat(tasks): get run mode working
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Jun 5, 2022
1 parent fe06e75 commit e8fb816
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "grunt-nw-builder",
"version": "3.7.3-beta.0",
"version": "3.7.3-beta.1",
"description": "Build NW.js applications for Mac, Windows and Linux using Grunt.",
"keywords": [
"NW.js",
Expand Down
3 changes: 1 addition & 2 deletions tasks/node_webkit_builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ module.exports = function (grunt) {
nwOptions[toCamelcase(opt)] = options[opt];
}
});
nwOptions.files = this.filesSrc;

// create and run nwbuilder
var nw = new NwBuilder(nwOptions);
Expand All @@ -76,7 +75,7 @@ module.exports = function (grunt) {
grunt.log.writeln(log);
});

if (grunt.option['mode'] && grunt.option['mode'] === 'run') {
if (options['mode'] && options['mode'] === 'run') {
nw.run(function (err) {
if (err) {
grunt.fail.fatal(err);
Expand Down

0 comments on commit e8fb816

Please sign in to comment.