A VS Code extension requires the contributions met...
# javascript
e
A VS Code extension requires the contributions metadata to be inside
package.json
Looking at how to customize the file, I found this: https://kotlinlang.org/docs/js-project-setup.html#package-json-customization Being that an extension's
package.json
may go well beyond 1000 lines, doing it like that is extremely inconvenient impossible. Would it be possible somehow to implement JSON "merging"? I can probably do it myself via an additional Gradle task, but maybe it's worth a YT issue? Or was it ruled out already?
t
Looks like custom merge task is fine (best) solution
Which information you need from default
package.json
?
e
@turansky only the main entry point and dependencies entries are crucial. The rest can be changed at merge time.
t
Looks like typical case for custom task
e
Does Gradle offers something built-in for JSON manipulation that could help here?
t
Kotlin serialization - my favourite
Not build-in :(
e
Should adding it to the buildscript classpath be sufficient? Not sure if attaching the new task to jsPackageJson or jsPublicPackageJson
And there are also jsTestPackageJson and jsTestPublicPackageJson. A common "entry point" would be nice
t
Custom plugin - fine entry point :)