@pro-vi/designer 0.3.1 → 0.3.2

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/dist/cli.js CHANGED
@@ -488,14 +488,17 @@ async function runDoctor() {
488
488
  return out;
489
489
  }
490
490
  function checkDeps() {
491
+ const rootLock = path.join(REPO_ROOT, 'package-lock.json');
492
+ if (!fs.existsSync(rootLock)) {
493
+ return { name: 'dependencies installed', status: 'ok', detail: 'installed-mode' };
494
+ }
491
495
  const nm = path.join(REPO_ROOT, 'node_modules');
492
496
  if (!fs.existsSync(nm)) {
493
- return { name: 'dependencies installed', status: 'fail', detail: 'node_modules missing — run `designer setup` or `npm install`' };
497
+ return { name: 'dependencies installed', status: 'fail', detail: 'node_modules missing — run `npm install`' };
494
498
  }
495
- const rootLock = path.join(REPO_ROOT, 'package-lock.json');
496
499
  const innerLock = path.join(nm, '.package-lock.json');
497
- if (!fs.existsSync(rootLock) || !fs.existsSync(innerLock)) {
498
- return { name: 'dependencies installed', status: 'ok', detail: 'node_modules present (no lockfile to compare)' };
500
+ if (!fs.existsSync(innerLock)) {
501
+ return { name: 'dependencies installed', status: 'ok', detail: 'node_modules present (no inner lockfile)' };
499
502
  }
500
503
  const h = (p) => createHash('sha1').update(fs.readFileSync(p)).digest('hex');
501
504
  if (h(rootLock) !== h(innerLock)) {
package/dist/setup.js CHANGED
@@ -92,12 +92,8 @@ async function step1NpmInstall() {
92
92
  const rootLock = path.join(REPO_ROOT, 'package-lock.json');
93
93
  const innerLock = path.join(nm, '.package-lock.json');
94
94
  if (!fs.existsSync(rootLock)) {
95
- if (fs.existsSync(nm)) {
96
- log('deps', 'ok', 'installed-mode (no package-lock to verify)');
97
- return true;
98
- }
99
- log('deps', 'fail', 'no package-lock.json and no node_modules — reinstall the package');
100
- return false;
95
+ log('deps', 'ok', 'installed-mode');
96
+ return true;
101
97
  }
102
98
  if (fs.existsSync(nm)) {
103
99
  const a = lockfileHash(rootLock);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pro-vi/designer",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "type": "module",
5
5
  "description": "MCP + CLI for autonomous iteration of claude.ai/design — drives the design surface via agent-browser, downloads handoff bundles, and exposes a tasting harness for full-viewport variant comparison.",
6
6
  "license": "MIT",