This repository has been archived by the owner on Apr 8, 2024. It is now read-only.
generated from salesforcecli/plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3465d21
commit c343f3e
Showing
7 changed files
with
3,201 additions
and
1,963 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ coverage | |
|
||
# generated docs | ||
docs | ||
oclif.manifest.json | ||
|
||
# ignore sfdx-trust files | ||
*.tgz | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,8 @@ | |
"bugs": "https://github.com/forcedotcom/cli/issues", | ||
"homepage": "https://github.com/salesforcecli/sfdx-cli/", | ||
"bin": { | ||
"sfdx": "bin/run" | ||
"sfdx": "bin/run", | ||
"sf": "node_modules/@salesforce/cli/bin/run" | ||
}, | ||
"engines": { | ||
"node": ">=10" | ||
|
@@ -16,7 +17,7 @@ | |
"bin", | ||
"oclif.manifest.json", | ||
"dist/**/*.js", | ||
"scripts/clean-for-tarballs", | ||
"scripts/include-sf.js", | ||
"!dist/**/*.test.js" | ||
], | ||
"oclif": { | ||
|
@@ -66,22 +67,16 @@ | |
"salesforce-alm" | ||
], | ||
"devPlugins": [ | ||
"@oclif/plugin-command-snapshot" | ||
"@oclif/plugin-command-snapshot", | ||
"@salesforce/plugin-release-management" | ||
], | ||
"update": { | ||
"s3": { | ||
"bucket": "dfc-data-production", | ||
"indexVersionLimit": 20, | ||
"folder": "media/salesforce-cli/sfdx", | ||
"acl": " ", | ||
"host": "https://developer.salesforce.com", | ||
"templates": { | ||
"target": { | ||
"baseDir": "sfdx-cli-v<%- version %>-<%- platform === 'win32' ? 'windows' : platform %>-<%- arch %>", | ||
"manifest": "media/salesforce-cli/sfdx-cli/channels/<%- channel %>/<%- platform === 'win32' ? 'windows' : platform %>-<%- arch %>", | ||
"versioned": "media/salesforce-cli/sfdx-cli/channels/<%- channel %>/sfdx-cli-v<%- version %>-<%- platform === 'win32' ? 'windows' : platform %>-<%- arch %>.tar.<%- ext %>" | ||
} | ||
} | ||
"host": "https://developer.salesforce.com" | ||
} | ||
}, | ||
"macos": { | ||
|
@@ -93,6 +88,7 @@ | |
} | ||
}, | ||
"pinnedDependencies": [ | ||
"@salesforce/cli", | ||
"@salesforce/plugin-alias", | ||
"@salesforce/plugin-apex", | ||
"@salesforce/plugin-auth", | ||
|
@@ -121,6 +117,7 @@ | |
"@oclif/plugin-update": "1.4.0-3", | ||
"@oclif/plugin-warn-if-update-available": "^1.7.0", | ||
"@oclif/plugin-which": "^1.0.3", | ||
"@salesforce/cli": "ssh://[email protected]:salesforcecli/cli.git#mdonnalley/inclusion", | ||
"@salesforce/kit": "^1.5.13", | ||
"@salesforce/lazy-require": "^0.4.0", | ||
"@salesforce/plugin-alias": "1.1.10", | ||
|
@@ -151,6 +148,7 @@ | |
"@oclif/plugin-command-snapshot": "^2.0.0", | ||
"@salesforce/dev-config": "^2.1.2", | ||
"@salesforce/dev-scripts": "^0.9.11", | ||
"@salesforce/plugin-release-management": "^1.16.1", | ||
"@salesforce/prettier-config": "^0.0.2", | ||
"@salesforce/ts-sinon": "^1.3.12", | ||
"@types/debug": "^4.1.5", | ||
|
@@ -180,7 +178,7 @@ | |
"mocha": "^8.4.0", | ||
"npm": "^7.15.1", | ||
"nyc": "^15.1.0", | ||
"oclif": "^1.18.0", | ||
"oclif": "^1.18.1", | ||
"prettier": "^2.3.0", | ||
"pretty-quick": "^3.1.0", | ||
"shelljs": "^0.8.4", | ||
|
@@ -201,9 +199,9 @@ | |
"pack:docker:slim": "./scripts/docker-publish-slim.js", | ||
"pack:docker:full": "./scripts/docker-publish-full.js", | ||
"pack:macos": "oclif pack:macos", | ||
"pretarball": "./scripts/clean-for-tarballs", | ||
"pretarball": "sf-release cli:tarballs:prepare && ./scripts/include-sf.js", | ||
"pack:tarballs": "oclif pack:tarballs", | ||
"pack:verify": "./scripts/verify-tarballs", | ||
"pack:verify": "sf-release cli:tarballs:verify", | ||
"pack:win": "oclif pack:win", | ||
"postpack": "rm -f oclif.manifest.json", | ||
"posttest": "yarn test:deprecation-policy ", | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env node | ||
|
||
const path = require('path'); | ||
const shelljs = require('shelljs'); | ||
const fs = require('fs'); | ||
|
||
const sfUnixPath = path.resolve('node_modules/@salesforce/cli/bin/run'); | ||
const sfBin = path.join('bin', 'sf'); | ||
const sfdxBin = path.join('bin', 'sfdx'); | ||
|
||
const sfWinPath = 'node_modules\\@salesforce\\cli\\bin\\run'; | ||
const sfCmd = path.join('bin', 'sf.cmd'); | ||
const sfdxCmd = path.join('bin', 'sfdx.cmd'); | ||
|
||
console.log(`---- Including SF ----`); | ||
|
||
const binContents = fs | ||
.readFileSync(sfdxBin, 'UTF-8') | ||
.replace(/sfdx/g, 'sf') | ||
.replace(/SFDX/g, 'SF') | ||
.replace(/\$DIR\/run/g, sfUnixPath); | ||
|
||
console.log(` Writing ${sfBin}`); | ||
fs.writeFileSync(sfBin, binContents); | ||
shelljs.chmod('+x', sfBin); | ||
|
||
console.log(` Updating ${sfCmd} with references to sf`); | ||
const cmdContents = fs | ||
.readFileSync(sfdxCmd, 'UTF-8') | ||
.replace(/sfdx/g, 'sf') | ||
.replace(/SFDX/g, 'SF') | ||
.replace(/bin\\run/g, sfWinPath); | ||
|
||
console.log(` Writing ${sfCmd}`); | ||
fs.writeFileSync(sfCmd, cmdContents); | ||
|
||
console.log(`---- Finished ----`); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.