Skip to content

Commit 9cf2f28

Browse files
committed
chore: deconstruct for cleanliness
1 parent 3a06502 commit 9cf2f28

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/monorepo-tools/src/request-npm-token.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { getNpmTokenList } from './utils/get-npm-token-list';
1414

1515
async function main() {
1616
try {
17-
const requirements = await getNpmTokenList();
17+
const { scopes, packages } = await getNpmTokenList();
1818

1919
console.log(
2020
'Open an IAMSEC ticket with https://jira.mongodb.org/plugins/servlet/desk/portal/81/create/1380',
@@ -28,17 +28,17 @@ async function main() {
2828
);
2929

3030
console.log('Following Scopes:');
31-
if (requirements.scopes.length > 0) {
32-
requirements.scopes.forEach((scope) => {
31+
if (scopes.length > 0) {
32+
scopes.forEach((scope) => {
3333
console.log(scope);
3434
});
3535
} else {
3636
console.log('(none)');
3737
}
3838

3939
console.log('\nFollowing Packages:');
40-
if (requirements.packages.length > 0) {
41-
requirements.packages.forEach((pkg) => {
40+
if (packages.length > 0) {
41+
packages.forEach((pkg) => {
4242
console.log(pkg);
4343
});
4444
} else {

0 commit comments

Comments
 (0)