ChuckJonas / ts-force

A Salesforce REST Client written in Typescript for Typescript
88 stars 21 forks source link

refactor generator to use the @salesforce/core instead of executing sfdx-cli #56

Closed ChuckJonas closed 3 years ago

ChuckJonas commented 5 years ago

Seems to be faster and not dependent on having the CLI installed

@salesforce/core

Should just be something like this:

const connection: Connection = await Connection.create({
      authInfo: await AuthInfo.create({ username: testData.username })
});
CarsonF commented 4 years ago

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 4 years ago

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)