Skip to content

feat: sanity check to validate entrypoints#669

Merged
joaomoreno merged 8 commits intomicrosoft:mainfrom
joerohde:main
Dec 31, 2021
Merged

feat: sanity check to validate entrypoints#669
joaomoreno merged 8 commits intomicrosoft:mainfrom
joerohde:main

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.
@joerohde joerohde marked this pull request as ready for review December 22, 2021 17:01
@joaomoreno joaomoreno self-assigned this Dec 31, 2021
@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