@netlify/build-info
Advanced tools
Comparing version 7.4.3 to 7.5.0
@@ -11,6 +11,12 @@ import { isNpmBuildScript, isNpmDevScript } from '../get-commands.js'; | ||
if (scripts && Object.keys(scripts).length > 0) { | ||
return Object.entries(scripts).map(([scriptName, value]) => ({ | ||
type: isNpmDevScript(scriptName, value) ? 'dev' : isNpmBuildScript(scriptName, value) ? 'build' : 'unknown', | ||
command: `pnpm --filter ${name} run ${scriptName}`, | ||
})); | ||
return Object.entries(scripts).map(([scriptName, value]) => { | ||
const isBuild = isNpmBuildScript(scriptName, value); | ||
const isDev = isNpmDevScript(scriptName, value); | ||
return { | ||
type: isDev ? 'dev' : isBuild ? 'build' : 'unknown', | ||
// the ... in the command is telling pnpm to run all dependents first. | ||
// but we should only do it for building | ||
command: `pnpm --filter ${name}${isBuild ? '...' : ''} run ${scriptName}`, | ||
}; | ||
}); | ||
} | ||
@@ -17,0 +23,0 @@ return []; |
{ | ||
"name": "@netlify/build-info", | ||
"version": "7.4.3", | ||
"version": "7.5.0", | ||
"description": "Build info utility", | ||
@@ -76,3 +76,3 @@ "type": "module", | ||
}, | ||
"gitHead": "cb267888c86d49df78734852c6ce42f8b306ed66" | ||
"gitHead": "556771e4d27fbae9bbf28df5c6613086dd6ff5a8" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
300121
5591