ecklf-tmp-runtime-test
Advanced tools
Comparing version 1.0.96 to 1.0.97
@@ -35,13 +35,8 @@ "use strict"; | ||
return {}; | ||
(0, build_utils_1.debug)(`Gathering \`${globMatcher}\` in ${workPath}}`); | ||
const entryDir = workPath; | ||
(0, build_utils_1.debug)(`Entry dir: ${entryDir}`); | ||
(0, build_utils_1.debug)(`Gathering extra files for glob \`${globMatcher}\` in ${workPath}}`); | ||
if (Array.isArray(globMatcher)) { | ||
const allMatches = yield Promise.all(globMatcher.map((pattern) => (0, build_utils_1.glob)(pattern, entryDir))); | ||
(0, build_utils_1.debug)(`Array of matches: ${JSON.stringify(allMatches)}`); | ||
const allMatches = yield Promise.all(globMatcher.map((pattern) => (0, build_utils_1.glob)(pattern, workPath))); | ||
return allMatches.reduce((acc, matches) => (Object.assign(Object.assign({}, acc), matches)), {}); | ||
} | ||
const matches = (0, build_utils_1.glob)(globMatcher, entryDir); | ||
(0, build_utils_1.debug)(`matches: ${JSON.stringify(matches)}`); | ||
return matches; | ||
return (0, build_utils_1.glob)(globMatcher, workPath); | ||
}); | ||
@@ -65,3 +60,6 @@ } | ||
}; | ||
const binaryName = path_1.default.basename(entryPath, ".rs"); | ||
const binaryName = path_1.default | ||
.basename(entryPath, ".rs") | ||
.replace("[", "_") | ||
.replace("]", "_"); | ||
yield runUserScripts(workPath); | ||
@@ -68,0 +66,0 @@ const extraFiles = yield gatherExtraFiles(config.includeFiles, workPath); |
{ | ||
"name": "ecklf-tmp-runtime-test", | ||
"version": "1.0.96", | ||
"version": "1.0.97", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
44183
245