Make updates to imports after bumping local-dev-lib version #281
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description and Context
This PR needs to be merged into the PR to add JSON schema validation to the extension: #280
In the schema validation PR, we need to bump the
@hubspot/local-dev-lib
package version to^3.1.0
to be compatible with the new dependency@hubspot/project-parsing-lib
library which also contains LDL as a dependency.There are significant differences between the two versions of LDL, and so I've made updates to the code where needed.
IMPORTANT NOTE PLEASE READ:
Some imports from
@hubspot/local-dev-lib
must keep CommonJS syntax. This is because:@hubspot/local-dev-lib
, theexports
field in thepackage.json
file exports thelib
folder like this:Only ES modules can read the
exports
field.VSCode extensions don't support ES Modules. I'm not joking, this is a very active issue.
Ergo, imports from the
/lib
folder must keep CommonJS syntax.We could mess with the
tsconfig.json
file to try to changecompilerOptions.module
tonodenext
ornode16
and override any issues, but Microsoft specifically warns against any hacks. They're brittle and prone to breakage.TODO
Who to Notify
@TanyaScales @brandenrodgers @camden11 @joe-yeager