Comparing version 1.1.5 to 2.0.0
@@ -17,5 +17,3 @@ #! /usr/bin/env node | ||
if (isEs6) { | ||
// This branch is only supported in Node versions that support native ES6 import | ||
var es6Import = require('./es6import.js') | ||
es6Import('file://' + path.resolve(path.join(process.cwd(), process.argv[2]))).then(userModule => { | ||
import('file://' + path.resolve(path.join(process.cwd(), process.argv[2]))).then((userModule) => { | ||
executeInModule(userModule, process.argv[3], params); | ||
@@ -22,0 +20,0 @@ }); |
@@ -17,5 +17,3 @@ #! /usr/bin/env node --max-old-space-size=4096 | ||
if (isEs6) { | ||
// This branch is only supported in Node versions that support native ES6 import | ||
var es6Import = require('./es6import.js') | ||
es6Import('file://' + path.resolve(path.join(process.cwd(), process.argv[2]))).then(userModule => { | ||
import('file://' + path.resolve(path.join(process.cwd(), process.argv[2]))).then((userModule) => { | ||
executeInModule(userModule, process.argv[3], params); | ||
@@ -22,0 +20,0 @@ }); |
@@ -7,2 +7,6 @@ { | ||
}, | ||
"engines": { | ||
"npm": ">=6.0.0", | ||
"node": ">=10.0.0" | ||
}, | ||
"description": "Run exported function from package.json scripts", | ||
@@ -23,3 +27,3 @@ "directories": {}, | ||
}, | ||
"version": "1.1.5", | ||
"version": "2.0.0", | ||
"repository": { | ||
@@ -26,0 +30,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3271
67