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 Nov 5, 2023
1 parent 589031e commit 305be9f
Show file tree
Hide file tree
Showing 57 changed files with 449 additions and 425 deletions.
26 changes: 3 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,50 +22,30 @@
"@oclif/plugin-command-snapshot": "^4.0.14",
"@oclif/plugin-help": "^5.2.20",
"@salesforce/cli-plugins-testkit": "^4.4.12",
"@salesforce/dev-config": "^4.0.1",
"@salesforce/dev-scripts": "^5.11.0",
"@salesforce/dev-scripts": "^6.0.3",
"@salesforce/plugin-command-reference": "^3.0.45",
"@salesforce/plugin-deploy-retrieve": "^1.19.3",
"@salesforce/plugin-info": "^2.6.51",
"@salesforce/plugin-settings": "^1.4.28",
"@salesforce/plugin-templates": "^55.5.14",
"@salesforce/plugin-user": "^2.3.36",
"@salesforce/prettier-config": "^0.0.3",
"@salesforce/source-testkit": "^2.1.34",
"@salesforce/ts-sinon": "1.4.19",
"@swc/core": "1.3.39",
"@types/archiver": "^5.3.2",
"@types/debug": "^4.1.7",
"@types/shelljs": "^0.8.11",
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/parser": "^5.62.0",
"archiver": "^5.3.2",
"chai": "^4.3.10",
"chai-each": "^0.0.1",
"cross-env": "^7.0.3",
"debug": "^4.3.3",
"eslint": "^8.51.0",
"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.1",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jsdoc": "^43.0.5",
"eslint-plugin-sf-plugin": "^1.16.13",
"fast-glob": "^3.3.1",
"husky": "^7.0.4",
"mocha": "^9.1.3",
"nyc": "^15.1.0",
"oclif": "^3.16.0",
"prettier": "^2.8.8",
"pretty-quick": "^3.1.3",
"shelljs": "^0.8.5",
"shx": "0.3.4",
"sinon": "10.0.0",
"ts-node": "^10.4.0",
"typescript": "^4.9.5",
"wireit": "^0.10.0"
"ts-node": "^10.9.1",
"typescript": "^4.9.5"
},
"config": {},
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions src/commands/force/source/retrieve.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 { dirname, join, resolve } from 'path';
import * as fs from 'fs';
import { dirname, join, resolve } from 'node:path';
import * as fs from 'node:fs';

import { Lifecycle, Messages, SfError, SfProject } from '@salesforce/core';
import { Duration } from '@salesforce/kit';
Expand Down
4 changes: 2 additions & 2 deletions src/deployCommand.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 path from 'path';
import * as fs from 'fs';
import * as path from 'node:path';
import * as fs from 'node:fs';
import {
AsyncResult,
ComponentSet,
Expand Down
2 changes: 1 addition & 1 deletion src/formatters/deployResultFormatter.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 path from 'path';
import * as path from 'node:path';
import * as chalk from 'chalk';

import { Messages, SfError } from '@salesforce/core';
Expand Down
2 changes: 1 addition & 1 deletion src/formatters/mdapi/mdDeployAsyncResultFormatter.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 { EOL } from 'os';
import { EOL } from 'node:os';

import { Messages } from '@salesforce/core';
import { AsyncResult } from '@salesforce/source-deploy-retrieve';
Expand Down
2 changes: 1 addition & 1 deletion src/formatters/mdapi/retrieveResultFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import { join, parse } from 'path';
import { join, parse } from 'node:path';
import { blue } from 'chalk';
import { getNumber } from '@salesforce/ts-types';
import {
Expand Down
4 changes: 2 additions & 2 deletions src/formatters/resultFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*/
/* eslint-disable class-methods-use-this */

import * as path from 'path';
import * as fs from 'fs';
import * as path from 'node:path';
import * as fs from 'node:fs';
import { Failures, FileProperties, FileResponse, Successes } from '@salesforce/source-deploy-retrieve';
import { getNumber } from '@salesforce/ts-types';
import * as chalk from 'chalk';
Expand Down
2 changes: 1 addition & 1 deletion src/formatters/source/deployAsyncResultFormatter.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 { EOL } from 'os';
import { EOL } from 'node:os';

import { Messages } from '@salesforce/core';
import { cloneJson } from '@salesforce/kit';
Expand Down
2 changes: 1 addition & 1 deletion src/formatters/source/pushResultFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import { relative, resolve as pathResolve } from 'path';
import { relative, resolve as pathResolve } from 'node:path';
import * as chalk from 'chalk';

import { Messages, SfError } from '@salesforce/core';
Expand Down
4 changes: 2 additions & 2 deletions src/sourceCommand.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 { dirname, resolve, extname } from 'path';
import * as fs from 'fs';
import { dirname, resolve, extname } from 'node:path';
import * as fs from 'node:fs';
import { Messages, SfError } from '@salesforce/core';
import { ComponentSet } from '@salesforce/source-deploy-retrieve';
import { getString, Optional } from '@salesforce/ts-types';
Expand Down
2 changes: 1 addition & 1 deletion src/stash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Licensed under the BSD 3-Clause license.
* 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 { ConfigFile, Logger, Messages, SfError } from '@salesforce/core';
import { JsonMap, Optional } from '@salesforce/ts-types';

Expand Down
2 changes: 1 addition & 1 deletion src/trackingFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import * as path from 'path';
import * as path from 'node:path';

import { ChangeResult, SourceTracking, SourceTrackingOptions } from '@salesforce/source-tracking';
import { Messages, SfError } from '@salesforce/core';
Expand Down
2 changes: 1 addition & 1 deletion test/commands/mdapi/cancel.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 { join } from 'path';
import { join } from 'node:path';
import * as sinon from 'sinon';
import { expect } from 'chai';
import { spyMethod, stubMethod } from '@salesforce/ts-sinon';
Expand Down
4 changes: 2 additions & 2 deletions test/commands/mdapi/retrieve.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 { Lifecycle, SfProject } from '@salesforce/core';
Expand Down
4 changes: 2 additions & 2 deletions test/commands/mdapi/retrieveReport.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 { fromStub, stubInterface, stubMethod } from '@salesforce/ts-sinon';
Expand Down
2 changes: 1 addition & 1 deletion test/commands/source/cancel.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 { join } from 'path';
import { join } from 'node:path';
import * as sinon from 'sinon';
import { expect } from 'chai';
import { fromStub, spyMethod, stubInterface, stubMethod } from '@salesforce/ts-sinon';
Expand Down
2 changes: 1 addition & 1 deletion test/commands/source/deploy.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 { join } from 'path';
import { join } from 'node:path';
import * as sinon from 'sinon';
import { expect } from 'chai';
import { ComponentSetBuilder, ComponentSetOptions, MetadataApiDeployOptions } from '@salesforce/source-deploy-retrieve';
Expand Down
2 changes: 1 addition & 1 deletion test/commands/source/deployCommand.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import * as path from 'path';
import * as path from 'node:path';
import { expect } from 'chai';
import { getCoverageFormattersOptions } from '../../../src/deployCommand';

Expand Down
2 changes: 1 addition & 1 deletion test/commands/source/progressBarFormatter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import { EventEmitter } from 'events';
import { EventEmitter } from 'node:events';
import { MetadataApiDeploy } from '@salesforce/source-deploy-retrieve';
import { spyMethod } from '@salesforce/ts-sinon';
import { assert, expect } from 'chai';
Expand Down
2 changes: 1 addition & 1 deletion test/commands/source/report.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 { join } from 'path';
import { join } from 'node:path';
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/commands/source/retrieve.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 { join } from 'path';
import * as path from 'path';
import { join } from 'node:path';
import * as path from 'node:path';
import * as sinon from 'sinon';
import { expect } from 'chai';
import {
Expand Down
2 changes: 1 addition & 1 deletion test/formatters/deployResultFormatter.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 path from 'path';
import * as path from 'node:path';
import * as sinon from 'sinon';
import { expect } from 'chai';
import { DeployResult, FileResponse } from '@salesforce/source-deploy-retrieve';
Expand Down
2 changes: 1 addition & 1 deletion test/formatters/pullFormatter.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 { relative } from 'path';
import { relative } from 'node:path';
import * as sinon from 'sinon';
import { expect } from 'chai';
import { FileResponse } from '@salesforce/source-deploy-retrieve';
Expand Down
2 changes: 1 addition & 1 deletion test/formatters/retrieveResultFormatter.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 { join, relative } from 'path';
import { join, relative } from 'node:path';
import * as sinon from 'sinon';
import { expect } from 'chai';
import { FileResponse } from '@salesforce/source-deploy-retrieve';
Expand Down
2 changes: 1 addition & 1 deletion test/nuts/REST/deploy.mpd.nut.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 path from 'path';
import * as path from 'node:path';
import { SourceTestkit } from '@salesforce/source-testkit';
import { get } from '@salesforce/ts-types';
import { FileResponse } from '@salesforce/source-deploy-retrieve';
Expand Down
2 changes: 1 addition & 1 deletion test/nuts/REST/deploy.nut.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 path from 'path';
import * as path from 'node:path';
import { SourceTestkit } from '@salesforce/source-testkit';
import { get } from '@salesforce/ts-types';
import { FileResponse } from '@salesforce/source-deploy-retrieve';
Expand Down
2 changes: 1 addition & 1 deletion test/nuts/deployDestructive.nut.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 path from 'path';
import * as path from 'node:path';
import { expect } from 'chai';
import { execCmd } from '@salesforce/cli-plugins-testkit';
import { SourceTestkit } from '@salesforce/source-testkit';
Expand Down
2 changes: 1 addition & 1 deletion test/nuts/digitalExperienceBundle/constants.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 { join } from 'path';
import { join } from 'node:path';
import { TestSessionOptions } from '@salesforce/cli-plugins-testkit/lib/testSession';
import { registry } from '@salesforce/source-deploy-retrieve';
import { META_XML_SUFFIX } from '@salesforce/source-deploy-retrieve/lib/src/common';
Expand Down
4 changes: 2 additions & 2 deletions test/nuts/digitalExperienceBundle/deb.manifest.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* Licensed under the BSD 3-Clause license.
* 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 { join } from 'path';
import * as fs from 'node:fs';
import { join } from 'node:path';
import { execCmd, TestSession } from '@salesforce/cli-plugins-testkit';
import { expect } from 'chai';
import { beforeEach } from 'mocha';
Expand Down
4 changes: 2 additions & 2 deletions test/nuts/digitalExperienceBundle/deb.tracking.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* Licensed under the BSD 3-Clause license.
* 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 { join } from 'path';
import * as fs from 'node:fs';
import { join } from 'node:path';
import { execCmd, TestSession } from '@salesforce/cli-plugins-testkit';
import { expect } from 'chai';
import { DeleteTrackingResult } from '@salesforce/plugin-deploy-retrieve/lib/commands/project/delete/tracking';
Expand Down
4 changes: 2 additions & 2 deletions test/nuts/digitalExperienceBundle/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import { join, relative } from 'path';
import * as fs from 'fs';
import { join, relative } from 'node:path';
import * as fs from 'node:fs';
import { FileResponse } from '@salesforce/source-deploy-retrieve';
import { expect } from 'chai';
import { execCmd, TestSession } from '@salesforce/cli-plugins-testkit';
Expand Down
4 changes: 2 additions & 2 deletions test/nuts/folderTypes.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* Licensed under the BSD 3-Clause license.
* 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 { execCmd, TestSession } from '@salesforce/cli-plugins-testkit';
import { expect } from 'chai';
import { FileResponse } from '@salesforce/source-deploy-retrieve';
Expand Down
4 changes: 2 additions & 2 deletions test/nuts/generateNuts.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 path from 'path';
import * as fs from 'fs';
import * as path from 'node:path';
import * as fs from 'node:fs';
import * as shelljs from 'shelljs';
import { RepoConfig, TEST_REPOS_MAP } from './testMatrix';

Expand Down
4 changes: 2 additions & 2 deletions test/nuts/mdapi.nut.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 { exec } from 'shelljs';
import { expect } from 'chai';
import { execCmd, ExecCmdResult, TestSession } from '@salesforce/cli-plugins-testkit';
Expand Down
2 changes: 1 addition & 1 deletion test/nuts/nestedLwc.nut.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 path from 'path';
import * as path from 'node:path';
import { expect } from 'chai';
import { execCmd, TestSession } from '@salesforce/cli-plugins-testkit';
import { DeployCommandResult } from '../../src/formatters/deployResultFormatter';
Expand Down
4 changes: 2 additions & 2 deletions test/nuts/partialBundleDelete.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import * as path from 'path';
import * as fs from 'fs';
import * as path from 'node:path';
import * as fs from 'node:fs';
import { expect } from 'chai';
import { TestSession, TestProject, execCmd } from '@salesforce/cli-plugins-testkit';
import { AuthInfo, Connection, SfProject } from '@salesforce/core';
Expand Down
Loading

0 comments on commit 305be9f

Please sign in to comment.