Comparing version 2.2.0 to 2.2.1
10
bin.js
@@ -42,2 +42,11 @@ #!/usr/bin/env node | ||
const path = require('path'); | ||
const mkdir = dir => { | ||
try{ fs.mkdirSync(dir); } | ||
catch(e){ | ||
if(e.errno === 34){ | ||
mkdir(path.dirname(dir)); | ||
mkdir(dir); | ||
} | ||
} | ||
}; | ||
(function walkThrough(source, dest) { | ||
@@ -57,2 +66,3 @@ fs.readdir(source, (err, files) => { | ||
if (err) throw err; | ||
mkdir(dest); | ||
fs.writeFile( | ||
@@ -59,0 +69,0 @@ path.join(dest, file), |
{ | ||
"name": "ascjs", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "ES2015 to CommonJS import/export transformer", | ||
@@ -5,0 +5,0 @@ "bin": "bin.js", |
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
13044
258