refactor generator to use the @salesforce/core instead of executing sfdx-cli
Closed this issue · 2 comments
ChuckJonas commented
Seems to be faster and not dependent on having the CLI installed
Should just be something like this:
const connection: Connection = await Connection.create({
authInfo: await AuthInfo.create({ username: testData.username })
});
CarsonF commented
Does ts-force
use axios
to try and prevent using @salesforce/core
in the browser?
Is it a goal to make this package browser compatible?
ChuckJonas commented
ya, ts-force
needs to remain isomorphic. I primary use it in browser applications at the moment.
This issue is in regards to how the generator connects with salesforce. One of the options is to use the sfdx connections. Right now, I believe it's spawning processes that just call into the CLI (EG sfdx force:org:display -u my-user --json
)