-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle trailing commas and comments in lerna.json files (#3603)
- Loading branch information
1 parent
43afbf8
commit b826398
Showing
8 changed files
with
89 additions
and
8 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
1 change: 1 addition & 0 deletions
1
...ject/__fixtures__/invalid-json/lerna.json → ...valid-lerna-json-irrecoverable/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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
233434 | ||
"version": "1.0.0", | ||
} |
2 changes: 1 addition & 1 deletion
2
...ct/__fixtures__/invalid-json/package.json → ...lid-lerna-json-irrecoverable/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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "test", | ||
"devDependencies": { | ||
"lerna": "500.0.0", | ||
"lerna": "500.0.0" | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
libs/core/src/lib/project/__fixtures__/invalid-lerna-json-recoverable/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 @@ | ||
{ | ||
// Trailing commas and comments are recoverable | ||
"version": "1.0.0", | ||
} |
6 changes: 6 additions & 0 deletions
6
libs/core/src/lib/project/__fixtures__/invalid-lerna-json-recoverable/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,6 @@ | ||
{ | ||
"name": "test", | ||
"devDependencies": { | ||
"lerna": "500.0.0" | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
libs/core/src/lib/project/__fixtures__/invalid-package-json/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,9 @@ | ||
{ | ||
"name": "test", | ||
"devDependencies": { | ||
"lerna": "500.0.0", | ||
}, | ||
"lerna": { | ||
"version": "1.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