Skip to content

Conversation

@mshanemc
Copy link
Contributor

@mshanemc mshanemc commented Nov 25, 2025

What does this PR do?

scripts to update features/settings
loosely based on SDR's https://github.com/forcedotcom/source-deploy-retrieve/blob/main/.github/workflows/supportedMetadataUpdate.yml

What issues does this PR fix or reference?

@W-20268495@
fix forcedotcom/schemas#81

@mshanemc mshanemc requested a review from a team as a code owner November 25, 2025 19:35
SfProject,
SfProjectJson,
isPackagingDirectory,
isNamedPackagingDirectory,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cursor agent review caught that docs referenced these 2 type guards but they weren't exported

])
);

export type Features = z.infer<typeof FeaturesSchema>;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some unused exports in the previous pr. this pr adds the knip which we've found really useful at reducing ai slop

import { simpleFeaturesList } from '../../../src/schema/project-scratch-def/simpleFeaturesList';

describe('simpleFeaturesList', () => {
it('should not contain any features with <value> (those belong in patternFeaturesList)', () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one of the features had extra whitespace, so this makes sure that no new pattern gets introduced that will not be properly classified between simple vs. pattern features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants