R
R
Roman Rodionov2016-09-22 22:08:55
JavaScript
Roman Rodionov, 2016-09-22 22:08:55

How to pass a variable to package.json from the command line?

How can I pass the password (in publishConfig.registry) from the outside (from the command line)?

{
  "name": "projectName",
  "version": "1.0.2",
  "publishConfig": {
    "registry":"http://username:[email protected]",
    "user": "username"
  }
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-09-25
@void01

a hundred times already on SO, use the start script
stackoverflow.com/questions/11580961/sending-comma...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question