cli-table icon indicating copy to clipboard operation
cli-table copied to clipboard

adding publish-please to dependencies seems to be causing downstream problems

Open jphelps413 opened this issue 5 years ago • 9 comments

Expected/Desired Behavior

Should be able to run npm-check-updates with having publish-please kick in

Fill with either one:

It seems that the addition of publish-please to the dependencies is now causing our downstream repositories to have publish-please foisted upon them. Locking cli-table to v0.3.1 avoids the problem, but that's not ideal.

  1. Expected behavior for bugs
  2. Desired behavior for improvements/enhancements

Actual Behavior

How does the application currently work.

Steps to Reproduce the Problem/Current behavior

  1. Step 1
  2. Step 2
  3. Step 3

(Optional) Additional notes and links

Any other relevant informations helping in debugging/implementing.

jphelps413 avatar Dec 06 '20 14:12 jphelps413

+1 This happens for us too. All builds are failing.

I don't understand why "publish-please" is a dependency and not a devDependency for this package, am I missing something or is this just an oversight by the maintainer?

PeledYuval avatar Dec 06 '20 14:12 PeledYuval

Here's a PR that fixes this: https://github.com/Automattic/cli-table/pull/130

PeledYuval avatar Dec 06 '20 14:12 PeledYuval

I'm also having issues with builds related to the fact that publish-please is being included as a dependency

joamag avatar Dec 06 '20 15:12 joamag

+1 Break down @webpack-cli/[email protected] (published one month ago!)

atao60 avatar Dec 06 '20 15:12 atao60

+1 Breaks firebase-tools installation

jrstnly avatar Dec 06 '20 15:12 jrstnly

While we're on the subject, should the babel dependencies also be moved into devDependencies?

jphelps413 avatar Dec 06 '20 15:12 jphelps413

I got an error while using semantic-release

➜  project git:(master) yarn add -D [email protected]
yarn add v1.22.10
[1/4] 🔍  Resolving packages...
warning semantic-release > @semantic-release/npm > npm > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
warning semantic-release > @semantic-release/npm > npm > node-gyp > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
warning semantic-release > @semantic-release/npm > npm > request > [email protected]: this library is no longer supported
warning semantic-release > marked-terminal > cli-table > publish-please > cp-sugar > [email protected]: cross-spawn no longer requires a build toolchain, use it instead
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning " > [email protected]" has unmet peer dependency "prop-types@^15.6.2".
warning "next > [email protected]" has incorrect peer dependency "react@^17.0.0".
warning "next-optimized-images > [email protected]" has unmet peer dependency "webpack@^4.0.0".
warning "next-optimized-images > [email protected]" has unmet peer dependency "webpack@^4.3.0".
warning "next-optimized-images > [email protected]" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0".
warning " > [email protected]" has unmet peer dependency "autoprefixer@^10.0.2".
warning " > @tailwindcss/[email protected]" has incorrect peer dependency "tailwindcss@^1.0".
warning " > [email protected]" has incorrect peer dependency "postcss@7.*.*|^8.1.0".
warning " > [email protected]" has incorrect peer dependency "tailwindcss@^1.0".
[4/4] 🔨  Building fresh packages...
error /Users/toan/Desktop/project/node_modules/publish-please: Command failed.
Exit signal: SIGINT
Command: node lib/post-install.js
Arguments: 
Directory: /Users/toan/Desktop/project/node_modules/publish-please
Output:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! publish-please hooks were successfully setup for the project. !!
!! Now follow few simple steps to configure your publishing...   !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


-- Configuring option "prePublishScript":
? Do you want to run any scripts before publishing (e.g. build steps, tests)? (Y
/n) 
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

thanhtoan1196 avatar Dec 06 '20 16:12 thanhtoan1196

Sorry about this and thanks for the PR, #130 merged and new release pushed out. My bad.

chrean avatar Dec 06 '20 16:12 chrean

FYI v0.3.2 has been deprecated on npm. I suggest bumping to 0.3.4 which also reverts Node support to 10+ (was 12+).

chrean avatar Dec 06 '20 17:12 chrean