enablement-build-manifest 1.0.3 → 1.0.4
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 +1 -1
- package/src/manifest.mjs +3 -3
package/package.json
CHANGED
package/src/manifest.mjs
CHANGED
|
@@ -271,9 +271,9 @@ export const generateManifest = async (options) => {
|
|
|
271
271
|
const existingTemplated = existingManifest.templated || {};
|
|
272
272
|
const existingCicd = existingManifest.cicd || {};
|
|
273
273
|
|
|
274
|
-
// Helper: get package name from
|
|
274
|
+
// Helper: get package name from package.json → version.json → pyproject.toml
|
|
275
275
|
const getPackageNameFromFiles = (pkgDir) => {
|
|
276
|
-
const projectJsonPath = path.join(pkgDir, '
|
|
276
|
+
const projectJsonPath = path.join(pkgDir, 'package.json');
|
|
277
277
|
if (fs.existsSync(projectJsonPath)) {
|
|
278
278
|
try { const d = JSON.parse(fs.readFileSync(projectJsonPath, 'utf-8')); if (d.name) return d.name; } catch(e) {}
|
|
279
279
|
}
|
|
@@ -336,7 +336,7 @@ export const generateManifest = async (options) => {
|
|
|
336
336
|
const pkgDir = path.dirname(pkgPath);
|
|
337
337
|
const folderName = path.basename(path.dirname(path.dirname(pkgPath)));
|
|
338
338
|
|
|
339
|
-
// Prefer package name from
|
|
339
|
+
// Prefer package name from package.json/version.json/pyproject.toml
|
|
340
340
|
const preferredName = getPackageNameFromFiles(pkgDir) || pkgName;
|
|
341
341
|
|
|
342
342
|
// Find the pipeline file and placeholder for this package's folder
|