Skip to content

Commit b5ec862

Browse files
authored
Merge pull request #122 from amtrack/fix/deps
fix(deps): update dependencies and project
2 parents 8eef52f + 32bdd63 commit b5ec862

23 files changed

+2743
-6410
lines changed

.eslintrc.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/default.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,30 @@ jobs:
1414
default:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
1818
with:
1919
fetch-depth: 0
20-
- uses: actions/setup-node@v2
20+
- uses: actions/setup-node@v3
2121
with:
2222
node-version: 16
2323
- name: Install dependencies
24-
run: yarn
24+
run: |
25+
yarn install
26+
yarn global add sfdx-cli
2527
- name: Run unit tests
2628
run: yarn test
2729
- name: Authenticate DevHub and create scratch org
2830
env:
2931
SFDX_AUTH_URL_DEVHUB: ${{ secrets.SFDX_AUTH_URL_DEVHUB }}
3032
run: |
31-
npx sfdx-plugin-auth-url auth-url:import -d -a devhub "${SFDX_AUTH_URL_DEVHUB}"
33+
sfdx auth:sfdxurl:store -d -a devhub -f /dev/stdin <<< "${SFDX_AUTH_URL_DEVHUB}"
3234
yarn develop
3335
- name: Run end-to-end tests
3436
run: yarn test:e2e
3537
- name: Delete scratch org
3638
if: always()
3739
run: |
38-
npx sfdx force:org:delete -p
40+
sfdx force:org:delete -p
3941
- name: Release package
4042
run: npx semantic-release
4143
env:

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
/lib
66
/package-lock.json
77
/tmp
8-
node_modules
8+
node_modules/
99
/oclif.manifest.json
1010
/.sfdx/
11+
/.sf/

.mocharc.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

.prettierrc.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

package.json

Lines changed: 20 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -8,44 +8,33 @@
88
"sfdx-plugin-package-xml": "bin/run"
99
},
1010
"dependencies": {
11-
"@mdapi-issues/listmetadata-installed-missing-namespaceprefix": "2.0.1",
12-
"@mdapi-issues/listmetadata-recordtype-personaccount": "2.0.1",
13-
"@mdapi-issues/listmetadata-standardvalueset": "2.0.2",
14-
"@mdapi-issues/listmetadata-standardvaluesettranslation-type": "2.0.1",
15-
"@salesforce/command": "4.2.1",
11+
"@mdapi-issues/listmetadata-installed-missing-namespaceprefix": "2.0.2",
12+
"@mdapi-issues/listmetadata-recordtype-personaccount": "2.0.2",
13+
"@mdapi-issues/listmetadata-standardvalueset": "2.0.3",
14+
"@mdapi-issues/listmetadata-standardvaluesettranslation-type": "2.0.2",
15+
"@salesforce/command": "5.2.13",
1616
"get-stdin": "8.0.0",
1717
"lodash": "4.17.21",
1818
"picomatch": "2.3.1",
19-
"tslib": "2.3.1"
19+
"tslib": "2.4.0"
2020
},
2121
"devDependencies": {
22-
"@oclif/dev-cli": "1.26.10",
23-
"@oclif/plugin-help": "5.1.10",
24-
"@salesforce/dev-config": "3.0.0",
25-
"@types/chai": "4.3.0",
26-
"@types/mocha": "9.1.0",
27-
"@types/node": "14.18.9",
28-
"@typescript-eslint/eslint-plugin": "5.10.1",
29-
"@typescript-eslint/parser": "5.10.1",
30-
"chai": "4.3.4",
31-
"eslint": "8.7.0",
32-
"eslint-config-prettier": "8.3.0",
33-
"mocha": "9.1.4",
22+
"@types/chai": "4.3.3",
23+
"@types/mocha": "10.0.0",
24+
"chai": "4.3.6",
25+
"mocha": "10.1.0",
3426
"nyc": "15.1.0",
35-
"prettier": "2.5.1",
36-
"sfdx-cli": "7.136.2",
37-
"ts-node": "10.4.0",
38-
"typescript": "4.5.5"
27+
"oclif": "3.2.19",
28+
"ts-node": "10.9.1",
29+
"typescript": "4.8.4"
3930
},
4031
"engines": {
41-
"node": ">=8.0.0"
32+
"node": ">=14.16"
4233
},
4334
"files": [
4435
"/bin",
4536
"/lib",
46-
"/messages",
47-
"/oclif.manifest.json",
48-
"/yarn.lock"
37+
"/oclif.manifest.json"
4938
],
5039
"homepage": "https://github.com/amtrack/sfdx-plugin-package-xml",
5140
"keywords": [
@@ -66,8 +55,8 @@
6655
"description": "explore metadata in an org and generate a package.xml manifest"
6756
}
6857
},
69-
"devPlugins": [
70-
"@oclif/plugin-help"
58+
"additionalHelpFlags": [
59+
"-h"
7160
],
7261
"repositoryPrefix": "<%- repo %>/blob/main/<%- commandPath %>"
7362
},
@@ -83,16 +72,11 @@
8372
},
8473
"repository": "amtrack/sfdx-plugin-package-xml",
8574
"scripts": {
86-
"build": "rm -rf lib && tsc -b && oclif-dev manifest && oclif-dev readme",
75+
"build": "rm -rf lib && tsc -p . && oclif manifest",
8776
"develop": "bash scripts/develop.sh",
88-
"format": "prettier --write 'src/**/*.ts' 'test/**/*.ts'",
89-
"lint": "eslint 'src/**/*.ts' 'test/**/*.ts'",
90-
"postpack": "rm -f oclif.manifest.json",
91-
"posttest": "yarn lint",
9277
"prepack": "yarn build",
9378
"prepare": "yarn build",
94-
"test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
95-
"test:e2e": "mocha --forbid-only \"test/**/*.e2e-spec.ts\"",
96-
"version": "oclif-dev readme && git add README.md"
79+
"test": "nyc --reporter=lcov --reporter=text mocha --require ts-node/register \"test/**/*.test.ts\"",
80+
"test:e2e": "mocha --require ts-node/register \"test/**/*.e2e-spec.ts\""
9781
}
9882
}

sfdx-project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
],
88
"namespace": "",
99
"sfdcLoginUrl": "https://login.salesforce.com",
10-
"sourceApiVersion": "53.0"
10+
"sourceApiVersion": "56.0"
1111
}

src/cli.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import type { FileProperties } from 'jsforce';
2-
import { toMetadataComponentName } from './metadata-component';
1+
import type { FileProperties } from "jsforce/api/metadata";
2+
import { toMetadataComponentName } from "./metadata-component";
33

44
export function parseCommaSeparatedValues(
55
commaSeparatedMetadataComponentNames: string
66
): Array<string> {
77
if (!commaSeparatedMetadataComponentNames) {
88
return [];
99
}
10-
return clean(commaSeparatedMetadataComponentNames.split(','));
10+
return clean(commaSeparatedMetadataComponentNames.split(","));
1111
}
1212
export function parseNewLineSeparatedValues(
1313
newLineSeparatedValues: string
@@ -27,11 +27,11 @@ export function formatFileProperties(
2727
outputType: string
2828
): string {
2929
let mapFn;
30-
if (outputType.startsWith('name')) {
30+
if (outputType.startsWith("name")) {
3131
mapFn = toMetadataComponentName;
32-
} else if (outputType.startsWith('xmlpath')) {
32+
} else if (outputType.startsWith("xmlpath")) {
3333
mapFn = (fp) => fp.fileName;
3434
}
3535
const entries = fileProperties.map(mapFn).sort();
36-
return outputType.endsWith('-csv') ? entries.join(',') : entries.join('\n');
36+
return outputType.endsWith("-csv") ? entries.join(",") : entries.join("\n");
3737
}

0 commit comments

Comments
 (0)