diff --git a/.changeset/remove-cap-root-dir-convention-warning.md b/.changeset/remove-cap-root-dir-convention-warning.md new file mode 100644 index 00000000..084ec8c0 --- /dev/null +++ b/.changeset/remove-cap-root-dir-convention-warning.md @@ -0,0 +1,5 @@ +--- +'@salesforce/b2c-tooling-sdk': patch +--- + +Remove the CAP validation warning that flagged a root directory not matching the `{id}-v{version}` naming convention. This convention is no longer required, so the check has been dropped from `b2c cap validate` (and `b2c cap install`). diff --git a/packages/b2c-tooling-sdk/src/operations/cap/validate.ts b/packages/b2c-tooling-sdk/src/operations/cap/validate.ts index 4590b0d8..868b4118 100644 --- a/packages/b2c-tooling-sdk/src/operations/cap/validate.ts +++ b/packages/b2c-tooling-sdk/src/operations/cap/validate.ts @@ -116,14 +116,6 @@ export async function validateCap(target: string): Promise if (errors.filter((e) => e.startsWith('commerce-app.json:')).length === 0) { manifest = raw as unknown as CommerceAppManifest; } - // Check root dir naming convention - const dirName = path.basename(capDir); - if (manifest && dirName !== '.' && dirName !== tempDir) { - const expectedName = `${manifest.id}-v${manifest.version}`; - if (dirName !== expectedName) { - warnings.push(`Root directory "${dirName}" does not match expected convention "${expectedName}"`); - } - } } catch { errors.push('commerce-app.json: file exists but is not valid JSON'); }