-
Notifications
You must be signed in to change notification settings - Fork 17
Errors publishing freshly scaffolded plug-in #98
Comments
Git2Gus App is installed but the |
I had the exact same issues and ended up bumping all packages to their latest versions, except for "dependencies": {
"@oclif/command": "^1.8.3",
"@oclif/config": "^1.17.1",
"@oclif/errors": "^1.3.5",
"@salesforce/command": "^4.1.5",
"@salesforce/core": "^2.29.0",
"tslib": "^2.3.1"
},
"devDependencies": {
"@oclif/dev-cli": "^1.26.0",
"@oclif/plugin-help": "^3.2.5",
"@oclif/test": "^1.2.8",
"@salesforce/dev-config": "^2.1.2",
"@salesforce/dev-scripts": "^0.9.18",
"@salesforce/prettier-config": "^0.0.2",
"@salesforce/ts-sinon": "^1.3.21",
"@types/chai": "^4.2.22",
"@types/jsforce": "^1.9.35",
"@types/mocha": "^9.0.0",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"chai": "^4.3.4",
"eslint": "^8.2.0",
"eslint-config-oclif": "^4.0.0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-salesforce": "^0.1.6",
"eslint-config-salesforce-typescript": "^0.2.8",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jsdoc": "^37.0.3",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-typescript": "^0.14.0",
"globby": "^11",
"husky": "^7.0.4",
"mocha": "^9.1.3",
"nyc": "^15.1.0",
"prettier": "^2.4.1",
"pretty-quick": "^3.1.2",
"sinon": "^12.0.1",
"ts-node": "^10.4.0",
"typescript": "^4.5.2"
}, |
Bumping versions worked for me too, except that the
Is that working for you ? |
I just tried with the latest cli and standard plug-ins. After scaffolding but before touching the dependencies, all the hello:org commands work, including
After updating all the dependencies with the version in the earlier comment, all the hello:org commands still work and the prepack command succeeds. |
Thank you. Following your post I published a new version of our plugin and everything works fine, whereas locally it doesn't. Definitely something with my local setup. |
Summary
I'm seeing errors when running
npm publish
on a freshly scaffolded plug-in. All I've done is create the plug-in and check thathello:org
runs as expected, but I think theprepack
script is erroring when the typescript is compiled.Steps To Reproduce:
bin/run hello:org <username>
npm publish
to compile and publish the plug-inExpected result
Plug-in should publish without errors
Actual result
Additional information
Feel free to attach a screenshot.
SFDX CLI Version: sfdx-cli/7.126.0 darwin-x64 node-v16.13.0
OS and version: MacOS Monterey 12.0.1
The text was updated successfully, but these errors were encountered: