-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Install a package without saving it into composer.json ? #7061
Comments
Any code in your folder vendor is not committed in your CVS in any way. That's why you shouldn't edit any file in the vendor folder, it will be lost. Have you tried any other existing solution, like https://github.com/drupal-composer/drupal-project ? |
Yes, I'm aware of that, and I'm actually using Drupal project. For anyone wanting to achieve the same thing as me, I finally make a custom script launched after install that :
It works for me as the downloaded theme is just a base to start development and not an actual theme that will be updated. |
This is intentionally impossible as well, not a missing feature or anything. The Fyi - Node's |
Seems logic now I see it. Thank's for your time helping me. |
I'm trying to create a composer.json that generates a ready-to-use Drupal 8 (based on the excellent Drupal Project). It works well, but I want to include a custom theme that'll be use as a base for any developer. This theme is call in the composer.json
"my-package/my-theme": "*"
, and is automatically include in the Drupal's theme folder. Perfect!The problem is : when you make a change to this theme, if you run a
composer install
orcomposer update
, all your changes get deleted. I understand that's a normal behavior of Composer.So, is it possible to install a package without saving it into composer.json / composer.lock ?
composer remove my-package/my-theme --no-update
, but it removed my package only in composer.json and not composer.lock, which give the same result.The text was updated successfully, but these errors were encountered: