@rune-cli/rune 0.0.4 → 0.0.5
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.mjs +4 -4
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { cp, mkdir, readFile, readdir, rm, stat, writeFile } from "node:fs/promi
|
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import ts from "typescript";
|
|
8
8
|
//#region package.json
|
|
9
|
-
var version = "0.0.
|
|
9
|
+
var version = "0.0.5";
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/manifest/generate-manifest.ts
|
|
12
12
|
const COMMAND_ENTRY_FILE = "index.ts";
|
|
@@ -135,7 +135,7 @@ async function assertCommandsDirectoryExists(commandsDirectory) {
|
|
|
135
135
|
if (!(await stat(commandsDirectory).catch((error) => {
|
|
136
136
|
if (error.code === "ENOENT") return;
|
|
137
137
|
throw error;
|
|
138
|
-
}))?.isDirectory()) throw new Error(`Commands directory not found
|
|
138
|
+
}))?.isDirectory()) throw new Error(`Commands directory not found at ${COMMANDS_DIRECTORY_NAME}. Create it or check the --project <path> option.`);
|
|
139
139
|
}
|
|
140
140
|
//#endregion
|
|
141
141
|
//#region src/cli/build-command.ts
|
|
@@ -410,7 +410,7 @@ function tryParseProjectOption(argv, index) {
|
|
|
410
410
|
};
|
|
411
411
|
if (token === "--project") {
|
|
412
412
|
const nextToken = argv[index + 1];
|
|
413
|
-
if (!nextToken) return failureResult("Missing value for --project");
|
|
413
|
+
if (!nextToken) return failureResult("Missing value for --project. Usage: --project <path>");
|
|
414
414
|
return {
|
|
415
415
|
projectPath: nextToken,
|
|
416
416
|
nextIndex: index + 2
|
|
@@ -507,7 +507,7 @@ async function runRuneCli(options) {
|
|
|
507
507
|
cwd: options.cwd
|
|
508
508
|
});
|
|
509
509
|
}
|
|
510
|
-
return failureResult(`Unknown
|
|
510
|
+
return failureResult(`Unknown command: ${subcommand}. Available commands: build, dev`);
|
|
511
511
|
}
|
|
512
512
|
//#endregion
|
|
513
513
|
//#region src/cli.ts
|
package/package.json
CHANGED