shipready 1.0.1 → 1.0.2
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.js +12 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -43,13 +43,24 @@ async function applyFixes(root, force) {
|
|
|
43
43
|
...fixAgentFiles(root, project, force),
|
|
44
44
|
];
|
|
45
45
|
}
|
|
46
|
+
/** Reads the CLI's own version from its package.json (works from dist/ at runtime). */
|
|
47
|
+
function ownVersion() {
|
|
48
|
+
try {
|
|
49
|
+
const pkgPath = path.resolve(path.dirname(new URL(import.meta.url).pathname), "..", "package.json");
|
|
50
|
+
const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf8"));
|
|
51
|
+
return pkg.version ?? "0.0.0";
|
|
52
|
+
}
|
|
53
|
+
catch {
|
|
54
|
+
return "0.0.0";
|
|
55
|
+
}
|
|
56
|
+
}
|
|
46
57
|
/** Builds the commander program. Exported for testing. */
|
|
47
58
|
export function buildProgram() {
|
|
48
59
|
const program = new Command();
|
|
49
60
|
program
|
|
50
61
|
.name("shipready")
|
|
51
62
|
.description("Pre-flight check for your repo before shipping.")
|
|
52
|
-
.version(
|
|
63
|
+
.version(ownVersion());
|
|
53
64
|
program
|
|
54
65
|
.command("check")
|
|
55
66
|
.description("Scan a project for shipping blockers")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shipready",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Pre-flight check for your repo before shipping. Scans AI-coded projects for secrets, env issues, debug leftovers, and generates AI-agent instruction files.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|