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: sanity check to validate entrypoints #669

Merged
merged 8 commits into from
Dec 31, 2021
Merged

feat: sanity check to validate entrypoints #669

merged 8 commits into from
Dec 31, 2021

Conversation

joerohde
Copy link
Contributor

@joerohde joerohde commented Dec 20, 2021

Fixes #670

With entrypoints 'main' and browser' it's increasingly possible to not have an entrypoint setup for packaging. The chances increase since there tends to be a lot of refactoring to support both runtime environments.

This PR adds a quick check via a *Processor class to make sure that any entrypoint declared in the package is actually going to be present in the extension folder of the vsix.

Tests consistent with package.test.ts have been added.

- For 'main' and 'browser' keys in package.json
  verify the files will be copied into the vsix.
src/package.ts Outdated Show resolved Hide resolved
src/test/package.test.ts Outdated Show resolved Hide resolved
src/test/package.test.ts Outdated Show resolved Hide resolved
src/test/package.test.ts Outdated Show resolved Hide resolved
src/test/package.test.ts Outdated Show resolved Hide resolved
src/package.ts Outdated Show resolved Hide resolved
@joaomoreno joaomoreno closed this Dec 31, 2021
@joaomoreno joaomoreno reopened this Dec 31, 2021
@joaomoreno joaomoreno added this to the January 2022 milestone Dec 31, 2021
@joaomoreno joaomoreno merged commit dc68cc8 into microsoft:main Dec 31, 2021
@github-actions
Copy link

🎉 This PR is included in version 2.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validate any declared main/browser entrypoints are in the final vsix.
2 participants