Single quotes omitted from output of replace in npm script #14
Closed
Description
We were using version 1.1.1 of replace in our project in the following npm script.
"replace:envConfigs": "replace '__APP_VERSION__' \"'$npm_package_version'\" ./dist/lib-esm -r --include='*.js'"
We used this to fill in the application version in the following line of code.
const version = __APP_VERSION__;
After updating to replace 1.1.3, our build broke.
Output of replace 1.1.1
var version = '0.1.11';
Output of replace 1.1.3
var version = 0.1.11;
Is this a bug or user error? If a user error, how should we modify our build script.
Metadata
Assignees
Labels
No labels