Skip to content

Commit

Permalink
chore: sfdx-core top-level imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Jul 26, 2024
1 parent 0c3fe56 commit 44aa55b
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/compatibility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { Flags } from '@oclif/core';
import { Messages } from '@salesforce/core';
import { Messages } from '@salesforce/core/messages';
import { orgApiVersionFlag } from './flags/orgApiVersion.js';
import { optionalHubFlag, optionalOrgFlag, requiredHubFlag, requiredOrgFlag } from './flags/orgFlags.js';

Expand Down
2 changes: 1 addition & 1 deletion src/errorHandling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/

import { SfError } from '@salesforce/core';
import { SfError } from '@salesforce/core/sfError';
import { Errors } from '@oclif/core';

/**
Expand Down
2 changes: 1 addition & 1 deletion src/flags/duration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import { Flags } from '@oclif/core';
import { Messages } from '@salesforce/core';
import { Messages } from '@salesforce/core/messages';
import { Duration } from '@salesforce/kit';

Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
Expand Down
2 changes: 1 addition & 1 deletion src/ux/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { setTimeout } from 'node:timers/promises';
import { SfError } from '@salesforce/core';
import { SfError } from '@salesforce/core/sfError';
import type { CancelablePromise } from '@inquirer/type';

export type PromptInputs<T> = {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/errorHandling.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import { expect } from 'chai';
import { SfError } from '@salesforce/core';
import { SfError } from '@salesforce/core/sfError';
import { computeErrorCode, errorIsGack, errorIsTypeError } from '../../src/errorHandling.js';
import { SfCommandError } from '../../src/SfCommandError.js';

Expand Down
2 changes: 1 addition & 1 deletion test/unit/flags/duration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { Parser } from '@oclif/core';
import { Messages } from '@salesforce/core';
import { Messages } from '@salesforce/core/messages';
import { expect } from 'chai';
import { Duration } from '@salesforce/kit';
import { durationFlag } from '../../../src/flags/duration.js';
Expand Down
2 changes: 1 addition & 1 deletion test/unit/flags/id.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
import { expect } from 'chai';
import { Parser } from '@oclif/core';
import { Messages } from '@salesforce/core';
import { Messages } from '@salesforce/core/messages';
import { salesforceIdFlag } from '../../../src/flags/salesforceId.js';

Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
Expand Down
4 changes: 2 additions & 2 deletions test/unit/sfCommand.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
*/
import { Flags } from '@oclif/core';
import { Errors } from '@oclif/core';
import { Lifecycle } from '@salesforce/core';
import { Lifecycle } from '@salesforce/core/lifecycle';
import { TestContext } from '@salesforce/core/testSetup';
import { assert, expect } from 'chai';
import { SfError } from '@salesforce/core';
import { SfError } from '@salesforce/core/sfError';
import { Config } from '@oclif/core/interfaces';
import { SfCommand } from '../../src/sfCommand.js';
import { SfCommandError } from '../../src/SfCommandError.js';
Expand Down
2 changes: 1 addition & 1 deletion test/unit/stubUx.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import { Interfaces } from '@oclif/core';
import { expect } from 'chai';
import { TestContext } from '@salesforce/core/testSetup';
import { Lifecycle } from '@salesforce/core';
import { Lifecycle } from '@salesforce/core/lifecycle';
import { stubUx, stubSfCommandUx, SfCommand, Ux, stubSpinner, Flags } from '../../src/exported.js';

const TABLE_DATA = Array.from({ length: 10 }).fill({ id: '123', name: 'foo', value: 'bar' }) as Array<
Expand Down

0 comments on commit 44aa55b

Please sign in to comment.