enablement-build-template-generate 1.0.17 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -4
- package/src/index.mjs +2 -2
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "enablement-build-template-generate",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"description": "Generates build yaml for mono repos",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./src/index.mjs",
|
|
7
7
|
"main": "./src/index.mjs",
|
|
8
|
+
"bin": "./src/index.mjs",
|
|
8
9
|
"dependencies": {
|
|
9
10
|
"globby": "^16.2.0",
|
|
10
11
|
"user": "^0.0.0"
|
|
@@ -24,8 +25,5 @@
|
|
|
24
25
|
"start": "node src/index.mjs",
|
|
25
26
|
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
|
26
27
|
"test:watch": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watch"
|
|
27
|
-
},
|
|
28
|
-
"bin": {
|
|
29
|
-
"enablement-build-template-generate": "./src/index.mjs"
|
|
30
28
|
}
|
|
31
29
|
}
|
package/src/index.mjs
CHANGED
|
@@ -94,8 +94,8 @@ function expandVarFromTemplatedJson(varname, jobConfig, templatePath, fallbackTe
|
|
|
94
94
|
const allNames = Object.keys(folderBest).sort().filter(n => !options.exclude.includes(n));
|
|
95
95
|
|
|
96
96
|
const expandedJobs = allNames.map(name => {
|
|
97
|
-
const content = readFileSync(path.join(cwd, folderBest[name]), 'utf8');
|
|
98
|
-
const ext = path.extname(folderBest[name]).substring(1).toLowerCase();
|
|
97
|
+
const content = readFileSync(path.join(cwd, folderBest[name].filePath), 'utf8');
|
|
98
|
+
const ext = path.extname(folderBest[name].filePath).substring(1).toLowerCase();
|
|
99
99
|
const fullName = parseManifestName(content, ext) || name;
|
|
100
100
|
const safe = makeSafe(name);
|
|
101
101
|
const packageName = resolvePackageName(fullName);
|