-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For some reason we need to both ignore the module's folder in `.flowconfig` and stub its types via `flow-typed` (no defnitions for v17.x are available at the moment) for flow to stop giving the following error on the `require` call: Cannot resolve module /home/erwan/repositories/cozy/desktop/node_modules/yargs/index.cjs
- Loading branch information
1 parent
a60ffa8
commit a89f7f1
Showing
5 changed files
with
224 additions
and
198 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,175 @@ | ||
// flow-typed signature: 0e40564d80be151a7cd75d1f853019bb | ||
// flow-typed version: <<STUB>>/yargs_v17.3.1/flow_v0.98.0 | ||
|
||
/** | ||
* This is an autogenerated libdef stub for: | ||
* | ||
* 'yargs' | ||
* | ||
* Fill this stub out by replacing all the `any` types. | ||
* | ||
* Once filled out, we encourage you to share your work with the | ||
* community by sending a pull request to: | ||
* https://github.com/flowtype/flow-typed | ||
*/ | ||
|
||
declare module 'yargs' { | ||
declare module.exports: any; | ||
} | ||
|
||
/** | ||
* We include stubs for each file inside this npm package in case you need to | ||
* require those files directly. Feel free to delete any files that aren't | ||
* needed. | ||
*/ | ||
declare module 'yargs/build/lib/argsert' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'yargs/build/lib/command' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'yargs/build/lib/completion-templates' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'yargs/build/lib/completion' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'yargs/build/lib/middleware' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'yargs/build/lib/parse-command' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'yargs/build/lib/typings/common-types' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'yargs/build/lib/typings/yargs-parser-types' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'yargs/build/lib/usage' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'yargs/build/lib/utils/apply-extends' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'yargs/build/lib/utils/is-promise' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'yargs/build/lib/utils/levenshtein' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'yargs/build/lib/utils/maybe-async-result' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'yargs/build/lib/utils/obj-filter' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'yargs/build/lib/utils/process-argv' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'yargs/build/lib/utils/set-blocking' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'yargs/build/lib/utils/which-module' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'yargs/build/lib/validation' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'yargs/build/lib/yargs-factory' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'yargs/build/lib/yerror' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'yargs/helpers' { | ||
declare module.exports: any; | ||
} | ||
|
||
// Filename aliases | ||
declare module 'yargs/build/lib/argsert.js' { | ||
declare module.exports: $Exports<'yargs/build/lib/argsert'>; | ||
} | ||
declare module 'yargs/build/lib/command.js' { | ||
declare module.exports: $Exports<'yargs/build/lib/command'>; | ||
} | ||
declare module 'yargs/build/lib/completion-templates.js' { | ||
declare module.exports: $Exports<'yargs/build/lib/completion-templates'>; | ||
} | ||
declare module 'yargs/build/lib/completion.js' { | ||
declare module.exports: $Exports<'yargs/build/lib/completion'>; | ||
} | ||
declare module 'yargs/build/lib/middleware.js' { | ||
declare module.exports: $Exports<'yargs/build/lib/middleware'>; | ||
} | ||
declare module 'yargs/build/lib/parse-command.js' { | ||
declare module.exports: $Exports<'yargs/build/lib/parse-command'>; | ||
} | ||
declare module 'yargs/build/lib/typings/common-types.js' { | ||
declare module.exports: $Exports<'yargs/build/lib/typings/common-types'>; | ||
} | ||
declare module 'yargs/build/lib/typings/yargs-parser-types.js' { | ||
declare module.exports: $Exports<'yargs/build/lib/typings/yargs-parser-types'>; | ||
} | ||
declare module 'yargs/build/lib/usage.js' { | ||
declare module.exports: $Exports<'yargs/build/lib/usage'>; | ||
} | ||
declare module 'yargs/build/lib/utils/apply-extends.js' { | ||
declare module.exports: $Exports<'yargs/build/lib/utils/apply-extends'>; | ||
} | ||
declare module 'yargs/build/lib/utils/is-promise.js' { | ||
declare module.exports: $Exports<'yargs/build/lib/utils/is-promise'>; | ||
} | ||
declare module 'yargs/build/lib/utils/levenshtein.js' { | ||
declare module.exports: $Exports<'yargs/build/lib/utils/levenshtein'>; | ||
} | ||
declare module 'yargs/build/lib/utils/maybe-async-result.js' { | ||
declare module.exports: $Exports<'yargs/build/lib/utils/maybe-async-result'>; | ||
} | ||
declare module 'yargs/build/lib/utils/obj-filter.js' { | ||
declare module.exports: $Exports<'yargs/build/lib/utils/obj-filter'>; | ||
} | ||
declare module 'yargs/build/lib/utils/process-argv.js' { | ||
declare module.exports: $Exports<'yargs/build/lib/utils/process-argv'>; | ||
} | ||
declare module 'yargs/build/lib/utils/set-blocking.js' { | ||
declare module.exports: $Exports<'yargs/build/lib/utils/set-blocking'>; | ||
} | ||
declare module 'yargs/build/lib/utils/which-module.js' { | ||
declare module.exports: $Exports<'yargs/build/lib/utils/which-module'>; | ||
} | ||
declare module 'yargs/build/lib/validation.js' { | ||
declare module.exports: $Exports<'yargs/build/lib/validation'>; | ||
} | ||
declare module 'yargs/build/lib/yargs-factory.js' { | ||
declare module.exports: $Exports<'yargs/build/lib/yargs-factory'>; | ||
} | ||
declare module 'yargs/build/lib/yerror.js' { | ||
declare module.exports: $Exports<'yargs/build/lib/yerror'>; | ||
} | ||
declare module 'yargs/helpers/index' { | ||
declare module.exports: $Exports<'yargs/helpers'>; | ||
} | ||
declare module 'yargs/helpers/index.js' { | ||
declare module.exports: $Exports<'yargs/helpers'>; | ||
} |
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
Oops, something went wrong.