periderm-cli 0.1.62 → 0.1.69

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.
@@ -6,6 +6,7 @@ import fs from "node:fs/promises";
6
6
  import path from "node:path";
7
7
  import fg from "fast-glob";
8
8
  import { detectFaviconPresent } from "./project-context.js";
9
+ import { isLegalPage } from "./legal.js";
9
10
  async function exists(p) {
10
11
  try {
11
12
  await fs.access(p);
@@ -33,7 +34,8 @@ export async function runRepoChecks(root, _files, ctx) {
33
34
  id: "missing-readme",
34
35
  category: "Deployment & Testing Readiness",
35
36
  severity: "medium",
36
- file: "README.md", line: 1,
37
+ file: "README.md",
38
+ line: 1,
37
39
  message: "README.md is missing.",
38
40
  why: "New contributors and your future self can't tell what the project is or how to run it.",
39
41
  fix: "Add a README with a one-line description, install, run, and deploy commands.",
@@ -58,7 +60,8 @@ export async function runRepoChecks(root, _files, ctx) {
58
60
  id: "missing-env-example",
59
61
  category: "Deployment & Testing Readiness",
60
62
  severity: "medium",
61
- file: ".env.example", line: 1,
63
+ file: ".env.example",
64
+ line: 1,
62
65
  message: ".env.example is missing.",
63
66
  why: "Anyone cloning the repo has to guess which env vars are required.",
64
67
  fix: "Create a .env.example listing every env var with a placeholder value (no secrets).",
@@ -73,7 +76,7 @@ export async function runRepoChecks(root, _files, ctx) {
73
76
  try {
74
77
  const parsedPkg = JSON.parse(pkgRaw);
75
78
  const combinedDeps = { ...parsedPkg.dependencies, ...parsedPkg.devDependencies };
76
- looksLikeWeb = ["react", "vite", "next", "svelte", "vue", "astro", "nuxt", "remix"].some(d => combinedDeps[d]);
79
+ looksLikeWeb = ["react", "vite", "next", "svelte", "vue", "astro", "nuxt", "remix"].some((d) => combinedDeps[d]);
77
80
  }
78
81
  catch (e) {
79
82
  if (process.env.DEBUG)
@@ -91,7 +94,8 @@ export async function runRepoChecks(root, _files, ctx) {
91
94
  id: "missing-favicon",
92
95
  category: "Polish & Embarrassment Risks",
93
96
  severity: "medium",
94
- file: "public/", line: 1,
97
+ file: "public/",
98
+ line: 1,
95
99
  message: "No favicon detected (checked link rel=icon tags, manifests, and public/ icon files).",
96
100
  why: "Without a favicon the browser tab shows a generic blank icon. Looks unfinished.",
97
101
  fix: "Add a favicon and reference it from your root layout head (any path/extension is fine).",
@@ -104,7 +108,8 @@ export async function runRepoChecks(root, _files, ctx) {
104
108
  id: "missing-robots",
105
109
  category: "SEO & Discoverability",
106
110
  severity: "medium",
107
- file: "public/robots.txt", line: 1,
111
+ file: "public/robots.txt",
112
+ line: 1,
108
113
  message: "robots.txt is missing.",
109
114
  why: "Search engines may crawl pages you don't want indexed, or miss pages you do.",
110
115
  fix: "Add a public/robots.txt with at minimum: User-agent: * Allow: / Sitemap: https://your-domain/sitemap.xml",
@@ -119,7 +124,8 @@ export async function runRepoChecks(root, _files, ctx) {
119
124
  id: "mobile-legal-reminder",
120
125
  category: "Legal & Compliance",
121
126
  severity: "medium",
122
- file: "App Stores", line: 1,
127
+ file: "App Stores",
128
+ line: 1,
123
129
  message: "Verify Privacy Policy URL is configured in App Store / Google Play.",
124
130
  why: "Mobile apps must link to external legal policies in the app stores. Code scanners cannot verify external links.",
125
131
  fix: "Ensure your App Store Connect and Google Play Console entries have valid, accessible URLs to your privacy policy and terms.",
@@ -127,16 +133,14 @@ export async function runRepoChecks(root, _files, ctx) {
127
133
  });
128
134
  }
129
135
  else {
130
- const legalFilePaths = _files.filter(f => {
131
- const rel = path.relative(root, f);
132
- return /terms|privacy|cookie|policy|legal|compliance|eula|tos/i.test(rel);
133
- });
136
+ const legalFilePaths = _files.filter((f) => isLegalPage(path.relative(root, f)));
134
137
  if (legalFilePaths.length === 0) {
135
138
  out.push({
136
139
  id: "missing-legal-docs",
137
140
  category: "Legal & Compliance",
138
141
  severity: "critical",
139
- file: "root", line: 1,
142
+ file: "root",
143
+ line: 1,
140
144
  message: "Missing Documents: Privacy Policy, Terms of Service completely absent.",
141
145
  why: "Running a web app handling user data without legal policies creates massive liability.",
142
146
  fix: "Create a Terms of Service and Privacy Policy, and link them in your footer.",
@@ -162,12 +166,14 @@ export async function runRepoChecks(root, _files, ctx) {
162
166
  if (content)
163
167
  combinedLegalContent += content.toLowerCase();
164
168
  }
169
+ const legalFile = path.relative(root, legalFilePaths[0]);
165
170
  if (hasAuth && !/account|email|password|authentication|login/i.test(combinedLegalContent)) {
166
171
  out.push({
167
172
  id: "incomplete-legal-auth",
168
173
  category: "Legal & Compliance",
169
174
  severity: "high",
170
- file: path.basename(legalFilePaths[0]), line: 1,
175
+ file: legalFile,
176
+ line: 1,
171
177
  message: "Privacy Policy does not mention User Accounts or Authentication.",
172
178
  why: "The app uses authentication dependencies, but the legal pages do not disclose the collection of account data (e.g. emails).",
173
179
  fix: "Update your Privacy Policy to disclose what user data is collected upon account creation and how it is protected.",
@@ -179,19 +185,22 @@ export async function runRepoChecks(root, _files, ctx) {
179
185
  id: "incomplete-legal-payments",
180
186
  category: "Legal & Compliance",
181
187
  severity: "high",
182
- file: path.basename(legalFilePaths[0]), line: 1,
188
+ file: legalFile,
189
+ line: 1,
183
190
  message: "Privacy Policy does not mention Payments or Billing.",
184
191
  why: "The app uses payment processing dependencies, but the legal pages do not disclose the handling of financial data.",
185
192
  fix: "Update your Privacy Policy to disclose that payment information is collected and processed by third-party providers.",
186
193
  aiPrompt: "Update the Privacy Policy to include a section about Payments, disclosing that payment data is handled securely by a processor.",
187
194
  });
188
195
  }
189
- if (hasAnalytics && !/analytic|tracking|cookie|mixpanel|posthog/i.test(combinedLegalContent)) {
196
+ if (hasAnalytics &&
197
+ !/analytic|tracking|cookie|mixpanel|posthog/i.test(combinedLegalContent)) {
190
198
  out.push({
191
199
  id: "incomplete-legal-analytics",
192
200
  category: "Legal & Compliance",
193
201
  severity: "high",
194
- file: path.basename(legalFilePaths[0]), line: 1,
202
+ file: legalFile,
203
+ line: 1,
195
204
  message: "Privacy Policy does not mention Analytics or Tracking.",
196
205
  why: "The app uses analytics dependencies, but the legal pages do not disclose tracking, cookies, or telemetry.",
197
206
  fix: "Update your Privacy Policy to disclose the use of analytics tools and tracking cookies.",
@@ -203,7 +212,8 @@ export async function runRepoChecks(root, _files, ctx) {
203
212
  id: "missing-legal-compliance",
204
213
  category: "Legal & Compliance",
205
214
  severity: "high",
206
- file: path.basename(legalFilePaths[0]), line: 1,
215
+ file: legalFile,
216
+ line: 1,
207
217
  message: "Privacy Policy missing GDPR / CCPA compliance wording.",
208
218
  why: "Failing to include required clauses for EU/CA users can result in severe FTC/regulatory fines and liabilities.",
209
219
  fix: "Add sections explicitly covering GDPR and CCPA rights (right to delete, right to access).",
@@ -233,7 +243,8 @@ export async function runRepoChecks(root, _files, ctx) {
233
243
  id: "redundant-vite-tsconfig-paths",
234
244
  category: "Performance & Bundle Size",
235
245
  severity: "medium",
236
- file: "package.json", line: 1,
246
+ file: "package.json",
247
+ line: 1,
237
248
  message: 'The plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the resolve.tsconfigPaths option.',
238
249
  why: "Vite added native support for tsconfig paths. Using an external plugin adds unnecessary build overhead and potential bugs.",
239
250
  fix: "Remove the plugin from package.json and vite.config.ts, and set `resolve.tsconfigPaths: true` in your Vite config instead.",
@@ -274,7 +285,13 @@ export async function runRepoChecks(root, _files, ctx) {
274
285
  },
275
286
  {
276
287
  name: "icon packs",
277
- members: ["react-icons", "lucide-react", "@heroicons/react", "@fortawesome/react-fontawesome", "@mui/icons-material"],
288
+ members: [
289
+ "react-icons",
290
+ "lucide-react",
291
+ "@heroicons/react",
292
+ "@fortawesome/react-fontawesome",
293
+ "@mui/icons-material",
294
+ ],
278
295
  recommend: "pick one icon set. Multiple icon packs balloon the bundle for no visual benefit.",
279
296
  },
280
297
  ];
@@ -285,7 +302,8 @@ export async function runRepoChecks(root, _files, ctx) {
285
302
  id: "duplicate-libs",
286
303
  category: "Performance & Bundle Size",
287
304
  severity: "medium",
288
- file: "package.json", line: 1,
305
+ file: "package.json",
306
+ line: 1,
289
307
  message: `Multiple ${g.name} installed: ${present.join(", ")}.`,
290
308
  why: "Shipping two libraries that solve the same problem doubles the bytes users download and doubles the surface area you need to maintain.",
291
309
  fix: g.recommend,
@@ -295,29 +313,76 @@ export async function runRepoChecks(root, _files, ctx) {
295
313
  }
296
314
  // Unused runtime dependencies (best-effort: skip well-known "invisible" deps)
297
315
  const invisibleDeps = new Set([
298
- "typescript", "vite", "esbuild", "tsx", "ts-node", "tsup",
299
- "@types/node", "@types/react", "@types/react-dom",
300
- "postcss", "autoprefixer", "tailwindcss", "@tailwindcss/vite", "@tailwindcss/typography",
301
- "eslint", "prettier", "husky", "lint-staged",
302
- "vitest", "jest", "@vitest/ui",
303
- "react", "react-dom", // used via JSX runtime, not import
304
- "@babel/parser", "@babel/traverse", "@babel/types",
305
- "chalk", "commander", "fast-glob", "open", "ora",
306
- "@babel/core", "@babel/preset-env", "@babel/preset-react", "@babel/preset-typescript",
307
- "webpack", "rollup", "parcel",
308
- "nodemon", "pm2",
309
- "cross-env", "dotenv", "dotenv-expand",
310
- "fs-extra", "glob", "rimraf", "mkdirp",
311
- "zx", "execa", "shelljs",
316
+ "typescript",
317
+ "vite",
318
+ "esbuild",
319
+ "tsx",
320
+ "ts-node",
321
+ "tsup",
322
+ "@types/node",
323
+ "@types/react",
324
+ "@types/react-dom",
325
+ "postcss",
326
+ "autoprefixer",
327
+ "tailwindcss",
328
+ "@tailwindcss/vite",
329
+ "@tailwindcss/typography",
330
+ "eslint",
331
+ "prettier",
332
+ "husky",
333
+ "lint-staged",
334
+ "vitest",
335
+ "jest",
336
+ "@vitest/ui",
337
+ "react",
338
+ "react-dom", // used via JSX runtime, not import
339
+ "@babel/parser",
340
+ "@babel/traverse",
341
+ "@babel/types",
342
+ "chalk",
343
+ "commander",
344
+ "fast-glob",
345
+ "open",
346
+ "ora",
347
+ "@babel/core",
348
+ "@babel/preset-env",
349
+ "@babel/preset-react",
350
+ "@babel/preset-typescript",
351
+ "webpack",
352
+ "rollup",
353
+ "parcel",
354
+ "nodemon",
355
+ "pm2",
356
+ "cross-env",
357
+ "dotenv",
358
+ "dotenv-expand",
359
+ "fs-extra",
360
+ "glob",
361
+ "rimraf",
362
+ "mkdirp",
363
+ "zx",
364
+ "execa",
365
+ "shelljs",
312
366
  "semver",
313
- "nitropack", "h3",
314
- "@tanstack/router-plugin", "@tanstack/react-router", "@tanstack/react-query", "@tanstack/react-start",
315
- "vite-plugin-pwa", "vite-tsconfig-paths",
316
- "clsx", "class-variance-authority", "tailwind-merge",
317
- "lucide-react", "react-icons",
318
- "date-fns", "dayjs", "luxon",
367
+ "nitropack",
368
+ "h3",
369
+ "@tanstack/router-plugin",
370
+ "@tanstack/react-router",
371
+ "@tanstack/react-query",
372
+ "@tanstack/react-start",
373
+ "vite-plugin-pwa",
374
+ "vite-tsconfig-paths",
375
+ "clsx",
376
+ "class-variance-authority",
377
+ "tailwind-merge",
378
+ "lucide-react",
379
+ "react-icons",
380
+ "date-fns",
381
+ "dayjs",
382
+ "luxon",
319
383
  "framer-motion",
320
- "marked", "dompurify",
384
+ "marked",
385
+ "dompurify",
321
386
  "react-hook-form",
322
387
  "recharts",
323
388
  "sonner",
@@ -356,7 +421,8 @@ export async function runRepoChecks(root, _files, ctx) {
356
421
  id: "unused-dependencies",
357
422
  category: "Performance & Bundle Size",
358
423
  severity: "low",
359
- file: "package.json", line: 1,
424
+ file: "package.json",
425
+ line: 1,
360
426
  message: `${unused.length} dependenc${unused.length === 1 ? "y" : "ies"} in package.json appear unused: ${shown.join(", ")}${unused.length > shown.length ? ", …" : ""}.`,
361
427
  why: "Unused deps still get installed, audited, and (if imported anywhere transitively) can end up in the bundle. They also slow every CI install and confuse new contributors.",
362
428
  fix: "Verify each one carefully before removing - some may be used in build configs or scripts! Move build-only tools to devDependencies.",
@@ -371,7 +437,8 @@ export async function runRepoChecks(root, _files, ctx) {
371
437
  id: "no-code-splitting",
372
438
  category: "Performance & Bundle Size",
373
439
  severity: "medium",
374
- file: "src", line: 1,
440
+ file: "src",
441
+ line: 1,
375
442
  message: `${routeFiles.length} routes/pages and zero dynamic imports — everything ships in one bundle.`,
376
443
  why: "Without code-splitting, a visitor to your landing page also downloads the admin dashboard, the settings screens, and every modal. First paint gets slower with every feature you add.",
377
444
  fix: "Wrap heavy or rarely-used routes in React.lazy(() => import('./Route')) + <Suspense>, or use your router's built-in lazy() API. Split third-party charts, editors and 3D scenes the same way.",
@@ -382,7 +449,15 @@ export async function runRepoChecks(root, _files, ctx) {
382
449
  // ─────────────────────────────────────────────────────────────────────
383
450
  // Unused CSS classes (skip Tailwind / CSS-modules)
384
451
  // ─────────────────────────────────────────────────────────────────────
385
- const cssFiles = await fg(["**/*.css", "!**/node_modules/**", "!**/dist/**", "!**/build/**", "!**/.next/**", "!**/.output/**", "!**/*.module.css"], { cwd: root, absolute: true, dot: false });
452
+ const cssFiles = await fg([
453
+ "**/*.css",
454
+ "!**/node_modules/**",
455
+ "!**/dist/**",
456
+ "!**/build/**",
457
+ "!**/.next/**",
458
+ "!**/.output/**",
459
+ "!**/*.module.css",
460
+ ], { cwd: root, absolute: true, dot: false });
386
461
  if (cssFiles.length) {
387
462
  // Build a haystack of everything CSS classes might be referenced from.
388
463
  let refHaystack = "";
@@ -427,7 +502,8 @@ export async function runRepoChecks(root, _files, ctx) {
427
502
  id: "unused-css-classes",
428
503
  category: "Performance & Bundle Size",
429
504
  severity: "low",
430
- file: rel, line: 1,
505
+ file: rel,
506
+ line: 1,
431
507
  message: `${unused.length} CSS class${unused.length === 1 ? "" : "es"} in ${rel} appear unused: ${shown.join(", ")}${unused.length > shown.length ? ", …" : ""}.`,
432
508
  why: "Dead CSS still ships to every visitor on every page load. Over time projects accumulate hundreds of orphan classes from deleted components — silent bloat that hurts First Contentful Paint on mobile.",
433
509
  fix: "Delete the unused selectors, or (better) enable PurgeCSS / Tailwind JIT / lightningcss to strip them at build time. If a class is only added dynamically, keep it — this check is heuristic.",
@@ -451,7 +527,8 @@ export async function runRepoChecks(root, _files, ctx) {
451
527
  id: "definer-rpc-execute",
452
528
  category: "Security & Permissions",
453
529
  severity: "critical",
454
- file: rel, line: 1,
530
+ file: rel,
531
+ line: 1,
455
532
  message: "Signed-in users may have EXECUTE on a definer-scoped RPC.",
456
533
  why: "SECURITY DEFINER functions run with the privileges of the creator (usually the postgres superuser). Granting EXECUTE to anon, public, or authenticated users can allow them to bypass Row Level Security (RLS) and escalate privileges.",
457
534
  fix: "Ensure you restrict EXECUTE to a specific service role, or rewrite the function to be SECURITY INVOKER (the default) so it respects the caller's RLS policies.",
@@ -25,9 +25,9 @@ function isMarketingRoute(rel) {
25
25
  return false;
26
26
  if (/_authenticated|admin|dashboard|api\//.test(rel))
27
27
  return false;
28
- return /(?:^|\/)index\.(tsx|jsx)$/.test(rel)
29
- || /routes\/(?:index|__root)\.(tsx|jsx)$/.test(rel)
30
- || !/_authenticated|admin/.test(rel);
28
+ return (/(?:^|\/)index\.(tsx|jsx)$/.test(rel) ||
29
+ /routes\/(?:index|__root)\.(tsx|jsx)$/.test(rel) ||
30
+ !/_authenticated|admin/.test(rel));
31
31
  }
32
32
  export const SEO_CHECK_COUNT = 5;
33
33
  export async function runSeoChecks(root, files) {
@@ -46,14 +46,19 @@ export async function runSeoChecks(root, files) {
46
46
  routeSources.push({ rel, content });
47
47
  }
48
48
  // ── og:image on public-facing routes ──────────────────────────────────
49
- const socialMetaSource = await readMaybe(path.join(root, "src/lib/social-meta.ts"))
50
- ?? await readMaybe(path.join(root, "src/lib/social-meta.tsx"));
51
- const hasOgImageMeta = (content) => /og:image|property:\s*["']og:image["']/i.test(content)
52
- || (/socialMeta|social-meta/.test(content) && !!socialMetaSource && /og:image/.test(socialMetaSource));
49
+ const socialMetaSource = (await readMaybe(path.join(root, "src/lib/social-meta.ts"))) ??
50
+ (await readMaybe(path.join(root, "src/lib/social-meta.tsx")));
51
+ const hasOgImageMeta = (content) => /og:image|property:\s*["']og:image["']/i.test(content) ||
52
+ (/socialMeta|social-meta/.test(content) &&
53
+ !!socialMetaSource &&
54
+ /og:image/.test(socialMetaSource));
53
55
  const marketingRoutes = routeSources.filter((r) => isMarketingRoute(r.rel));
54
56
  const routesMissingOgImage = marketingRoutes.filter((r) => !hasOgImageMeta(r.content));
55
57
  if (routesMissingOgImage.length > 0) {
56
- const names = routesMissingOgImage.map((r) => r.rel).slice(0, 3).join(", ");
58
+ const names = routesMissingOgImage
59
+ .map((r) => r.rel)
60
+ .slice(0, 3)
61
+ .join(", ");
57
62
  out.push({
58
63
  id: "missing-og-image",
59
64
  category: "SEO & Discoverability",
@@ -62,19 +67,21 @@ export async function runSeoChecks(root, files) {
62
67
  line: 1,
63
68
  message: "Public route(s) missing og:image — link previews will show no image.",
64
69
  why: "When someone shares your URL on Slack, Twitter, or iMessage, it looks broken without a preview image. First impressions matter.",
65
- fix: "Add a 1200×630 og:image (PNG or JPG) to /public, then add { property: \"og:image\", content: \"https://your-domain.com/og.png\" } to the route head().",
70
+ fix: 'Add a 1200×630 og:image (PNG or JPG) to /public, then add { property: "og:image", content: "https://your-domain.com/og.png" } to the route head().',
66
71
  aiPrompt: `In ${names}, add og:image and twitter:card meta tags pointing at a 1200×630 social preview image in /public.`,
67
72
  });
68
73
  }
69
74
  // ── missing critical OG tags on landing pages ──────────────────────────
70
75
  const checkTags = ["og:url", "og:logo", "og:title", "og:description"];
71
76
  for (const tag of checkTags) {
72
- const hasTag = (content) => new RegExp(`(?:${tag}|property:\\s*["']${tag}["'])`, "i").test(content)
73
- || (/socialMeta|social-meta/.test(content) && !!socialMetaSource && new RegExp(tag, "i").test(socialMetaSource));
77
+ const hasTag = (content) => new RegExp(`(?:${tag}|property:\\s*["']${tag}["'])`, "i").test(content) ||
78
+ (/socialMeta|social-meta/.test(content) &&
79
+ !!socialMetaSource &&
80
+ new RegExp(tag, "i").test(socialMetaSource));
74
81
  const missingRoutes = marketingRoutes.filter((r) => !hasTag(r.content));
75
82
  if (missingRoutes.length > 0) {
76
83
  out.push({
77
- id: `missing-${tag.replace(':', '-')}`,
84
+ id: `missing-${tag.replace(":", "-")}`,
78
85
  category: "SEO & Discoverability",
79
86
  severity: "medium",
80
87
  file: missingRoutes[0].rel,
@@ -82,13 +89,16 @@ export async function runSeoChecks(root, files) {
82
89
  message: `Landing page(s) missing ${tag}.`,
83
90
  why: `The ${tag} tag is critical for proper previews and branding when shared on platforms like LinkedIn, Slack, and Twitter.`,
84
91
  fix: `Add <meta property="${tag}" content="..." /> or configure it in your framework's metadata object.`,
85
- aiPrompt: `In ${missingRoutes.slice(0, 3).map(r => r.rel).join(", ")}, add the missing ${tag} meta tag to the page head or metadata object.`,
92
+ aiPrompt: `In ${missingRoutes
93
+ .slice(0, 3)
94
+ .map((r) => r.rel)
95
+ .join(", ")}, add the missing ${tag} meta tag to the page head or metadata object.`,
86
96
  });
87
97
  }
88
98
  }
89
99
  // ── sitemap ───────────────────────────────────────────────────────────
90
- const hasSitemap = (await exists(path.join(root, "public/sitemap.xml")))
91
- || relFiles.some((f) => /sitemap\.(?:xml|ts|tsx|js)$/i.test(f));
100
+ const hasSitemap = (await exists(path.join(root, "public/sitemap.xml"))) ||
101
+ relFiles.some((f) => /sitemap\.(?:xml|ts|tsx|js)$/i.test(f));
92
102
  const hasRobots = await exists(path.join(root, "public/robots.txt"));
93
103
  if (hasRobots && !hasSitemap) {
94
104
  const robots = await readMaybe(path.join(root, "public/robots.txt"));
@@ -13,10 +13,10 @@ export async function walk(root, extraIgnores = []) {
13
13
  "!**/packages/cli/**", // never scan the scanner itself
14
14
  ];
15
15
  // Cloud policy ignores: normalize to negated globs
16
- const cloudIgnoreGlobs = extraIgnores.map((ig) => ig.startsWith("!") ? ig : `!${ig}`);
17
- return fg([
18
- "**/*.{ts,tsx,js,jsx,mjs,cjs,dart,swift}",
19
- ...baseIgnores,
20
- ...cloudIgnoreGlobs,
21
- ], { cwd: root, absolute: true, dot: false });
16
+ const cloudIgnoreGlobs = extraIgnores.map((ig) => (ig.startsWith("!") ? ig : `!${ig}`));
17
+ return fg(["**/*.{ts,tsx,js,jsx,mjs,cjs,dart,swift}", ...baseIgnores, ...cloudIgnoreGlobs], {
18
+ cwd: root,
19
+ absolute: true,
20
+ dot: false,
21
+ });
22
22
  }
@@ -29,7 +29,7 @@ export async function checkUpdate() {
29
29
  clearTimeout(timeoutId);
30
30
  if (!res || !res.ok)
31
31
  return null;
32
- const data = await res.json();
32
+ const data = (await res.json());
33
33
  const latestVersion = data.version;
34
34
  if (!latestVersion || latestVersion === currentVersion)
35
35
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "periderm-cli",
3
- "version": "0.1.62",
3
+ "version": "0.1.69",
4
4
  "description": "Periderm CLI: A pre-launch checklist to catch user-losing bugs, legal liabilities, revenue leaks, runaway cloud bills and so many more before you ship.",
5
5
  "type": "module",
6
6
  "preferGlobal": true,
@@ -10,7 +10,8 @@
10
10
  "files": [
11
11
  "dist",
12
12
  "README.md",
13
- "scripts"
13
+ "scripts",
14
+ "assets"
14
15
  ],
15
16
  "keywords": [
16
17
  "cli",
@@ -46,12 +47,6 @@
46
47
  },
47
48
  "author": "Periderm",
48
49
  "license": "MIT",
49
- "scripts": {
50
- "build": "tsc -p tsconfig.json && chmod +x dist/bin.js",
51
- "postpublish": "cd ../../ && tsx --env-file=.env scripts/broadcast-update.ts",
52
- "dev": "tsx src/index.ts",
53
- "start": "node dist/index.js"
54
- },
55
50
  "dependencies": {
56
51
  "@babel/parser": "^7.25.0",
57
52
  "@babel/traverse": "^7.25.0",
@@ -59,6 +54,7 @@
59
54
  "chalk": "^5.3.0",
60
55
  "commander": "^12.1.0",
61
56
  "fast-glob": "^3.3.2",
57
+ "onnxruntime-node": "^1.29.0",
62
58
  "open": "^10.1.0",
63
59
  "ora": "^9.4.1"
64
60
  },
@@ -70,5 +66,10 @@
70
66
  },
71
67
  "engines": {
72
68
  "node": ">=18"
69
+ },
70
+ "scripts": {
71
+ "build": "tsc -p tsconfig.json && chmod +x dist/bin.js",
72
+ "dev": "tsx src/index.ts",
73
+ "start": "node dist/index.js"
73
74
  }
74
- }
75
+ }