From c7b1cc867d447383c702c0eb68923cc9b8381f95 Mon Sep 17 00:00:00 2001 From: Leo Lamprecht Date: Thu, 12 Jan 2017 12:17:14 +0100 Subject: [PATCH] Use regular require statements for loading packages --- index.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/index.js b/index.js index ac92af2..c7456b7 100644 --- a/index.js +++ b/index.js @@ -1,13 +1,13 @@ // Native -import path from 'path' -import {spawn} from 'child_process' +const path = require('path') +const {spawn} = require('child_process') // Packages -import parser from 'minimist' -import pkginfo from 'pkginfo' -import loudRejection from 'loud-rejection' -import camelcase from 'camelcase' -import chalk from 'chalk' +const parser = require('minimist') +const pkginfo = require('pkginfo') +const loudRejection = require('loud-rejection') +const camelcase = require('camelcase') +const chalk = require('chalk') class Args { constructor() {