Skip to content

Commit

Permalink
add sfdmu for plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Nov 13, 2020
1 parent c96f236 commit 610c073
Show file tree
Hide file tree
Showing 3 changed files with 791 additions and 27 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"moment": "^2.24.0",
"request-promise-native": "^1.0.7",
"salesforce-jwt-bearer-token-flow": "^0.2.4",
"sfdmu": "^3.7.19",
"shane-sfdx-plugins": "^4.43.0",
"strip-color": "^0.1.0",
"universal-analytics": "^0.4.20"
Expand Down
5 changes: 4 additions & 1 deletion src/server/lib/hubAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ const getKeypath = async (): Promise<string> => {
};

const buildJWTAuthCommand = async (username = processWrapper.HUB_USERNAME): Promise<string> =>
`sfdx force:auth:jwt:grant --clientid ${processWrapper.CONSUMERKEY} --username ${username} --jwtkeyfile ${await getKeypath()}`;
`sfdx force:auth:jwt:grant --clientid ${
processWrapper.CONSUMERKEY
} --username ${username} --jwtkeyfile ${await getKeypath()}`;

const auth = async (): Promise<string> => {
// where will our cert live?
Expand All @@ -39,6 +41,7 @@ const auth = async (): Promise<string> => {
await exec('sfdx plugins:link node_modules/shane-sfdx-plugins');
await exec('sfdx plugins:link node_modules/@salesforce/analytics'); // analytics sfx plugins
await exec('sfdx plugins:link node_modules/@mshanemc/sfdx-migration-automatic');
await exec('sfdx plugins:link node_modules/sfdmu');
}

if (processWrapper.SFDX_PRERELEASE) {
Expand Down
Loading

0 comments on commit 610c073

Please sign in to comment.