I have a package.json and some of the dependencies versions are:
...
"dependencies": {
"@octopol/common": "workspace:packages/common",
}
...
I want to replace all these (workspace:packages/<something>) versions with, for example, 1.0.0.
I tried this:
`"@octopol/common": "workspace:packages/common","@octopol/aa": "workspace:packages/aa",`
.replace(/(workspace:packages\/(.*))/g, "1.0.0")
I was expecting to get:
"@octopol/common": "1.0.0","@octopol/aa": "1.0.0",
But the result was:
'"@octopol/common": "1.0.0'
What am I missing here?
"@octopol/common": "workspace:packages/common","@octopol/aa": "workspace:packages/aa",.replace(/(?!\")(workspace:packages\/(.*?)(?=\"))/g, "1.0.0"); regex101.com/r/DxCUlt/1