Skip to content

Commit 92d2097

Browse files
authored
Merge pull request #171 from amtrack/fix/update
fix: update deps and publish as ESM
2 parents 4571e83 + f5e05c8 commit 92d2097

37 files changed

+15214
-6189
lines changed

.github/workflows/default.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@ jobs:
2020
node-version-file: .node-version
2121
- name: Install dependencies
2222
run: |
23-
yarn install
24-
yarn global add @salesforce/cli
23+
npm ci
24+
npm install --global @salesforce/cli
2525
- name: Run unit tests
26-
run: yarn test
26+
run: npm run test
2727
- name: Authenticate DevHub and create scratch org
2828
env:
2929
SFDX_AUTH_URL_DEVHUB: ${{ secrets.SFDX_AUTH_URL_DEVHUB }}
3030
run: |
31-
sf org login sfdx-url -d -a devhub -f <(echo "${SFDX_AUTH_URL_DEVHUB}")
32-
yarn develop
31+
echo "${SFDX_AUTH_URL_DEVHUB}" | sf org login sfdx-url --set-default-dev-hub --alias devhub --sfdx-url-stdin
32+
npm run develop
3333
- name: Run end-to-end tests
34-
run: yarn test:e2e
34+
run: npm run test:e2e
3535
- name: Delete scratch org
3636
if: always()
3737
run: |
38-
sf org delete scratch -p
38+
sf org delete scratch --no-prompt
3939
- name: Release package
4040
run: npx semantic-release
4141
env:

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
/.nyc_output
44
/dist
55
/lib
6-
/package-lock.json
76
/tmp
87
node_modules/
98
/oclif.manifest.json

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ Retrieve all Metadata from an org named `acme-dev` (a.k.a "Metadata Backup", a.k
4040
4141
```console
4242
sf force mdapi listallmetadata -f /tmp/fileproperties.json -o acme-dev
43-
sfdx package.xml:generate -j /tmp/fileproperties.json -f package.xml --api-version 54.0
44-
sf force source retrieve -x package.xml -o acme-dev
43+
sf package.xml generate -j /tmp/fileproperties.json -f package.xml --api-version 54.0
44+
sf project retrieve start --manifest package.xml -o acme-dev
4545
```
4646
4747
Explore Metadata in an org named `acme-dev`
@@ -95,7 +95,7 @@ They are used throughout this plugin, e.g. in the
9595

9696
- output of `sf force mdapi listallmetadata --names`
9797
- component names (allow rules) in `sf force mdapi listallmetadata --metadata`
98-
- ignore rules in `sf force mdapi listallmetadata --ignore` and `sfdx package.xml:generate --ignore`
98+
- ignore rules in `sf force mdapi listallmetadata --ignore` and `sf package.xml generate --ignore`
9999

100100
### Filtering Metadata
101101

bin/run

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/usr/bin/env node
22

3-
const oclif = require("@oclif/core");
3+
// eslint-disable-next-line node/shebang
4+
async function main() {
5+
const { execute } = await import("@oclif/core");
6+
await execute({ dir: import.meta.url });
7+
}
48

5-
oclif
6-
.run()
7-
.then(require("@oclif/core/flush"))
8-
.catch(require("@oclif/core/handle"));
9+
await main();

config/project-scratch-def.json

-6
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@
55
"settings": {
66
"emailTemplateSettings": {
77
"enableTemplateEnhancedFolderPref": true
8-
},
9-
"lightningExperienceSettings": {
10-
"enableS1DesktopEnabled": true
11-
},
12-
"mobileSettings": {
13-
"enableS1EncryptedStoragePref2": false
148
}
159
}
1610
}

0 commit comments

Comments
 (0)