Comparing version 1.1.0 to 1.1.2
{ | ||
"name": "bundle-me", | ||
"version": "1.1.0", | ||
"version": "1.1.2", | ||
"description": "Bundles all the files inside the directory", | ||
@@ -22,6 +22,6 @@ "main": "src/index.js", | ||
"devDependencies": { | ||
"chai": "~3", | ||
"jshint": "^2.9.6", | ||
"mocha": "~5", | ||
"chai": "~3" | ||
"mocha": "~5" | ||
} | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# bundle-me [![Build Status](https://travis-ci.org/ajay2507/bundle-me.svg?branch=master)](https://travis-ci.org/ajay2507/bundle-me) | ||
# bundle-me [![Build Status](https://travis-ci.org/pajaydev/bundle-me.svg?branch=master)](https://travis-ci.org/pajaydev/bundle-me) | ||
@@ -58,2 +58,3 @@ | ||
## Example | ||
https://github.com/pajaydev/bundle-me/tree/master/example | ||
@@ -60,0 +61,0 @@ ## License |
@@ -19,2 +19,3 @@ 'use strict'; | ||
const files = getFiles(sourcePath); | ||
console.log(files); | ||
files.forEach(file => { | ||
@@ -58,5 +59,8 @@ if (fs.statSync(file).isDirectory()) { | ||
// get all the file names in the given directory | ||
const getFiles = (sourcePath) => { | ||
return fs.readdirSync(sourcePath).map(file => join(sourcePath, file)) | ||
if (fs.statSync(sourcePath).isDirectory()) { | ||
return fs.readdirSync(sourcePath).map(file => join(sourcePath, file)) | ||
} | ||
return [sourcePath]; | ||
}; | ||
@@ -63,0 +67,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
6715
8
105
63