I want to programmatically enter the following settings in my package.json file
"jest": {
"transform": {
"^.+\\.svelte$": "svelte-jester",
"^.+\\.js$": "babel-jest"
}
},
Yeap, it doesn't seem easy at all...
I tried with:
$ npx npe 'jest.transform.^.+\\.svelte$' "svelte-jester"
and I get
"jest5": {
"transform": {
"^": {
"+\\\\": {
"svelte$": "svelte-jester"
}
}
}
}
Any way to achieve it?
Any way to tell npe to treat . as part of the key?
And how about the slashes that are being duplicated?
I want to programmatically enter the following settings in my package.json file
Yeap, it doesn't seem easy at all...
I tried with:
and I get
Any way to achieve it?
Any way to tell npe to treat
.as part of the key?And how about the slashes that are being duplicated?