Is there a way with the js plugin to add to the pa...
# javascript
a
Is there a way with the js plugin to add to the package.json file that's created in
build/js
?
r
What do you want to add?
a
I want to add a start command so that I can test my function w/ GCP / Firebase
also need to tell it which file is the “main” for the project.
Copy code
nodejs() {
      runTask {
        nodeJs.npmInstallTask.packageJsonFiles
      }
    }
looks maybe like I could this way
r
I used this way to add
resolution
to this
package.json
file: https://kotlinlang.slack.com/archives/C0B8L3U69/p1586568298280500
a
cool thanks, right now I was reading the entire package.json in and then chagnging it to what I want and writing it out again. Probably invalidating the cache every time.
I was trying to copy the entire directory but that wasn’t working, something with the copy task messes up and binary files that are in node_modules