Skip to content

Translating strings in package.json #161

Answered by ivanhofer
ebennett48375 asked this question in Q&A
Discussion options

You must be logged in to vote

You would need to write a script that generates the package.json file for you. Something like:

const pck = {
   scripts: {
      test: `ECHO "${LL.hello()}"`
   }
}

writeFile(resolve('./package.json'), JSON.stringify(pck, undefined, 3))

Does this work for you?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ebennett48375
Comment options

Answer selected by ivanhofer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants