Skip to content
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

Merged
merged 2 commits into from
Apr 13, 2022
Merged

Bring back -h #104

merged 2 commits into from
Apr 13, 2022

Conversation

smithgp
Copy link
Collaborator

@smithgp smithgp commented Apr 12, 2022

  • Adds @oclif/plugin-help back, which provides -h
  • Revs @salesforce/command and @salesforce/core
  • Update code for changes to types in those
  • Remove use of deprecated fs from @salesforce/core

smithgp added 2 commits April 12, 2022 16:44
To bring in plugin-help, I also reved @salesforce/core and @salesforce/command.
That then needed some minor updates for changes to the types.
@smithgp smithgp requested a review from reidaelliott April 12, 2022 22:52
@smithgp smithgp self-assigned this Apr 12, 2022
@smithgp smithgp requested a review from a team as a code owner April 12, 2022 22:52
@@ -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';
Copy link
Collaborator Author

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';
Copy link
Collaborator Author

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"]
Copy link
Collaborator Author

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.

@reidaelliott reidaelliott self-requested a review April 13, 2022 15:17
@smithgp smithgp merged commit bf753e2 into main Apr 13, 2022
@smithgp smithgp deleted the gps/plugin-help branch April 13, 2022 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants