Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions scripts/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Comment on lines +162 to +166

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: The skipCache option is added but not used anywhere in the task execution code. Need to implement the actual cache skipping logic.

debug: {
type: 'boolean',
description: 'Print all the logs to the console',
Expand Down
5 changes: 3 additions & 2 deletions scripts/tasks/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down