Skip to content

Commit

Permalink
chore(git-init): update default master branch to main
Browse files Browse the repository at this point in the history
  • Loading branch information
Michel Ruffieux committed Sep 25, 2021
1 parent 8460c2e commit 7c33e14
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion libs/vscode/tasks/src/lib/nx-task-commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const AFFECTED_OPTIONS: Option[] = [
{
name: 'base',
type: OptionType.String,
description: 'Base of the current branch (usually master)',
description: 'Base of the current branch (usually main)',
},
{
name: 'head',
Expand Down
2 changes: 1 addition & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
".eslintrc.json": "*"
},
"affected": {
"defaultBase": "master"
"defaultBase": "main"
},
"npmScope": "nx-console",
"tasksRunnerOptions": {
Expand Down
10 changes: 5 additions & 5 deletions package-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const { join } = require('path');

function affected(affectedCommand) {
return {
'origin-master': `nx affected:${affectedCommand} --base=origin/master --parallel --silent --ci`,
'upstream-master': `nx affected:${affectedCommand} --base=upstream/master --parallel --silent --ci`,
'origin-main': `nx affected:${affectedCommand} --base=origin/main --parallel --silent --ci`,
'upstream-main': `nx affected:${affectedCommand} --base=upstream/main --parallel --silent --ci`,
};
}

Expand Down Expand Up @@ -52,14 +52,14 @@ module.exports = {
),
},
format: {
default: 'nx format:write --base=upstream/master',
default: 'nx format:write --base=upstream/main',
and: {
lint: {
check: nps.concurrent.nps('format.check', 'lint'),
},
},
write: 'nx format:write --base=upstream/master',
check: 'nx format:check --base=upstream/master',
write: 'nx format:write --base=upstream/main',
check: 'nx format:check --base=upstream/main',
},
storybook: {
default: 'nx run vscode-ui-feature-task-execution-form:storybook',
Expand Down

0 comments on commit 7c33e14

Please sign in to comment.