Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(bootstrap): Support
--force-local
option (#1807)
Fixes #1763
- Loading branch information
Showing
14 changed files
with
125 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
commands/bootstrap/__tests__/__fixtures__/force-local/lerna.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"ci": false, | ||
"version": "1.0.0" | ||
} |
8 changes: 8 additions & 0 deletions
8
commands/bootstrap/__tests__/__fixtures__/force-local/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "basic", | ||
"version": "monorepo", | ||
"private": true, | ||
"dependencies": { | ||
"bar": "^2.0.0" | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
commands/bootstrap/__tests__/__fixtures__/force-local/packages/package-1/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "@test/package-1", | ||
"version": "1.0.0" | ||
} |
2 changes: 2 additions & 0 deletions
2
commands/bootstrap/__tests__/__fixtures__/force-local/packages/package-2/cli.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env node | ||
console.log("Hello, world!"); |
8 changes: 8 additions & 0 deletions
8
commands/bootstrap/__tests__/__fixtures__/force-local/packages/package-2/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "@test/package-2", | ||
"version": "1.0.0", | ||
"bin": "cli.js", | ||
"dependencies": { | ||
"@test/package-1": "^10.0.0" | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
commands/bootstrap/__tests__/__fixtures__/force-local/packages/package-3/cli1.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env node | ||
console.log("Hello, world!"); |
2 changes: 2 additions & 0 deletions
2
commands/bootstrap/__tests__/__fixtures__/force-local/packages/package-3/cli2.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env node | ||
console.log("Hello, world!"); |
12 changes: 12 additions & 0 deletions
12
commands/bootstrap/__tests__/__fixtures__/force-local/packages/package-3/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "@test/package-3", | ||
"version": "1.0.0", | ||
"bin": { | ||
"package3cli1": "cli1.js", | ||
"package3cli2": "cli2.js" | ||
}, | ||
"devDependencies": { | ||
"@test/package-1": "^10.0.0", | ||
"@test/package-2": "^10.0.0" | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
commands/bootstrap/__tests__/__fixtures__/force-local/packages/package-4/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "package-4", | ||
"version": "1.0.0", | ||
"dependencies": { | ||
"@test/package-1": "^10.0.0", | ||
"@test/package-3": "^10.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters