-
Notifications
You must be signed in to change notification settings - Fork 995
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deno): get yargs working on [email protected] (#1799)
- Loading branch information
Showing
6 changed files
with
23 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,9 +11,9 @@ import { | |
posix, | ||
} from 'https://deno.land/std/path/mod.ts'; | ||
|
||
import cliui from 'https://deno.land/x/[email protected].0-deno/deno.ts'; | ||
import cliui from 'https://deno.land/x/[email protected].4-deno/deno.ts'; | ||
import escalade from 'https://deno.land/x/[email protected]/sync.ts'; | ||
import Parser from 'https://deno.land/x/[email protected].0-deno/deno.ts'; | ||
import Parser from 'https://deno.land/x/[email protected].4-deno/deno.ts'; | ||
import y18n from 'https://deno.land/x/[email protected]/deno.ts'; | ||
import {YError} from '../../build/lib/yerror.js'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
// expose types for the benefit of Deno. | ||
import type { | ||
YargsInstance as YargsType, | ||
Arguments, | ||
} from './build/lib/yargs-factory.d.ts'; | ||
declare type ArgsOutput = (string | number)[]; | ||
|
||
export type {Arguments, YargsType}; | ||
// TODO(bcoe): attempt to get the types for YargsInstance working again. | ||
export interface Arguments { | ||
/** Non-option arguments */ | ||
_: ArgsOutput; | ||
/** Arguments after the end-of-options flag `--` */ | ||
'--'?: ArgsOutput; | ||
/** All remaining options */ | ||
[argName: string]: any; | ||
} |