@payloadcms/figma 0.0.1-alpha.72 → 0.0.1-alpha.73

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.
@@ -190,8 +190,8 @@ async function maybeInstallPayloadSkill(args) {
190
190
  if (projectInfo.hasPayload) {
191
191
  // Validate existing Payload version
192
192
  if (projectInfo.payloadVersion && !validatePayloadVersion(projectInfo.payloadVersion)) {
193
- p.log.warn(pc.yellow(`Payload version ${projectInfo.payloadVersion} detected. Version 3.x is required.`));
194
- p.note('Upgrade to Payload 3.x before continuing', 'Action Required');
193
+ p.log.warn(pc.yellow(`Payload version ${projectInfo.payloadVersion} detected. Version 3.x or newer is required.`));
194
+ p.note('Upgrade to Payload 3.x or newer before continuing', 'Action Required');
195
195
  process.exit(1);
196
196
  }
197
197
  p.log.success(pc.green(`✓ Payload ${projectInfo.payloadVersion || 'detected'}`));
@@ -12,7 +12,7 @@ import type { PackageManager } from './package-manager.js';
12
12
  */
13
13
  export declare function detectPayloadProject(projectPath?: string): Promise<ProjectInfo>;
14
14
  /**
15
- * Validate Payload version (must be 3.x)
15
+ * Validate Payload version (must be 3.x or newer)
16
16
  *
17
17
  * @param version - Version string from package.json
18
18
  * @returns True if version is valid
@@ -53,7 +53,7 @@ import { getOwnVersion } from './version-check.js';
53
53
  }
54
54
  }
55
55
  /**
56
- * Validate Payload version (must be 3.x)
56
+ * Validate Payload version (must be 3.x or newer)
57
57
  *
58
58
  * @param version - Version string from package.json
59
59
  * @returns True if version is valid
@@ -64,7 +64,7 @@ import { getOwnVersion } from './version-check.js';
64
64
  return false;
65
65
  }
66
66
  const majorVersion = parseInt(match[1], 10);
67
- return majorVersion === 3;
67
+ return majorVersion >= 3;
68
68
  }
69
69
  /**
70
70
  * Resolve a package version from an npm dist-tag or an explicit version.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payloadcms/figma",
3
- "version": "0.0.1-alpha.72",
3
+ "version": "0.0.1-alpha.73",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "type": "module",
6
6
  "exports": {