Skip to content

Commit

Permalink
fixup! fixup! fixup! fix: use regexp selector instaed of original syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinyaigeek committed Jan 30, 2023
1 parent cbc19e7 commit c93730e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion exec/plugin-commands-script-runners/src/run.ts
Expand Up @@ -337,8 +337,12 @@ function renderCommands (commands: string[][]) {
function getSpecifiedScripts (scripts: PackageScripts, scriptName: string) {
const specifiedSelector = getSpecifiedScriptWithoutStartCommand(scripts, scriptName)

if (specifiedSelector.length > ) {
return specifiedSelector
}

// if a user passes start command as scriptName, `node server.js` will be executed as a fallback, so return start command even if start command is not defined in package.json
if (specifiedSelector.length < 1 && scriptName === 'start') {
if (scriptName === 'start') {
return [scriptName]
}

Expand Down

0 comments on commit c93730e

Please sign in to comment.