This repository was archived by the owner on Aug 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import {PJSON} from './pjson'
10
10
import * as Plugin from './plugin'
11
11
import { Topic } from './topic'
12
12
import { tsPath } from './ts_node'
13
- import { compact , flatMap , loadJSONSync } from './util'
13
+ import { compact , flatMap , loadJSONSync , uniq } from './util'
14
14
15
15
export type PlatformTypes = 'darwin' | 'linux' | 'win32' | 'aix' | 'freebsd' | 'openbsd' | 'sunos'
16
16
export type ArchTypes = 'arm' | 'arm64' | 'mips' | 'mipsel' | 'ppc' | 'ppc64' | 's390' | 's390x' | 'x32' | 'x64' | 'x86'
@@ -22,6 +22,8 @@ export interface Options extends Plugin.Options {
22
22
const debug = Debug ( )
23
23
24
24
export interface IConfig {
25
+ name : string
26
+ version : string
25
27
pjson : PJSON . CLI
26
28
/**
27
29
* process.arch
@@ -261,7 +263,7 @@ export class Config implements IConfig {
261
263
}
262
264
263
265
get commands ( ) : Command . Plugin [ ] { return flatMap ( this . plugins , p => p . commands ) }
264
- get commandIDs ( ) { return this . commands . map ( c => c . id ) }
266
+ get commandIDs ( ) { return uniq ( this . commands . map ( c => c . id ) ) }
265
267
266
268
protected dir ( category : 'cache' | 'data' | 'config' ) : string {
267
269
const base = process . env [ `XDG_${ category . toUpperCase ( ) } _HOME` ]
You can’t perform that action at this time.
0 commit comments