package.json:
{
"name": "app",
"version": "0.1.0",
"private": true,
"folders": {
"plugin": {
"dist": "\"/Users/User/Google Drive/App/Dist/plugin\""
}
},
"scripts": {
"remove_shared_dist": "rm -rf $npm_package_folders_plugin_dist"
}
}
I want to remove the following folder: /Users/User/Google Drive/App/Dist/plugin
.
I've wrapped its path with \"
to make the shell accept folder names with space; but it only prints
rm -rf $npm_package_folders_plugin_dist
and does absolutely nothing.
If I run rm -rf "/Users/User/Google Drive/App/Dist/plugin"
in terminal - it removes the folder as expected.
I'm on macOS