@powerhousedao/ph-cli 6.0.0-dev.100 → 6.0.0-dev.101

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/dist/src/cli.js CHANGED
@@ -11463,7 +11463,7 @@ async function makeDependenciesWithVersions(dependencies) {
11463
11463
  }));
11464
11464
  return dependenciesWithVersions;
11465
11465
  }
11466
- async function getPowerhouseProjectInfo(args2) {
11466
+ async function getPowerhouseProjectInfo(args2, options) {
11467
11467
  const localProjectPath = await getLocalPowerhouseProjectDirPath();
11468
11468
  const globalProjectPath = await getGlobalPowerhouseProjectDirPath();
11469
11469
  const projectPath = localProjectPath ?? globalProjectPath;
@@ -11473,7 +11473,7 @@ async function getPowerhouseProjectInfo(args2) {
11473
11473
  if (packageManagerFromArgs && packageManagerFromProject && packageManagerFromArgs !== packageManagerFromProject) {
11474
11474
  throw new Error(`You specified package manager ${packageManagerFromArgs} but your project already has dependencies installed with ${packageManagerFromProject}. Please first remove your lockfile and node_modules before running install with ${packageManagerFromArgs}.`);
11475
11475
  }
11476
- if (!packageManagerFromArgs && !packageManagerFromProject) {
11476
+ if (!packageManagerFromArgs && !packageManagerFromProject && !options?.silent) {
11477
11477
  console.warn("No package manager specified or detected, falling back to `npm`...");
11478
11478
  }
11479
11479
  const packageManager = packageManagerFromArgs ?? packageManagerFromProject ?? "npm";