camacho / install-deps-postmerge Goto Github PK
View Code? Open in Web Editor NEWGit hook for installing dependencies using npm or yarn
License: MIT License
Git hook for installing dependencies using npm or yarn
License: MIT License
Hey, first of all: great package! I love it and use it on almost all my projects, but today I have a feature request ๐
Recently I started a project with different React apps in two different subfolders (monorepo style, if you wanna call it like that). I have a structure like:
./app-1/
./app-1/package.json
./app-2/
./app-2/package.json
./package.json
Would be a great addition if yarn install
was executed in the folder where the package.json (or yarn.lock or package-lock.json) that was updated is located. So if I add a new dependency to ./app-1/package.json
, the package should run yarn install
with dirname('./app-1/package.json')
as cwd.
Should be package-lock.json
.
install-deps-postmerge/package.json
Line 18 in 17dc911
Maybe auto-ignored when packaging/publishing?
I have a project with package.json
and package-lock.json
, when I run:
npx install-deps-postmerge
It runs:
โฏ npx install-deps-postmerge --help
yarn install v1.22.4
info No lockfile found.
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/5] ๐ Validating package.json...
[2/5] ๐ Resolving packages...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.