Hi,
I'm having big issue with using this cli in package.json script.
I want to change the version in a JSON file.
Can't escape the simple quote (')
Here is my script:
{
...
"replace:env": "replace-in-files --regex='\\'\\d+\\.\\d+\\.\\d+\\'' --replacement=\\'$npm_package_version\\' src/environments/environment.prod.ts src/environments/environment.ts",
}
And the return :
> replace-in-files --regex='\'\d+\.\d+\.\d+\'' --replacement=\'$npm_package_version\' src/environments/environment.prod.ts src/environments/environment.ts
The `--replacement` flag is required
Process finished with exit code 1
Really thanks for your help,
Julien
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too