Skip to content

Commit

Permalink
fix: block scoping < 6
Browse files Browse the repository at this point in the history
  • Loading branch information
James Womack committed Nov 7, 2017
1 parent 5ec4c2c commit 93d89f4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node

'use strict' // force block-scoping
'use strict' // force block-scoping w/ Node < 6

/* Trick in-publish into thinking we're the NPM CLI running publish */
process.env.npm_config_argv = JSON.stringify({ cooked : [ 'publish' ] })
Expand Down
2 changes: 2 additions & 0 deletions lib/gh-pages.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict' // force block-scoping w/ Node < 6

// Based on https://github.com/shinnn/gulp-gh-pages/blob/master/index.js
const Transform = require('readable-stream/transform')
const log = require('fancy-log')
Expand Down
2 changes: 2 additions & 0 deletions lib/git.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict' // force block-scoping w/ Node < 6

// Based on https://github.com/shinnn/gulp-gh-pages/blob/master/index.js
const git = require('gift')
const rimraf = require('rimraf')
Expand Down
2 changes: 2 additions & 0 deletions tests/specs/dry-run.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict' // force block-scoping w/ Node < 6

const spec = require('tape')

const relativePathToUnleashIndex = '../../'
Expand Down
2 changes: 2 additions & 0 deletions tests/specs/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict' // force block-scoping w/ Node < 6

const spec = require('tape')
const unleashTaskManager = require('../../')

Expand Down

0 comments on commit 93d89f4

Please sign in to comment.