Skip to content

Commit

Permalink
fixed windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fridgerator committed Jul 22, 2019
1 parent 0a03796 commit 3065a5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export class R {
this.options = Object.assign({}, {
encoding: 'utf8'
}, _opts)
if (process.platform === 'win32') this.options.shell = true
if (!this.options.env) this.options.env = process.env
if (!this.options.env.DIRNAME) this.options.env.DIRNAME = __dirname
this.idCounter = 0
Expand Down

0 comments on commit 3065a5c

Please sign in to comment.