Comparing version 3.1.0 to 3.1.1
@@ -75,2 +75,7 @@ #!/usr/bin/env node | ||
}; | ||
const cjsFolder = path.resolve(process.cwd(), dest); | ||
const cjsPackage = path.join(cjsFolder, 'package.json'); | ||
if (!fs.existsSync(cjsPackage)) | ||
fs.writeFileSync(cjsPackage, JSON.stringify({type: 'commonjs'})); | ||
fs.writeFileSync(dest, ascjs(source)); | ||
(function walkThrough(source, dest) { | ||
@@ -108,3 +113,3 @@ fs.readdir(source, (err, files) => { | ||
path.resolve(process.cwd(), source), | ||
path.resolve(process.cwd(), dest) | ||
cjsFolder | ||
)); | ||
@@ -111,0 +116,0 @@ } else { |
{ | ||
"name": "ascjs", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "ES2015 to CommonJS import/export transformer", | ||
@@ -33,5 +33,5 @@ "bin": "bin.js", | ||
"devDependencies": { | ||
"coveralls": "^3.0.7", | ||
"coveralls": "^3.0.8", | ||
"istanbul": "^0.4.5" | ||
} | ||
} |
# ascjs | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/WebReflection/ascjs.svg)](https://greenkeeper.io/) | ||
[![License: ISC](https://img.shields.io/badge/License-ISC-yellow.svg)](https://opensource.org/licenses/ISC) [![Build Status](https://travis-ci.org/WebReflection/ascjs.svg?branch=master)](https://travis-ci.org/WebReflection/ascjs) [![Coverage Status](https://coveralls.io/repos/github/WebReflection/ascjs/badge.svg?branch=master)](https://coveralls.io/github/WebReflection/ascjs?branch=master) [![donate](https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000&style=flat)](https://github.com/WebReflection/donate) [![Greenkeeper badge](https://badges.greenkeeper.io/WebReflection/ascjs.svg)](https://greenkeeper.io/) | ||
[![License: ISC](https://img.shields.io/badge/License-ISC-yellow.svg)](https://opensource.org/licenses/ISC) [![Build Status](https://travis-ci.org/WebReflection/ascjs.svg?branch=master)](https://travis-ci.org/WebReflection/ascjs) [![Coverage Status](https://coveralls.io/repos/github/WebReflection/ascjs/badge.svg?branch=master)](https://coveralls.io/github/WebReflection/ascjs?branch=master) [![donate](https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000&style=flat)](https://github.com/WebReflection/donate) | ||
ES2015 to CommonJS import/export transformer | ||
@@ -8,0 +6,0 @@ |
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
14796
302
107