import-folder
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -8,11 +8,6 @@ "use strict"; | ||
const fs_1 = __importDefault(require("fs")); | ||
function getPathFromCallerFunction() { | ||
} | ||
const importFolder = (folder) => { | ||
let modules = {}; | ||
Error.prepareStackTrace; | ||
// @ts-ignore | ||
const caller = new Error().stack[1].receiver; | ||
console.log(caller); | ||
let folderPath = path_1.default.join(folder); | ||
let folderPath = path_1.default.join(module.parent.filename, '..', folder); | ||
console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>', folderPath); | ||
fs_1.default.readdirSync(folderPath).forEach((file) => { | ||
@@ -19,0 +14,0 @@ let filePath = path_1.default.join(folderPath, file); |
{ | ||
"name": "import-folder", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Import all exported modules from files in folder at once", | ||
@@ -41,3 +41,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"import-folder": "^0.0.2" | ||
"import-folder": "^0.0.3" | ||
}, | ||
@@ -44,0 +44,0 @@ "devDependencies": { |
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
6168
22
+ Addedimport-folder@0.0.3(transitive)
Updatedimport-folder@^0.0.3