Skip to content

Commit

Permalink
Merge pull request #640 from salesforcecli/devScripts2023-10-29
Browse files Browse the repository at this point in the history
refactor: devScripts update
  • Loading branch information
svc-cli-bot authored Oct 29, 2023
2 parents b43a1b9 + 26f8c64 commit 63d7705
Show file tree
Hide file tree
Showing 18 changed files with 366 additions and 246 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@oclif/plugin-command-snapshot": "^4.0.16",
"@salesforce/cli-plugins-testkit": "^4.4.7",
"@salesforce/dev-config": "^4.0.1",
"@salesforce/dev-scripts": "^5.11.0",
"@salesforce/dev-scripts": "^5.12.2",
"@salesforce/plugin-command-reference": "^3.0.41",
"@salesforce/prettier-config": "^0.0.3",
"@salesforce/ts-sinon": "^1.4.19",
Expand All @@ -66,10 +66,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.11",
"husky": "^7.0.4",
"jsforce": "^2.0.0-beta.22",
Expand All @@ -81,7 +81,7 @@
"shx": "0.2.2",
"sinon": "10.0.0",
"ts-node": "^10.0.0",
"typescript": "^4.9.5",
"typescript": "^5.2.2",
"wireit": "^0.14.1"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/cmdt/generate/field.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 { arrayWithDeprecation, Flags, loglevel, SfCommand } from '@salesforce/sf-plugins-core';
import { Messages, SfError } from '@salesforce/core';
import { writeFieldFile } from '../../../shared/helpers/fileWriter';
Expand Down
4 changes: 2 additions & 2 deletions src/commands/cmdt/generate/fromorg.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 {
Flags,
loglevel,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/cmdt/generate/object.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 { Flags, loglevel, SfCommand } from '@salesforce/sf-plugins-core';
import { Messages } from '@salesforce/core';
import { writeTypeFile } from '../../../shared/helpers/fileWriter';
Expand Down
6 changes: 3 additions & 3 deletions src/commands/cmdt/generate/record.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 { Flags, loglevel, parseVarArgs, SfCommand } from '@salesforce/sf-plugins-core';
import { Messages } from '@salesforce/core';
import { CustomField } from 'jsforce/api/metadata';
Expand Down Expand Up @@ -34,7 +34,7 @@ export default class Create extends SfCommand<CmdtRecordCreateResponse> {
public static readonly summary = messages.getMessage('summary');
public static readonly description = messages.getMessage('description');
public static readonly requiresProject = true;
public static aliases = ['force:cmdt:record:create', 'cmdt:record:create'];
public static readonly aliases = ['force:cmdt:record:create', 'cmdt:record:create'];
public static readonly examples = messages.getMessages('examples');

public static readonly flags = {
Expand Down
4 changes: 2 additions & 2 deletions src/commands/cmdt/generate/records.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 { Flags, loglevel, SfCommand } from '@salesforce/sf-plugins-core';
import { Messages, SfError } from '@salesforce/core';
import { Record } from 'jsforce';
Expand Down
4 changes: 2 additions & 2 deletions src/shared/helpers/createUtil.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 { CustomField } from 'jsforce/api/metadata';
import { XMLParser } from 'fast-xml-parser';
import { isString } from '@salesforce/ts-types';
Expand Down
4 changes: 2 additions & 2 deletions src/shared/helpers/fileWriter.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';

interface FileWriterResult {
dir: string;
Expand Down
4 changes: 2 additions & 2 deletions test/nuts/generate.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*/
/* eslint-disable camelcase */

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, execCmd } from '@salesforce/cli-plugins-testkit';
import { Messages } from '@salesforce/core';
Expand Down
4 changes: 2 additions & 2 deletions test/nuts/local/createCMDT.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 { expect } from 'chai';
import { TestSession, execCmd } from '@salesforce/cli-plugins-testkit';

Expand Down
4 changes: 2 additions & 2 deletions test/nuts/local/createField.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 { expect } from 'chai';
import { TestSession, execCmd } from '@salesforce/cli-plugins-testkit';
import { Messages } from '@salesforce/core';
Expand Down
4 changes: 2 additions & 2 deletions test/nuts/local/createRecord.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 { expect, config } from 'chai';
import { TestSession, execCmd } from '@salesforce/cli-plugins-testkit';
import { Messages } from '@salesforce/core';
Expand Down
4 changes: 2 additions & 2 deletions test/nuts/local/createUtil.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*/
/* eslint-disable camelcase */

import * as fs from 'fs';
import * as path from 'path';
import * as fs from 'node:fs';
import * as path from 'node:path';
import { expect, config } from 'chai';
import { TestSession, execCmd } from '@salesforce/cli-plugins-testkit';
import { CustomField } from 'jsforce/lib/api/metadata';
Expand Down
4 changes: 2 additions & 2 deletions test/nuts/local/insertRecord.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 { Messages } from '@salesforce/core';
import { expect, config } from 'chai';
import { TestSession, execCmd } from '@salesforce/cli-plugins-testkit';
Expand Down
4 changes: 2 additions & 2 deletions test/unit/fileWriter.test.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 { expect } from 'chai';
import { writeTypeFile, writeFieldFile } from '../../src/shared/helpers/fileWriter';

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

import { deepStrictEqual } from 'assert';
import { deepStrictEqual } from 'node:assert';
import { CustomObject } from 'jsforce/lib/api/metadata';
import {
cleanQueryResponse,
Expand Down
2 changes: 1 addition & 1 deletion test/unit/templates.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/* eslint-disable @typescript-eslint/no-unsafe-argument */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */

import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import { expect } from 'chai';
import {
createFieldXML,
Expand Down
Loading

0 comments on commit 63d7705

Please sign in to comment.