@base44-preview/cli 0.0.37-pr.357.020ced4 → 0.0.37-pr.357.8ea004a
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 +7 -8
- package/dist/cli/index.js.map +3 -3
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -244387,11 +244387,13 @@ async function execAction(scriptArg, options8, extraArgs) {
|
|
|
244387
244387
|
verifyDenoIsInstalled();
|
|
244388
244388
|
let scriptPath;
|
|
244389
244389
|
let tempFile = null;
|
|
244390
|
-
const isStdinPipe = !process.stdin.isTTY;
|
|
244391
244390
|
const hasFile = scriptArg !== undefined;
|
|
244392
244391
|
const hasEval = options8.eval !== undefined;
|
|
244393
|
-
const
|
|
244394
|
-
if (
|
|
244392
|
+
const isStdinPipe = !hasFile && !hasEval && !process.stdin.isTTY;
|
|
244393
|
+
if (hasFile && hasEval) {
|
|
244394
|
+
throw new InvalidInputError("Cannot use both a file path and -e flag. Provide only one input mode.");
|
|
244395
|
+
}
|
|
244396
|
+
if (!hasFile && !hasEval && !isStdinPipe) {
|
|
244395
244397
|
throw new InvalidInputError("No script provided. Pass a file path, use -e for inline code, or pipe from stdin.", {
|
|
244396
244398
|
hints: [
|
|
244397
244399
|
{ message: "File: base44 exec ./script.ts" },
|
|
@@ -244400,9 +244402,6 @@ async function execAction(scriptArg, options8, extraArgs) {
|
|
|
244400
244402
|
]
|
|
244401
244403
|
});
|
|
244402
244404
|
}
|
|
244403
|
-
if (modeCount > 1) {
|
|
244404
|
-
throw new InvalidInputError("Multiple input modes detected. Provide only one of: file path, -e flag, or stdin.");
|
|
244405
|
-
}
|
|
244406
244405
|
if (hasFile) {
|
|
244407
244406
|
scriptPath = `file://${resolve6(scriptArg)}`;
|
|
244408
244407
|
} else {
|
|
@@ -244421,7 +244420,7 @@ async function execAction(scriptArg, options8, extraArgs) {
|
|
|
244421
244420
|
}
|
|
244422
244421
|
try {
|
|
244423
244422
|
const exitCode = await new Promise((resolvePromise) => {
|
|
244424
|
-
const child = spawn3("deno", ["run", "--allow-all", EXEC_WRAPPER_PATH, ...extraArgs], {
|
|
244423
|
+
const child = spawn3("deno", ["run", "--allow-all", "--node-modules-dir=auto", EXEC_WRAPPER_PATH, ...extraArgs], {
|
|
244425
244424
|
env: {
|
|
244426
244425
|
...process.env,
|
|
244427
244426
|
SCRIPT_PATH: scriptPath,
|
|
@@ -248810,4 +248809,4 @@ export {
|
|
|
248810
248809
|
CLIExitError
|
|
248811
248810
|
};
|
|
248812
248811
|
|
|
248813
|
-
//# debugId=
|
|
248812
|
+
//# debugId=8D11C7597C91089364756E2164756E21
|