@leverege/build-tools 2.106.2 → 2.106.3

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/Utils.mjs +4 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.106.2",
3
+ "version": "2.106.3",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
package/src/Utils.mjs CHANGED
@@ -637,9 +637,10 @@ export const getRepositoryDescr = async () => {
637
637
  `${gitRoot}/{apps,packages}/**/{package.json,pyproject.toml}`,
638
638
  { ignore : [ '/**/node_modules/**', '/**/.venv/**' ] }
639
639
  )
640
+ const isMonoRepo = subPkgs.length > 0
640
641
  const helmChart = await parseHelmChart()
641
642
  const rootPackageJson = await parseJsonFile( `${gitRoot}/package.json` )
642
- const rootPyProjectToml = await parsePyProjectToml( `${gitRoot}/pyproject.toml` )
643
+ const rootPyProjectToml = await parsePyProjectToml( isMonoRepo ? './pyproject.toml' : `${gitRoot}/pyproject.toml` )
643
644
  const isYarnProject = getIsYarnProject( gitRoot )
644
645
 
645
646
  return {
@@ -651,7 +652,7 @@ export const getRepositoryDescr = async () => {
651
652
  gitUpstream,
652
653
  helmChart,
653
654
  isGitRepo : gitRoot !== undefined,
654
- isMonoRepo : subPkgs?.length > 0,
655
+ isMonoRepo,
655
656
  isNodeJsProject : rootPackageJson !== undefined,
656
657
  isNpmWorkspace : rootPackageJson?.workspaces?.length > 0,
657
658
  isPythonProject : rootPyProjectToml !== undefined,
@@ -677,7 +678,7 @@ export const analyzeRepository = async ( giveGuidance ) => {
677
678
  isYarnProject
678
679
  } = await getRepositoryDescr()
679
680
 
680
- if ( isMonoRepo && rootPackageJson.isInvalid ) {
681
+ if ( isMonoRepo && !isPythonProject && rootPackageJson.isInvalid ) {
681
682
  log( chalk.red.bold( `
682
683
  ***REQUIRED: A package.json file is required at the monorepo root` ) )
683
684