Skip to content

fix: prevent publish test-workspaces W-19605327#624

Closed
madhur310 wants to merge 1 commit intomainfrom
madhur/fix-publish
Closed

fix: prevent publish test-workspaces W-19605327#624
madhur310 wants to merge 1 commit intomainfrom
madhur/fix-publish

Conversation

@madhur310
Copy link
Contributor

What does this PR do?

What issues does this PR fix or reference?

@W-19605327@

@madhur310 madhur310 requested a review from a team as a code owner September 30, 2025 23:18
@madhur310 madhur310 requested review from RitamAgrawal and mshanemc and removed request for RitamAgrawal September 30, 2025 23:18
Copy link
Contributor

Choose a reason for hiding this comment

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

Huh. We don't normally use npmignore. The normal approach is to have a files property on the package.json that says what files go in, instead of trying to explicitly ignore files.

Copy link
Contributor

Choose a reason for hiding this comment

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

ex: https://github.com/forcedotcom/sfdx-core/blob/69c0055e7303decdc6d4d79d4ea1944f7e90287a/package.json#L50

I'd rather have "e2e failed because you forgot to put something in package.json#files" rather than, "you accidentally package unnecessary stuff because you didn't put it in the .npmignore file"

"extensions.ignoreRecommendations": true,
"salesforcedx-vscode-lightning.activationMode": "always",
"salesforcedx-vscode-lightning.showLightningExplorer": true,
"salesforcedx-vscode-core.internal-development": true
Copy link
Contributor

Choose a reason for hiding this comment

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

are these sneaking in from writing base-context?

private async writeCodeWorkspace(): Promise<void> {
const workspacePath = path.join(this.workspaceRoots[0], 'core.code-workspace');

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe we're missing some kind of check to verify that you're working in the salesforce internal repo that all this supports?

Copy link
Contributor

Choose a reason for hiding this comment

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

the big problem with making changes is that we don't test that scenario at all (using ext for internal development) but there's probably users that need it.

@madhur310
Copy link
Contributor Author

closing after further discussion offline, we will be moving things to mono repo anyways.

@madhur310 madhur310 closed this Oct 1, 2025
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.

2 participants