I'm trying to add node-notifier-cli in development build script, however as a script, it does not work:
package.json
{
"scripts": {
"notify": "notify -t \"Development\" -m \"Build complete.\""
}
}
nodemon.json
Does not work
{
"events": {
"restart": "npm run build && npm run notify"
}
}
Works
{
"events": {
"restart": "npm run build && osascript -e 'display notification \"app restarted\" with title \"nodemon\"'"
}
}
I'm trying to add
node-notifier-cliin development build script, however as a script, it does not work:package.jsonnodemon.jsonDoes not work
Works