import-folder
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -8,5 +8,11 @@ "use strict"; | ||
const fs_1 = __importDefault(require("fs")); | ||
function getPathFromCallerFunction() { | ||
} | ||
const importFolder = (folder) => { | ||
let modules = {}; | ||
let folderPath = path_1.default.join(__dirname, folder); | ||
Error.prepareStackTrace; | ||
// @ts-ignore | ||
const caller = new Error().stack[1].receiver; | ||
console.log(caller); | ||
let folderPath = path_1.default.join(folder); | ||
fs_1.default.readdirSync(folderPath).forEach((file) => { | ||
@@ -13,0 +19,0 @@ let filePath = path_1.default.join(folderPath, file); |
{ | ||
"name": "import-folder", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Import all exported modules from files in folder at once", | ||
@@ -8,3 +8,3 @@ "main": "index.js", | ||
"scripts": { | ||
"build": "tsc", | ||
"build": "tsc && rm index.js && cp build/index.js index.js && yarn jest", | ||
"test": "jest", | ||
@@ -41,3 +41,5 @@ "coveralls": "jest --coverage && cat ./coverage/lcov.info | coveralls" | ||
"homepage": "https://github.com/felipezarco/import-folder#readme", | ||
"dependencies": {}, | ||
"dependencies": { | ||
"import-folder": "^0.0.2" | ||
}, | ||
"devDependencies": { | ||
@@ -44,0 +46,0 @@ "@types/express": "^4.17.11", |
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
6245
1
27
1
+ Addedimport-folder@^0.0.2
+ Addedimport-folder@0.0.2(transitive)