shippingszn 0.7.0 → 0.8.0
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/index.js +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import * as path from "node:path";
|
|
3
3
|
import * as process from "node:process";
|
|
4
|
+
import { createRequire } from "node:module";
|
|
4
5
|
import { ALL_CHECKS } from "./checks.js";
|
|
5
6
|
import { listFiles, getTrackedFiles } from "./scan.js";
|
|
6
7
|
import { CHECKLIST_ITEMS, permalinkFor } from "./items.js";
|
|
@@ -31,7 +32,11 @@ function applyTrackingAwareSeverity(findings, tracked) {
|
|
|
31
32
|
});
|
|
32
33
|
}
|
|
33
34
|
const DEFAULT_BASE_URL = "https://shippingszn.com";
|
|
34
|
-
const PKG_VERSION =
|
|
35
|
+
const PKG_VERSION = (() => {
|
|
36
|
+
const require = createRequire(import.meta.url);
|
|
37
|
+
const pkg = require("../package.json");
|
|
38
|
+
return pkg.version;
|
|
39
|
+
})();
|
|
35
40
|
function parseArgs(argv) {
|
|
36
41
|
const opts = {
|
|
37
42
|
cwd: process.cwd(),
|
package/package.json
CHANGED