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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/manifest.mjs +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "enablement-build-manifest",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "This builds a dependency tree.",
5
5
  "type": "module",
6
6
  "module": "./index.mjs",
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 project.json → version.json → pyproject.toml
274
+ // Helper: get package name from package.json → version.json → pyproject.toml
275
275
  const getPackageNameFromFiles = (pkgDir) => {
276
- const projectJsonPath = path.join(pkgDir, 'project.json');
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 project.json/version.json/pyproject.toml
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