@dbux/common-node
Advanced tools
Comparing version 0.5.10 to 0.5.15-dev.4
{ | ||
"name": "@dbux/common-node", | ||
"version": "0.5.10", | ||
"version": "0.5.15-dev.4", | ||
"description": "", | ||
@@ -12,3 +12,3 @@ "module": "src/index.js", | ||
"dependencies": { | ||
"@dbux/common": "^0.5.10", | ||
"@dbux/common": "^0.5.15-dev.4", | ||
"adm-zip": "^0.5.9", | ||
@@ -27,3 +27,3 @@ "colors": "^1.4.0", | ||
"_moduleAliases": {}, | ||
"gitHead": "81b7d414ebd17627383362fb9a4bcf100a2c7d03" | ||
"gitHead": "4ab0ab0d3c8e0f1de1c2dda687016c4848a7dd04" | ||
} |
@@ -7,2 +7,3 @@ /** | ||
import glob from 'glob'; | ||
import identity from 'lodash/identity'; | ||
import isString from 'lodash/isString'; | ||
@@ -36,3 +37,4 @@ import path from 'path'; | ||
function genExportAll(names) { | ||
function genExportAll(names, transformEntry) { | ||
names = names.map(transformEntry); | ||
return `export {\n${IndentUnit}${names.join(`,\n${IndentUnit}`)}\n};`; | ||
@@ -44,3 +46,3 @@ } | ||
*/ | ||
export function writeFileRegistryFile(outFile, dir, predicate, moreImports = '', initFn = null) { | ||
export function writeFileRegistryFile(outFile, dir, predicate, moreImports = '', initFn = null, transformEntry = identity) { | ||
const files = glob.sync(dir + '/*') | ||
@@ -67,3 +69,3 @@ .filter(f => path.basename(f) !== outFile) | ||
// exports | ||
genExportAll(files) | ||
genExportAll(files, transformEntry) | ||
]; | ||
@@ -70,0 +72,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
32597
613
Updated@dbux/common@^0.5.15-dev.4