How to add the root as a managed location?
See original GitHub issueExpected Behavior
lerna link root’s dependencies to packages’ directories (FAQ.root-package.json)
Current Behavior
It’s not working
Possible Solution
symlink root binary to packages binary with a command. maybe like link-parent-bin
Steps to Reproduce (for bugs)
- create a monorepo(
package.name: monorepo
) - create a package:
lerna create demo
- install tslint in root dir:
npm i -D tslint
(I not found lerna command to add packages to root package.json) - run lerna bootstrap:
lerna bootstrap --hoist
- check tslint in demo dir:
cd packages/demo
,npx --no-install tslint -v
- log not found: tslint
lerna.json
{
"packages": [
"packages/*",
"monorepo" // I also try input: "./", "./package.json", "./monorepo",
],
"version": "independent"
}
Context
Your Environment
Executable | Version |
---|---|
lerna --version |
3.13.1 |
npm --version |
6.4.1 |
yarn --version |
VERSION |
node --version |
10.10.0 |
OS | Version |
---|---|
Windows 10 | 1809 |
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Create the Key Distribution Services KDS Root Key
To create the KDS root key using the Add-KdsRootKey cmdlet · On the Windows Server 2012 or later domain controller, run the Windows...
Read more >AWS account root user - AWS Identity and Access Management
Sign in to the IAM console as the account owner by choosing Root user and entering your AWS account email address.
Read more >Install the Cisco Umbrella Root Certificate
Accept the default option, place all certificates in the following store (Trusted Root Certification Authorities), click Next, and then click Finish and OK....
Read more >Manage your Android device's location settings - Android Help
Turn location on or off for your phone · Swipe down from the top of the screen. · Touch and hold Location ....
Read more >20432: Acronis Backup & Recovery 10: Impossible to Save ...
Choose a different location or assign Local Administrator rights to Acronis ... to Save Backup to Root Directory from Management Server ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, probably should remove that bit from the FAQ.
For anyone who really want to have the root managed but got stuck on having
"."
in the package list inlerna.json
, I found a solution to avoid thepostinstall/prepare
loop duringbootstrap
. It is to ignore the root package bylerna bootstrap --ignore <root package name>
in yourpostinstall/prepare
life cycle script. It works for me and it hopes it works for you too.