Skip to content

Commit

Permalink
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions scripts/task.ts
Original file line number Diff line number Diff line change
@@ -159,6 +159,11 @@ export const options = createOptions({
description: "Don't execute commands, just list them (dry run)?",
promptType: false,
},
skipCache: {
type: 'boolean',
description: 'Skip NX remote cache?',
promptType: false,
},
debug: {
type: 'boolean',
description: 'Print all the logs to the console',
5 changes: 3 additions & 2 deletions scripts/tasks/compile.ts
Original file line number Diff line number Diff line change
@@ -37,9 +37,10 @@ export const compile: Task = {
return false;
}
},
async run({ codeDir }, { link, dryRun, debug, prod }) {
async run({ codeDir }, { link, dryRun, debug, prod, skipCache }) {
const command = link && !prod ? linkCommand : noLinkCommand;
return exec(
link && !prod ? linkCommand : noLinkCommand,
`${command} ${skipCache ? '--skip-nx-cache' : ''}`,
{ cwd: codeDir },
{
startMessage: '🥾 Bootstrapping',

0 comments on commit 4aec7ef

Please sign in to comment.