Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(install): dont start interactive script on npm install #2272

Merged
merged 1 commit into from
Mar 20, 2022

Conversation

lubber-de
Copy link
Member

@lubber-de lubber-de commented Mar 20, 2022

Description

This PR removes the interactive auto install which was called automatically after npm install.
Whenever Fomantic UI is installed via npm install fomantic-ui the dist folder is already available, so there is no need to compile it at install time.

The main reason to remove it is that especially yarn and recent versions of npm do not work with inquirer interactive scripts as post install and throw an error.

Manually calling npx/yarn gulp install or npx/yarn gulp build right after npm install however, works fine

a --ignore-scripts shouldn't be needed anymore then

Closes

#811
#1767
#1859
#1911
#2461

@lubber-de lubber-de added type/build Anything related to the build process state/awaiting-reviews Pull requests which are waiting for reviews tag/breaking-change Any pull request which is waiting for a breaking change release labels Mar 20, 2022
@lubber-de lubber-de added this to the 2.9.0 milestone Mar 20, 2022
Copy link
Member

@y0hami y0hami left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lubber-de lubber-de added state/awaiting-docs Pull requests which need doc changes/additions and removed state/awaiting-reviews Pull requests which are waiting for reviews labels Mar 20, 2022
@lubber-de lubber-de changed the title fix(install): dont start interactive script on npm install to fix yarn/npm 7+ install fix(install): dont start interactive script on npm install Mar 20, 2022
@lubber-de lubber-de merged commit f5f1dd8 into fomantic:develop Mar 20, 2022
@lubber-de lubber-de deleted the disablePostInstallScript branch March 20, 2022 17:08
@lubber-de
Copy link
Member Author

Docs added by fomantic/Fomantic-UI-Docs#341

@lubber-de lubber-de added state/has-docs A issue/PR which requires documentation changes and has the corresponding PR open in the docs repo and removed state/awaiting-docs Pull requests which need doc changes/additions labels Mar 20, 2022
lubber-de added a commit to fomantic/Fomantic-UI-Docs that referenced this pull request Apr 17, 2022
Adjusted the install infos because the automatic script call on npm install has been removed as of fomantic/Fomantic-UI#2272
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state/has-docs A issue/PR which requires documentation changes and has the corresponding PR open in the docs repo tag/breaking-change Any pull request which is waiting for a breaking change release type/build Anything related to the build process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants