Skip to content

Commit

Permalink
Need to stick to ES5 in /bin code as is run in every environment
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Feb 21, 2016
1 parent aae34b3 commit f8edc05
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
8 changes: 5 additions & 3 deletions bin/build.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import program from 'commander'
import path from 'path'
/*eslint-disable */
var program = require('commander')
var path = require('path')

import packageJson from '../package.json'
var packageJson = require('../package.json')
/*eslint-enable */

// Use compiled version of code when installed globally, otherwise use
// babelscript version.
Expand Down
8 changes: 5 additions & 3 deletions bin/develop.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import program from 'commander'
import path from 'path'
/*eslint-disable */
var program = require('commander')
var path = require('path')

import packageJson from '../package.json'
var packageJson = require('../package.json')
/*eslint-enable */

// Use compiled version of code when installed globally, otherwise use
// babelscript version.
Expand Down
7 changes: 4 additions & 3 deletions bin/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import program from 'commander'

import packageJson from '../package.json'
/*eslint-disable */
var program = require('commander')
var packageJson = require('../package.json')
/*eslint-enable */

program
.version(packageJson.version)
Expand Down
8 changes: 5 additions & 3 deletions bin/new.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import program from 'commander'
import loggy from 'loggy'
/*eslint-disable */
var program = require('commander')
var loggy = require('loggy')

import packageJson from '../package.json'
var packageJson = require('../package.json')
/*eslint-enable */

// Use compiled version of code when installed globally, otherwise use
// babelscript version.
Expand Down

0 comments on commit f8edc05

Please sign in to comment.