impeccable 2.0.6 → 2.1.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.
@@ -220,6 +220,18 @@ async function install(flags) {
220
220
  }
221
221
  }
222
222
 
223
+ // Clean up deprecated skills from previous versions
224
+ try {
225
+ const { cleanup } = await import('../../source/skills/impeccable/scripts/cleanup-deprecated.mjs');
226
+ const result = cleanup(root);
227
+ const total = result.deletedPaths.length + result.removedLockEntries.length;
228
+ if (total > 0) {
229
+ console.log(`Cleaned up ${total} deprecated skill(s) from previous versions.`);
230
+ }
231
+ } catch {
232
+ // Cleanup script not available -- skip
233
+ }
234
+
223
235
  console.log(`\nDone! Run /${prefix}impeccable teach in your AI harness to set up design context.\n`);
224
236
  }
225
237
 
@@ -356,6 +368,21 @@ function downloadFile(url, dest) {
356
368
 
357
369
  async function update(flags = []) {
358
370
  const yes = flags.includes('-y') || flags.includes('--yes');
371
+
372
+ // Clean up deprecated skills before updating, so npx skills update
373
+ // does not fail on entries that no longer exist in the source repo.
374
+ try {
375
+ const { cleanup } = await import('../../source/skills/impeccable/scripts/cleanup-deprecated.mjs');
376
+ const root = findProjectRoot();
377
+ const result = cleanup(root);
378
+ const total = result.deletedPaths.length + result.removedLockEntries.length;
379
+ if (total > 0) {
380
+ console.log(`Cleaned up ${total} deprecated skill(s) from previous versions.\n`);
381
+ }
382
+ } catch {
383
+ // Cleanup script not available (e.g. running from npm package) -- skip
384
+ }
385
+
359
386
  // Try npx skills update first
360
387
  console.log('Checking for skills manager...');
361
388
  let noLockFile = true;
package/package.json CHANGED
@@ -1,9 +1,31 @@
1
1
  {
2
2
  "name": "impeccable",
3
- "version": "2.0.6",
4
- "description": "Detect UI anti-patterns and design quality issues from the command line",
3
+ "version": "2.1.0",
5
4
  "author": "Paul Bakaus",
6
- "license": "BSL-1.1",
5
+ "description": "Design skills, commands, and anti-pattern detection for AI coding agents",
6
+ "keywords": [
7
+ "design",
8
+ "frontend",
9
+ "ux",
10
+ "skills",
11
+ "ai",
12
+ "anti-patterns",
13
+ "lint",
14
+ "accessibility",
15
+ "css",
16
+ "html",
17
+ "detection",
18
+ "ci-cd"
19
+ ],
20
+ "license": "Apache-2.0",
21
+ "homepage": "https://impeccable.style",
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/pbakaus/impeccable.git"
25
+ },
26
+ "engines": {
27
+ "node": ">=18"
28
+ },
7
29
  "type": "module",
8
30
  "bin": {
9
31
  "impeccable": "bin/cli.js"
@@ -18,34 +40,32 @@
18
40
  "src/",
19
41
  "LICENSE"
20
42
  ],
43
+ "scripts": {
44
+ "build": "bun run scripts/build.js",
45
+ "build:browser": "node scripts/build-browser-detector.js",
46
+ "build:extension": "node scripts/build-extension.js",
47
+ "clean": "rm -rf dist build",
48
+ "rebuild": "bun run clean && bun run build",
49
+ "dev": "bun run server/index.js",
50
+ "preview": "bun run build && wrangler pages dev",
51
+ "deploy": "bun run build && wrangler pages deploy build/",
52
+ "test": "bun test tests/build.test.js tests/detect-antipatterns.test.js && node --test tests/detect-antipatterns-fixtures.test.mjs && node --test tests/detect-antipatterns-browser.test.mjs && node --test tests/cleanup-deprecated.test.mjs",
53
+ "prepack": "cp README.md README.repo.md && cp README.npm.md README.md",
54
+ "postpack": "cp README.repo.md README.md && rm README.repo.md",
55
+ "screenshot": "bun run scripts/screenshot-antipatterns.js",
56
+ "og-image": "bun run scripts/generate-og-image.js"
57
+ },
21
58
  "dependencies": {
22
- "jsdom": "^29.0.0"
59
+ "jsdom": "^29.0.0",
60
+ "marked": "^16.1.0"
23
61
  },
24
62
  "optionalDependencies": {
25
63
  "puppeteer": "^24.39.1"
26
64
  },
27
- "scripts": {
28
- "test": "bun test tests/detect-antipatterns.test.js && node --test tests/detect-antipatterns-fixtures.test.mjs",
29
- "build:browser": "node scripts/build-browser-detector.js"
30
- },
31
- "keywords": [
32
- "design",
33
- "frontend",
34
- "ux",
35
- "anti-patterns",
36
- "lint",
37
- "accessibility",
38
- "css",
39
- "html",
40
- "detection",
41
- "ci-cd",
42
- "skills"
43
- ],
44
- "repository": {
45
- "type": "git",
46
- "url": "git+https://github.com/pbakaus/impeccable-detect.git"
47
- },
48
- "engines": {
49
- "node": ">=18.0.0"
65
+ "devDependencies": {
66
+ "archiver": "^7.0.1",
67
+ "motion": "^12.38.0",
68
+ "playwright": "^1.58.2",
69
+ "wrangler": "^4.75.0"
50
70
  }
51
71
  }