Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add tsconfig and .ts file extensions to .forceignore #590

Merged
merged 3 commits into from
Jul 4, 2024

Conversation

jmsjtu
Copy link
Collaborator

@jmsjtu jmsjtu commented Jun 26, 2024

What does this PR do?

This PR adds tsconfig.json and .ts file extensions to the .forceignore file.

What issues does this PR fix or reference?

@W-15577958@

@jmsjtu jmsjtu requested a review from a team as a code owner June 26, 2024 01:04
@jmsjtu jmsjtu requested a review from mingxuanzhangsfdx June 26, 2024 01:04
Comment on lines 200 to +204
const forceignoreContent = fs.readFileSync(forceignorePath, 'utf8');
expect(forceignoreContent).toContain('**/jsconfig.json');
expect(forceignoreContent).toContain('**/tsconfig.json');
expect(forceignoreContent).toContain('**/.eslintrc.json');
expect(forceignoreContent).toContain('**/*.ts');
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've also manually verified this works in a sfdx workspace by running the following sf cli command:

sf project list ignored --source-dir force-app/main/default

Which results in the following:

Found the following ignored files:
...
force-app/main/default/lwc/test/test.ts
force-app/main/default/lwc/tsconfig.json

@daphne-sfdc daphne-sfdc self-requested a review June 27, 2024 19:43
Copy link
Contributor

@daphne-sfdc daphne-sfdc left a comment

Choose a reason for hiding this comment

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

Approved! 🎉

Test plan here: https://salesforce.quip.com/sDj1A1hsPBXT

@daphne-sfdc daphne-sfdc merged commit 81e6bc7 into forcedotcom:main Jul 4, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants