shippingszn 0.7.0 → 0.7.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.
Files changed (2) hide show
  1. package/dist/index.js +6 -1
  2. 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 = "0.6.0";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shippingszn",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Read-only CLI scanner that checks a project for common pre-launch issues from the shippingszn.com launch checklist.",
5
5
  "license": "MIT",
6
6
  "type": "module",