Skip to content

Commit

Permalink
chore: updates from devScripts
Browse files Browse the repository at this point in the history
  • Loading branch information
svc-cli-bot committed Oct 29, 2023
1 parent f9c0758 commit 99189a2
Show file tree
Hide file tree
Showing 13 changed files with 351 additions and 270 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@oclif/plugin-command-snapshot": "^4.0.14",
"@salesforce/cli-plugins-testkit": "^4.4.10",
"@salesforce/dev-config": "^4.0.1",
"@salesforce/dev-scripts": "^5.11.0",
"@salesforce/dev-scripts": "^5.12.2",
"@salesforce/plugin-command-reference": "^3.0.33",
"@salesforce/prettier-config": "^0.0.3",
"@salesforce/ts-sinon": "^1.4.18",
Expand All @@ -39,10 +39,10 @@
"eslint-config-prettier": "^8.10.0",
"eslint-config-salesforce": "^2.0.2",
"eslint-config-salesforce-license": "^0.2.0",
"eslint-config-salesforce-typescript": "^1.1.2",
"eslint-config-salesforce-typescript": "^2.0.0",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jsdoc": "^43.0.5",
"eslint-plugin-jsdoc": "^46.8.2",
"eslint-plugin-sf-plugin": "^1.16.10",
"husky": "^7.0.4",
"mocha": "^9.1.3",
Expand All @@ -54,7 +54,7 @@
"sinon": "^11.1.1",
"sinon-chai": "^3.7.0",
"ts-node": "^10.4.0",
"typescript": "^4.9.5",
"typescript": "^5.2.2",
"wireit": "^0.14.1"
},
"config": {},
Expand Down
10 changes: 5 additions & 5 deletions src/commands/doctor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/

import * as os from 'os';
import * as path from 'path';
import { spawn } from 'child_process';
import * as os from 'node:os';
import * as path from 'node:path';
import { spawn } from 'node:child_process';
import { Flags, loglevel, SfCommand } from '@salesforce/sf-plugins-core';
import { Lifecycle, Messages, SfError } from '@salesforce/core';
import * as open from 'open';
Expand All @@ -27,11 +27,11 @@ export default class Doctor extends SfCommand<SfDoctorDiagnosis> {
public static readonly flags = {
command: Flags.string({
char: 'c',
summary: messages.getMessage('flags.command'),
summary: messages.getMessage('flags.command.summary'),
}),
plugin: Flags.string({
char: 'p',
summary: messages.getMessage('flags.plugin'),
summary: messages.getMessage('flags.plugin.summary'),
}),
'output-dir': Flags.directory({
char: 'd',
Expand Down
2 changes: 1 addition & 1 deletion src/commands/info/releasenotes/display.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 * as os from 'os';
import * as os from 'node:os';
import { marked } from 'marked';
import * as TerminalRenderer from 'marked-terminal';
import { Env } from '@salesforce/kit';
Expand Down
2 changes: 1 addition & 1 deletion src/diagnostics.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 * as childProcess from 'child_process';
import * as childProcess from 'node:child_process';
import { Interfaces } from '@oclif/core';
import { Lifecycle, Messages } from '@salesforce/core';
import { SfDoctor, SfDoctorDiagnosis } from './doctor';
Expand Down
4 changes: 2 additions & 2 deletions src/doctor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/

import * as fs from 'fs';
import * as path from 'path';
import * as fs from 'node:fs';
import * as path from 'node:path';
import { Messages, SfError } from '@salesforce/core';
import { Env, omit } from '@salesforce/kit';
import { AnyJson, KeyValue } from '@salesforce/ts-types';
Expand Down
4 changes: 2 additions & 2 deletions src/shared/getInfoConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/

import { join } from 'path';
import * as fs from 'fs';
import { join } from 'node:path';
import * as fs from 'node:fs';
import { PJSON } from '@oclif/core/lib/interfaces';

export interface PjsonWithInfo extends PJSON {
Expand Down
6 changes: 3 additions & 3 deletions test/commands/doctor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/

import * as fs from 'fs';
import * as path from 'path';
import * as childProcess from 'child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
import * as childProcess from 'node:child_process';
import * as Sinon from 'sinon';
import { expect } from 'chai';
import { stubMethod } from '@salesforce/ts-sinon';
Expand Down
2 changes: 1 addition & 1 deletion test/commands/info/releasenotes/display.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 * as os from 'os';
import * as os from 'node:os';
import * as Sinon from 'sinon';
import * as SinonChai from 'sinon-chai';
import { expect, use as chaiUse } from 'chai';
Expand Down
2 changes: 1 addition & 1 deletion test/diagnostics.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 * as childProcess from 'child_process';
import * as childProcess from 'node:child_process';
import * as Sinon from 'sinon';
import { expect } from 'chai';
import { fromStub, spyMethod, stubInterface, stubMethod } from '@salesforce/ts-sinon';
Expand Down
4 changes: 2 additions & 2 deletions test/doctor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/

import * as fs from 'fs';
import * as path from 'path';
import * as fs from 'node:fs';
import * as path from 'node:path';
import * as Sinon from 'sinon';
import { expect } from 'chai';
import { stubMethod } from '@salesforce/ts-sinon';
Expand Down
4 changes: 2 additions & 2 deletions test/shared/getInfoConfig.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/

import * as pathPkg from 'path';
import * as fs from 'fs';
import * as pathPkg from 'node:path';
import * as fs from 'node:fs';
import { expect, use as chaiUse, assert } from 'chai';
import * as Sinon from 'sinon';
import * as SinonChai from 'sinon-chai';
Expand Down
2 changes: 1 addition & 1 deletion test/shared/parseReleaseNotes.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 * as fs from 'fs';
import * as fs from 'node:fs';
import { expect, use as chaiUse, assert } from 'chai';
import * as Sinon from 'sinon';
import * as SinonChai from 'sinon-chai';
Expand Down
Loading

0 comments on commit 99189a2

Please sign in to comment.