shipready 1.0.2 → 1.0.3
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 +2 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import path from "node:path";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
3
4
|
import { Command } from "commander";
|
|
4
5
|
import pc from "picocolors";
|
|
5
6
|
import { detectProject, runScan, scanFiles } from "./scanner.js";
|
|
@@ -46,7 +47,7 @@ async function applyFixes(root, force) {
|
|
|
46
47
|
/** Reads the CLI's own version from its package.json (works from dist/ at runtime). */
|
|
47
48
|
function ownVersion() {
|
|
48
49
|
try {
|
|
49
|
-
const pkgPath = path.resolve(path.dirname(
|
|
50
|
+
const pkgPath = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..", "package.json");
|
|
50
51
|
const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf8"));
|
|
51
52
|
return pkg.version ?? "0.0.0";
|
|
52
53
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shipready",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
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",
|