Closed seawatts closed 7 years ago
This looks like an issue in your repo:
npm ERR! denali-jwt@1.0.0-beta.6 prepublish: `in-publish && echo "Use 'denali publish' instead." && exit 1 || not-in-publish`
Looks like you are using a recent denali, but still have the old prepublish hook in your package.json.
tl;dr:
"prepublishOnly": "npm run build"
and make sure your build script is denali build
in-publish
from your projectLonger explanation:
The old prepublish script was placed in the addon blueprint to ensure that publishing would always fail. Then the old build script, when it copied the package.json into dist
, actually removed that hook. So basically, it was setup to block publishing from the root dir by accident, and instead force you to rely on denali publish, which would build and then publish from dist, as was needed under the old build system, pre main-dir
Now, with main-dir
, we don't need to publish from a different folder, so the publish command changed - it no longer does the whole "remove the hook from package.json and publish from dist". It just builds and publishes - that's it.
Closing since I'm pretty sure this is an issue in the consuming project. But feel free to leave a comment if you find otherwise and I'll happily reopen
Sounds great! I'll check when I get home
On Wed, Oct 4, 2017 at 9:03 AM Dave Wasmer notifications@github.com wrote:
Closing since I'm pretty sure this is an issue in the consuming project. But feel free to leave a comment if you find otherwise and I'll happily reopen
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/denali-js/denali/issues/400#issuecomment-334205536, or mute the thread https://github.com/notifications/unsubscribe-auth/ACDIwnS__R2oR-a7-X2Q1ogeMsDnrdCgks5so6xagaJpZM4PtDzf .