-
Notifications
You must be signed in to change notification settings - Fork 0
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
Bring back -h #104
Bring back -h #104
Conversation
To bring in plugin-help, I also reved @salesforce/core and @salesforce/command. That then needed some minor updates for changes to the types.
@@ -5,9 +5,10 @@ | |||
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause | |||
*/ | |||
|
|||
import { promises as fs } from 'fs'; |
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.
fs
from core
is basically the same as fs.promises
@@ -5,7 +5,8 @@ | |||
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause | |||
*/ | |||
|
|||
import { core } from '@salesforce/command'; | |||
import { promises as fs } from 'fs'; | |||
import * as core from '@salesforce/core'; |
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.
The core
import above was never really the right way to import core; this is the right way.
@@ -4,6 +4,10 @@ | |||
"target": "ES2019", | |||
"outDir": "lib", | |||
"rootDir": "src", | |||
"baseUrl": ".", | |||
"paths": { | |||
"@salesforce/core": ["node_modules/@salesforce/core"] |
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.
@salesforce/command
re-exports a copy of @salesforce/core
, which the typescript type checker picks up first (and causes problems) w/o this line.
@oclif/plugin-help
back, which provides-h
@salesforce/command
and@salesforce/core
fs
from@salesforce/core