auditkit 0.1.5 → 0.1.6

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/Cargo.lock CHANGED
@@ -90,7 +90,7 @@ checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
90
90
 
91
91
  [[package]]
92
92
  name = "auditkit"
93
- version = "0.1.5"
93
+ version = "0.1.6"
94
94
  dependencies = [
95
95
  "anyhow",
96
96
  "chrono",
package/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "auditkit"
3
- version = "0.1.5"
3
+ version = "0.1.6"
4
4
  edition = "2021"
5
5
  description = "Local hybrid CLI for agency website audits."
6
6
  license = "MIT"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auditkit",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Local hybrid CLI for agency website audits.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -32,7 +32,6 @@
32
32
  "audit:security": "cargo run --quiet -- security",
33
33
  "audit:lighthouse": "cargo run --quiet -- lighthouse",
34
34
  "audit:inspect": "cargo run --quiet -- inspect",
35
- "postinstall": "node scripts/auditkit/postinstall.mjs",
36
35
  "test": "npm run test:node && npm run test:rust",
37
36
  "test:node": "node --test",
38
37
  "test:rust": "cargo test"
@@ -19,6 +19,23 @@ SCRIPT_DIR="$(cd "$(dirname "$SOURCE")" && pwd)"
19
19
  ROOT_DIR="$(cd "$SCRIPT_DIR/../.." && pwd)"
20
20
  BINARY="$ROOT_DIR/target/debug/auditkit"
21
21
 
22
+ if [ -z "${CI:-}" ] && [ -z "${AUDITKIT_SKIP_WELCOME:-}" ]; then
23
+ if [ -n "${XDG_STATE_HOME:-}" ]; then
24
+ WELCOME_DIR="$XDG_STATE_HOME/auditkit"
25
+ elif [ -n "${HOME:-}" ]; then
26
+ WELCOME_DIR="$HOME/.local/state/auditkit"
27
+ else
28
+ WELCOME_DIR=""
29
+ fi
30
+
31
+ if [ -n "$WELCOME_DIR" ] && [ ! -f "$WELCOME_DIR/welcome-v0.1.6" ]; then
32
+ if command -v node >/dev/null 2>&1; then
33
+ node "$ROOT_DIR/scripts/auditkit/postinstall.mjs" || true
34
+ fi
35
+ mkdir -p "$WELCOME_DIR" 2>/dev/null && : >"$WELCOME_DIR/welcome-v0.1.6" 2>/dev/null || true
36
+ fi
37
+ fi
38
+
22
39
  if [ ! -x "$BINARY" ]; then
23
40
  cargo build --manifest-path "$ROOT_DIR/Cargo.toml" >/dev/null
24
41
  fi