@base44-preview/cli 0.0.51-pr.503.299048e → 0.0.51-pr.503.6669b14

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/cli/index.js CHANGED
@@ -243441,6 +243441,9 @@ var functionResource = {
243441
243441
  push: (functions) => deployFunctionsSequentially(functions)
243442
243442
  };
243443
243443
  // src/core/project/config.ts
243444
+ function describeFunctionSource(fn) {
243445
+ return fn.source.type === "plugin" ? `plugin "${fn.source.namespace}"` : "project";
243446
+ }
243444
243447
  async function findConfigInDir(dir) {
243445
243448
  const files = await globby(PROJECT_CONFIG_PATTERNS, {
243446
243449
  cwd: dir,
@@ -243593,7 +243596,7 @@ class ProjectConfigReader {
243593
243596
  for (const fn of functions) {
243594
243597
  const existingFunction = functionsByName.get(fn.name);
243595
243598
  if (existingFunction) {
243596
- throw new ConfigInvalidError(`Duplicate function name "${fn.name}" after loading project plugins.`, configPath, {
243599
+ throw new ConfigInvalidError(`Duplicate function name "${fn.name}" after loading project plugins (${describeFunctionSource(existingFunction)} and ${describeFunctionSource(fn)}).`, configPath, {
243597
243600
  hints: [
243598
243601
  {
243599
243602
  message: "Rename the project function or change the plugin namespace/function name so every deploy name is unique."
@@ -261545,4 +261548,4 @@ export {
261545
261548
  CLIExitError
261546
261549
  };
261547
261550
 
261548
- //# debugId=2ADA1E4C26BBE1A464756E2164756E21
261551
+ //# debugId=9FAEFFBF52D07E0464756E2164756E21