-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add yaml dependency #274
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ import {createInterface} from 'readline' | |
import {default as nodeFetch} from 'node-fetch' | ||
import which from 'which' | ||
import chalk from 'chalk' | ||
import yamljs from 'yaml' | ||
import minimist from 'minimist' | ||
import psTreeModule from 'ps-tree' | ||
|
||
|
@@ -32,6 +33,7 @@ export const globby = Object.assign(function globby(...args) { | |
return globbyModule.globby(...args) | ||
}, globbyModule) | ||
export const glob = globby | ||
export const yaml = { parse: yamljs.parse, stringify: yamljs.stringify } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's export everything. And let's use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ✅ |
||
const psTree = promisify(psTreeModule) | ||
|
||
export function registerGlobals() { | ||
|
@@ -49,6 +51,7 @@ export function registerGlobals() { | |
path, | ||
question, | ||
sleep, | ||
yaml, | ||
}) | ||
} | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to upgrade .d.ts as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅