Skip to content

Commit

Permalink
fix: type & gacm ls current
Browse files Browse the repository at this point in the history
  • Loading branch information
kinfuy committed Mar 28, 2023
1 parent 1102711 commit b8fa5d5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/gacm.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ const useLs = async () => {
const length = Math.max(...userList.users.map((user) => user.alias.length + (user.alias !== user.name ? user.name.length : 0))) + 3;
const prefix = " ";
const messages = userList.users.map((user) => {
const currect = user.name === currectUser && user.email === currectEmail ? `${kolorist.green("*")}` : " ";
const currect = user.name === currectUser && user.email === currectEmail ? `${kolorist.green("\u25A0")} ` : " ";
const isSame = user.alias === user.name;
return `${prefix + currect}${isSame ? user.alias : `${user.alias}(${kolorist.gray(user.name)})`}${geneDashLine(user.name, length)}${user.email}`;
});
Expand Down
2 changes: 1 addition & 1 deletion dist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
"node-fetch": "2.6.6",
"prompts": "^2.4.2"
}
}
}
4 changes: 2 additions & 2 deletions package/commands/gacm/useLs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export const useLs = async () => {
const messages = userList.users.map((user) => {
const currect
= user.name === currectUser && user.email === currectEmail
? `${green('*')}`
: ' ';
? `${green('')} `
: ' ';

const isSame = user.alias === user.name;

Expand Down
5 changes: 3 additions & 2 deletions package/type/shell.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ export interface UserOldInfoJson extends Record<string, any> {

export type PackageManagertype = 'pnpm' | 'npm' | 'cnpm' | 'yarn';
export interface NrmCmd {
registry: string
packageManager: PackageManagertype
}

export interface TestCmd extends NrmCmd {
export interface TestCmd {
registry: string
all: boolean
}

0 comments on commit b8fa5d5

Please sign in to comment.