-
-
Notifications
You must be signed in to change notification settings - Fork 798
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
[legacy-framework] Move display package to nextjs fork #2989
Conversation
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.
lgtm
nextjs/packages/next/package.json
Outdated
@@ -111,6 +112,7 @@ | |||
"node-libs-browser": "^2.2.1", | |||
"npm-which": "^3.0.1", | |||
"null-loader": "4.0.1", | |||
"ora": "^5.3.0", |
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.
Probably can import from next/dist/compiled/ora
const withWarning = (str: string) => { | ||
return `⚠️ ${c.yellow(str)}` | ||
} |
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.
remove in favor of tslog.warn
const withX = (str: string) => { | ||
return `${c.red.bold('✕')} ${str}` | ||
} |
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.
remove in favor of tslog.error
const warning = (msg: string) => { | ||
console.log(withCaret(withWarning(msg))) | ||
} |
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.
remove in favor of tslog.warn
f0fcad0
Part of blitz-js/legacy-framework#391
I haven't modified or deleted display package functions yet.
Bug Checklist
Feature Checklist
canary
branch)