I'm trying to execute npm script using js
Have following in package.json
"script": {
"commit": "git commit -m {dynamic message}"
}
And in the JS i want to reach to this script, execute it and send dynamic message to it
I'm trying to execute npm script using js
Have following in package.json
"script": {
"commit": "git commit -m {dynamic message}"
}
And in the JS i want to reach to this script, execute it and send dynamic message to it
This will run commands it could be any command
const { execSync } = require('child_process')
execSync("some-command")