@insforge/cli 0.1.39 → 0.1.40

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/index.js CHANGED
@@ -2045,6 +2045,10 @@ function registerDeploymentsDeployCommand(deploymentsCmd2) {
2045
2045
  if (!stats?.isDirectory()) {
2046
2046
  throw new CLIError(`"${sourceDir}" is not a valid directory.`);
2047
2047
  }
2048
+ const dirName = path2.basename(sourceDir);
2049
+ if (EXCLUDE_PATTERNS.includes(dirName)) {
2050
+ throw new CLIError(`"${dirName}" is an excluded directory and cannot be used as a deploy source. Please specify your project root or output directory instead.`);
2051
+ }
2048
2052
  const s = !json ? clack9.spinner() : null;
2049
2053
  const startBody = {};
2050
2054
  if (opts.env) {