frontend-guardian 0.1.13 → 0.1.14

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/cli.js +2 -2
  2. package/package.json +10 -19
package/dist/cli.js CHANGED
@@ -6,7 +6,7 @@ import chalk from "chalk";
6
6
  import ora from "ora";
7
7
  import { scanFiles, scanZip } from "@justinmoto/frontend-guardian-core";
8
8
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
9
- const EXT = [".js", ".jsx", ".ts", ".tsx"];
9
+ const EXT = [".js", ".jsx", ".ts", ".tsx", ".css"];
10
10
  const IGNORE = ["node_modules", ".next", "dist", "build", ".git"];
11
11
  function isCodeFile(name) {
12
12
  return EXT.some((e) => name.toLowerCase().endsWith(e));
@@ -370,7 +370,7 @@ async function main() {
370
370
  if (stat.isDirectory()) {
371
371
  const files = readDirRecursive(resolved);
372
372
  if (files.length === 0) {
373
- console.error("No .js/.jsx/.ts/.tsx files found (or all under node_modules/.next/dist/build).");
373
+ console.error("No .js/.jsx/.ts/.tsx/.css files found (or all under node_modules/.next/dist/build).");
374
374
  process.exit(1);
375
375
  }
376
376
  const spinner = ora("Scanning " + files.length + " file(s)...").start();
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "frontend-guardian",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "Scan frontend projects for Tailwind & component consistency (Phase 1 CLI)",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "frontend-guardian": "./dist/cli.js"
8
8
  },
9
- "files": [
10
- "dist",
11
- "README.md"
12
- ],
9
+ "files": ["dist", "README.md"],
10
+ "scripts": {
11
+ "build": "tsc"
12
+ },
13
13
  "dependencies": {
14
+ "@justinmoto/frontend-guardian-core": "workspace:*",
14
15
  "chalk": "^5.3.0",
15
- "ora": "^8.0.1",
16
- "@justinmoto/frontend-guardian-core": "0.1.14"
16
+ "ora": "^8.0.1"
17
17
  },
18
18
  "devDependencies": {
19
19
  "typescript": "^5"
@@ -21,15 +21,6 @@
21
21
  "engines": {
22
22
  "node": ">=18"
23
23
  },
24
- "keywords": [
25
- "tailwind",
26
- "consistency",
27
- "frontend",
28
- "scan",
29
- "cli"
30
- ],
31
- "license": "MIT",
32
- "scripts": {
33
- "build": "tsc"
34
- }
35
- }
24
+ "keywords": ["tailwind", "consistency", "frontend", "scan", "cli"],
25
+ "license": "MIT"
26
+ }