diff options
author | Fabio Berger <me@fabioberger.com> | 2018-04-24 09:32:44 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-04-24 09:32:44 +0800 |
commit | a3cc5c1dd7e88aea50859560f7d751435cb577bd (patch) | |
tree | a805950f15bcfd757a98913402a445bd2712653b /packages/monorepo-scripts/src/publish.ts | |
parent | 1f82c7eadfe9e9cddb56b40562a2f0f69cc7dfd9 (diff) | |
download | dexon-sol-tools-a3cc5c1dd7e88aea50859560f7d751435cb577bd.tar dexon-sol-tools-a3cc5c1dd7e88aea50859560f7d751435cb577bd.tar.gz dexon-sol-tools-a3cc5c1dd7e88aea50859560f7d751435cb577bd.tar.bz2 dexon-sol-tools-a3cc5c1dd7e88aea50859560f7d751435cb577bd.tar.lz dexon-sol-tools-a3cc5c1dd7e88aea50859560f7d751435cb577bd.tar.xz dexon-sol-tools-a3cc5c1dd7e88aea50859560f7d751435cb577bd.tar.zst dexon-sol-tools-a3cc5c1dd7e88aea50859560f7d751435cb577bd.zip |
Add hack comment about the use of sudo
Diffstat (limited to 'packages/monorepo-scripts/src/publish.ts')
-rw-r--r-- | packages/monorepo-scripts/src/publish.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/monorepo-scripts/src/publish.ts b/packages/monorepo-scripts/src/publish.ts index 6c728467a..0ca3ea7a1 100644 --- a/packages/monorepo-scripts/src/publish.ts +++ b/packages/monorepo-scripts/src/publish.ts @@ -116,6 +116,8 @@ package.ts. Please add an entry for it and try again.`, async function checkPublishRequiredSetupAsync(): Promise<boolean> { // check to see if logged into npm before publishing try { + // HACK: for some reason on some setups, the `npm whoami` will not recognize a logged-in user + // unless run with `sudo` (i.e Fabio's NVM setup) but is fine for others (Jacob's N setup). await execAsync(`sudo npm whoami`); } catch (err) { utils.log('You must be logged into npm in the commandline to publish. Run `npm login` and try again.'); |