Files
trezor-suite/scripts/prepublishNPM.js
Matej Kriz fbceedba28 chore(npm): fix yarn publish command and prevent using npm
- There is no yarn publish command, it's called yarn npm publish.
- prepublishOnly script is called only on npm publish command that we don't want to use at all.
- prepublish script start checking if you run it from CI.
2022-11-25 12:04:54 +01:00

6 lines
229 B
JavaScript

console.log(
`Publish only from CI!
DO NOT USE npm publish, use yarn npm publish instead! npm publish does not handle workspace ranges - see https://yarnpkg.com/features/workspaces#publishing-workspaces`,
);
process.exit(1);