Skip to content

Commit

Permalink
Only show config notice for app build
Browse files Browse the repository at this point in the history
  • Loading branch information
nawatts committed Aug 2, 2023
1 parent 5518726 commit b76a958
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .hooks/plugin-warning-logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ module.exports = {
}
},
wrapScriptExecution(executor, project, locator, scriptName) {
if (scriptName === 'build' && !process.env.CI) {
const workspace = project.getWorkspaceByLocator(locator);
const isTopLevelWorkspace = workspace.relativeCwd === '.';
if (isTopLevelWorkspace && scriptName === 'build' && !process.env.CI) {
return async () => {
const status = await executor()
console.warn('\x1b[1m' /* bold */ + '╔'.padEnd(79, '═') + '╗')
Expand Down

0 comments on commit b76a958

Please sign in to comment.