Skip to content

Commit 4ec3191

Browse files
authored
Make default testing project easier to select (#1638)
Put JSCore Sandbox repo at top of list
1 parent dbd57b1 commit 4ec3191

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tools/config.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,14 @@ Promise.resolve(userToken || cachedToken)
5757
type: 'list',
5858
name: 'projectId',
5959
message: 'Which project would you like to use to test?',
60-
choices: projects.map(project => ({
61-
name: `${project.name} (${project.id})`,
62-
value: project
63-
}))
60+
choices: projects
61+
.sort(project =>
62+
project.name.toLowerCase().includes('jscore') ? -1 : 1
63+
)
64+
.map(project => ({
65+
name: `${project.name} (${project.id})`,
66+
value: project
67+
}))
6468
}
6569
]);
6670

0 commit comments

Comments
 (0)