Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
fix(deps): remove unused dependency @salesforce/core
Browse files Browse the repository at this point in the history
  • Loading branch information
amtrack committed Feb 12, 2021
1 parent edc0095 commit 63fa2d7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"@oclif/config": "^1",
"@oclif/errors": "^1",
"@salesforce/command": "3.1.0",
"@salesforce/core": "2.18.4",
"tmp": "^0.2.1",
"tslib": "^2"
},
Expand Down
7 changes: 3 additions & 4 deletions src/commands/auth-url/export.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import { SfdxCommand } from '@salesforce/command';
import { Messages } from '@salesforce/core';
import { core, SfdxCommand } from '@salesforce/command';
import { AnyJson } from '@salesforce/ts-types';
import { promisify } from 'util';
import child_process = require('child_process');
const exec = promisify(child_process.exec);

// Initialize Messages with the current plugin directory
Messages.importMessagesDirectory(__dirname);
core.Messages.importMessagesDirectory(__dirname);

// Load the specific messages for this file. Messages from @salesforce/command, @salesforce/core,
// or any library that is using the messages framework can also be loaded this way.
const messages = Messages.loadMessages('sfdx-plugin-auth-url', 'export');
const messages = core.Messages.loadMessages('sfdx-plugin-auth-url', 'export');

export default class ExportOrgUsingAuthUrlCommand extends SfdxCommand {
public static description = messages.getMessage('commandDescription');
Expand Down
7 changes: 3 additions & 4 deletions src/commands/auth-url/import.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { flags, SfdxCommand } from '@salesforce/command';
import { Messages } from '@salesforce/core';
import { core, flags, SfdxCommand } from '@salesforce/command';
import { AnyJson } from '@salesforce/ts-types';
import { promises as fsPromises } from 'fs';
import { promisify } from 'util';
Expand All @@ -8,11 +7,11 @@ import tmp = require('tmp');
const exec = promisify(child_process.exec);

// Initialize Messages with the current plugin directory
Messages.importMessagesDirectory(__dirname);
core.Messages.importMessagesDirectory(__dirname);

// Load the specific messages for this file. Messages from @salesforce/command, @salesforce/core,
// or any library that is using the messages framework can also be loaded this way.
const messages = Messages.loadMessages('sfdx-plugin-auth-url', 'import');
const messages = core.Messages.loadMessages('sfdx-plugin-auth-url', 'import');

export default class ImportOrgUsingAuthUrlCommand extends SfdxCommand {
public static description = messages.getMessage('commandDescription');
Expand Down

0 comments on commit 63fa2d7

Please sign in to comment.