Lines Matching refs:event
66 async run ([event, ...args], { path = this.npm.localPrefix, pkg } = {}) {
77 if (event === 'restart' && !scripts.restart) {
79 } else if (event === 'env' && !scripts.env) {
86 !Object.prototype.hasOwnProperty.call(scripts, event) &&
87 !(event === 'start' && (await isServerPackage(path)))
93 const suggestions = await didYouMean(path, event)
95 `Missing script: "${event}"${suggestions}\n\nTo see a list of scripts, run:\n npm run`
99 // positional args only added to the main event, not pre/post
100 const events = [[event, args]]
102 if (scripts[`pre${event}`]) {
103 events.unshift([`pre${event}`, []])
106 if (scripts[`post${event}`]) {
107 events.push([`post${event}`, []])
123 event: ev,