Skip to content

Commit 2af3290

Browse files
authored
Merge pull request #268 from salesforcecli/devScripts2023-10-29
refactor: devScripts update
2 parents 03901ab + bde93c3 commit 2af3290

File tree

12 files changed

+174
-241
lines changed

12 files changed

+174
-241
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@oclif/plugin-command-snapshot": "^4.0.15",
1818
"@salesforce/cli-plugins-testkit": "^4.4.10",
1919
"@salesforce/dev-config": "^4.0.1",
20-
"@salesforce/dev-scripts": "^5.11.0",
20+
"@salesforce/dev-scripts": "^5.12.2",
2121
"@salesforce/plugin-command-reference": "^3.0.41",
2222
"@salesforce/plugin-deploy-retrieve": "^1.19.0",
2323
"@salesforce/prettier-config": "^0.0.3",
@@ -31,10 +31,10 @@
3131
"eslint-config-prettier": "^8.10.0",
3232
"eslint-config-salesforce": "^2.0.2",
3333
"eslint-config-salesforce-license": "^0.2.0",
34-
"eslint-config-salesforce-typescript": "^1.1.2",
34+
"eslint-config-salesforce-typescript": "^2.0.0",
3535
"eslint-plugin-header": "^3.1.1",
3636
"eslint-plugin-import": "^2.29.0",
37-
"eslint-plugin-jsdoc": "^43.0.5",
37+
"eslint-plugin-jsdoc": "^46.8.2",
3838
"eslint-plugin-sf-plugin": "^1.16.12",
3939
"husky": "^7.0.4",
4040
"mocha": "^9.1.3",
@@ -45,7 +45,7 @@
4545
"shx": "^0.3.4",
4646
"sinon": "10.0.0",
4747
"ts-node": "^10.0.0",
48-
"typescript": "4.9.5",
48+
"typescript": "^5.2.2",
4949
"wireit": "^0.14.1"
5050
},
5151
"engines": {

src/reporters/runReporter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Licensed under the BSD 3-Clause license.
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
7-
import * as os from 'os';
7+
import * as os from 'node:os';
88
import { ExecuteAnonymousResponse } from '@salesforce/apex-node';
99
import { Messages } from '@salesforce/core';
1010
import { colorError, colorSuccess } from '../utils';

test/commands/apex/get/log.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* Licensed under the BSD 3-Clause license.
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
7-
import { resolve } from 'path';
8-
import * as fs from 'fs';
7+
import { resolve } from 'node:path';
8+
import * as fs from 'node:fs';
99
import { Config } from '@oclif/core';
1010
import { createSandbox } from 'sinon';
1111
import { LogService } from '@salesforce/apex-node';

test/commands/apex/get/test.nut.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* Licensed under the BSD 3-Clause license.
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
7-
import * as path from 'path';
8-
import * as fs from 'fs';
7+
import * as path from 'node:path';
8+
import * as fs from 'node:fs';
99
import { execCmd, TestSession } from '@salesforce/cli-plugins-testkit';
1010
import { config, expect } from 'chai';
1111
import { TestRunIdResult } from '@salesforce/apex-node';

test/commands/apex/get/test.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* Licensed under the BSD 3-Clause license.
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
7-
import { resolve } from 'path';
8-
import * as fs from 'fs';
7+
import { resolve } from 'node:path';
8+
import * as fs from 'node:fs';
99
import { Connection, Org } from '@salesforce/core';
1010
import { createSandbox, SinonSandbox } from 'sinon';
1111
import { Ux } from '@salesforce/sf-plugins-core';

test/commands/apex/list/log.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Licensed under the BSD 3-Clause license.
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
7-
import { resolve } from 'path';
7+
import { resolve } from 'node:path';
88
import { LogService } from '@salesforce/apex-node';
99
import { Config } from '@oclif/core';
1010
import { createSandbox } from 'sinon';

test/commands/apex/loggingCommands.nut.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Licensed under the BSD 3-Clause license.
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
7-
import * as path from 'path';
7+
import * as path from 'node:path';
88
import { execCmd, TestSession } from '@salesforce/cli-plugins-testkit';
99
import { expect, config } from 'chai';
1010
import { AuthInfo, Connection } from '@salesforce/core';

test/commands/apex/run.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
* Licensed under the BSD 3-Clause license.
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
7-
import * as path from 'path';
8-
import { resolve } from 'path';
9-
import * as fs from 'fs';
7+
import * as path from 'node:path';
8+
import { resolve } from 'node:path';
9+
import * as fs from 'node:fs';
1010
import { expect } from 'chai';
1111
import { ExecuteService } from '@salesforce/apex-node';
1212
import { createSandbox, SinonSandbox } from 'sinon';

test/commands/apex/run/test.nut.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* Licensed under the BSD 3-Clause license.
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
7-
import * as path from 'path';
8-
import * as fs from 'fs';
7+
import * as path from 'node:path';
8+
import * as fs from 'node:fs';
99
import { execCmd, TestSession } from '@salesforce/cli-plugins-testkit';
1010
import { expect, config } from 'chai';
1111
import { TestRunIdResult } from '@salesforce/apex-node/lib/src/tests/types';

test/commands/apex/run/test.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* Licensed under the BSD 3-Clause license.
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
7-
import { resolve } from 'path';
8-
import * as fs from 'fs';
7+
import { resolve } from 'node:path';
8+
import * as fs from 'node:fs';
99
import { Messages, Org } from '@salesforce/core';
1010
import { createSandbox, SinonSandbox } from 'sinon';
1111
import { Ux } from '@salesforce/sf-plugins-core';

0 commit comments

Comments
 (0)