windmill-cli 1.587.0 → 1.587.1
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/esm/gen/core/OpenAPI.js
CHANGED
|
@@ -63,15 +63,28 @@ const createHTML = (jsPath, cssPath) => `
|
|
|
63
63
|
`;
|
|
64
64
|
async function dev(opts) {
|
|
65
65
|
GLOBAL_CONFIG_OPT.noCdToRoot = true;
|
|
66
|
+
// Validate that we're in a .raw_app folder
|
|
67
|
+
const cwd = process.cwd();
|
|
68
|
+
const currentDirName = path.basename(cwd);
|
|
69
|
+
if (!currentDirName.endsWith(".raw_app")) {
|
|
70
|
+
log.error(colors.red(`Error: The dev command must be run inside a .raw_app folder.\n` +
|
|
71
|
+
`Current directory: ${currentDirName}\n` +
|
|
72
|
+
`Please navigate to a folder ending with '.raw_app' before running this command.`));
|
|
73
|
+
dntShim.Deno.exit(1);
|
|
74
|
+
}
|
|
75
|
+
// Check for raw_app.yaml
|
|
76
|
+
const rawAppPath = path.join(cwd, "raw_app.yaml");
|
|
77
|
+
if (!fs.existsSync(rawAppPath)) {
|
|
78
|
+
log.error(colors.red(`Error: raw_app.yaml not found in current directory.\n` +
|
|
79
|
+
`The dev command must be run in a .raw_app folder containing a raw_app.yaml file.`));
|
|
80
|
+
dntShim.Deno.exit(1);
|
|
81
|
+
}
|
|
66
82
|
// Resolve workspace and authenticate
|
|
67
83
|
const workspace = await resolveWorkspace(opts);
|
|
68
84
|
await requireLogin(opts);
|
|
69
85
|
const workspaceId = workspace.workspaceId;
|
|
70
86
|
// Load app path from raw_app.yaml
|
|
71
|
-
const
|
|
72
|
-
const rawApp = fs.existsSync(rawAppPath)
|
|
73
|
-
? (await yamlParseFile(rawAppPath))
|
|
74
|
-
: {};
|
|
87
|
+
const rawApp = (await yamlParseFile(rawAppPath));
|
|
75
88
|
const appPath = rawApp?.custom_path ?? "u/unknown/newapp";
|
|
76
89
|
// Dynamically import esbuild only when the dev command is called
|
|
77
90
|
const esbuild = await import("esbuild");
|
package/esm/src/main.js
CHANGED
|
@@ -39,7 +39,7 @@ export { flow, app, script, workspace, resource, resourceType, user, variable, h
|
|
|
39
39
|
// console.error(JSON.stringify(event.error, null, 4));
|
|
40
40
|
// }
|
|
41
41
|
// });
|
|
42
|
-
export const VERSION = "1.587.
|
|
42
|
+
export const VERSION = "1.587.1";
|
|
43
43
|
export const WM_FORK_PREFIX = "wm-fork";
|
|
44
44
|
const command = new Command()
|
|
45
45
|
.name("wmill")
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../../src/src/commands/app/dev.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,OAAO,EAOR,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../../src/src/commands/app/dev.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,OAAO,EAOR,MAAM,kBAAkB,CAAC;AAkmB1B,QAAA,MAAM,OAAO;;;;;;;;;;;;;;mBAaQ,CAAC;AAEtB,eAAe,OAAO,CAAC"}
|
package/types/src/main.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ import { pull as hubPull } from "./commands/hub/hub.js";
|
|
|
22
22
|
import { pull, push } from "./commands/sync/sync.js";
|
|
23
23
|
import { add as workspaceAdd } from "./commands/workspace/workspace.js";
|
|
24
24
|
export { flow, app, script, workspace, resource, resourceType, user, variable, hub, folder, schedule, trigger, sync, gitsyncSettings, instance, dev, hubPull, pull, push, workspaceAdd, };
|
|
25
|
-
export declare const VERSION = "1.587.
|
|
25
|
+
export declare const VERSION = "1.587.1";
|
|
26
26
|
export declare const WM_FORK_PREFIX = "wm-fork";
|
|
27
27
|
declare const command: Command<{
|
|
28
28
|
workspace?: (import("../deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/mod.js").StringType & string) | undefined;
|