Skip to content

Commit

Permalink
fix: add missed types for which
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Mar 15, 2022
1 parent 7581673 commit e1386a8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ Fixes #<issue_number_goes_here>
> It's a good idea to open an issue first for discussion.
- [ ] Tests pass
- [ ] Appropriate changes to README are included in PR
- [ ] Appropriate changes to README are included in PR
- [ ] Types updated
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"@types/fs-extra": "^9.0.13",
"@types/minimist": "^1.2.2",
"@types/node": "^17.0",
"@types/which": "^2.0.1",
"chalk": "^5.0.1",
"fs-extra": "^10.0.1",
"globby": "^13.1.1",
Expand Down
2 changes: 2 additions & 0 deletions src/globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
path as _path,
question,
sleep,
which as _which,
} from './index'

declare global {
Expand All @@ -28,4 +29,5 @@ declare global {
var path: typeof _path
var question: question
var sleep: sleep
var which: typeof _which
}
2 changes: 2 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {ChalkInstance} from 'chalk'
import * as _yaml from 'yaml'
import _fetch from 'node-fetch'
import {ParsedArgs} from 'minimist'
import * as _which from 'which'

interface $ {
(pieces: TemplateStringsArray, ...args: any[]): ProcessPromise<ProcessOutput>
Expand Down Expand Up @@ -78,3 +79,4 @@ export const path: typeof _path
export const question: question
export const sleep: sleep
export const quiet: quiet
export const which: typeof _which
2 changes: 1 addition & 1 deletion src/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import YAML from 'yaml'
import minimist from 'minimist'
import psTreeModule from 'ps-tree'

export {chalk, fs, os, path, YAML}
export {chalk, fs, os, path, YAML, which}
export const sleep = promisify(setTimeout)
export const argv = minimist(process.argv.slice(2))
export const globby = Object.assign(function globby(...args) {
Expand Down

0 comments on commit e1386a8

Please sign in to comment.