-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: attribute selectors, workspace root, cleanup
Giant refactor: - adds case insensitivity to attribute selectors - fixes --include-workspace-root - fixes -w results - docs updates - consolidating state into the `results` object and passing that to the functions that the ast walker functions use. - optimizing and refactoring other loops - code consolidation and consistency between two different attribute selectors - Un-asyncify functions that don't do async operators. We leave the exported fn async so we can add some in the future. - lots of other minor tweaks/cleanups
- Loading branch information
Showing
12 changed files
with
664 additions
and
539 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
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,15 +13,49 @@ exports[`test/lib/commands/query.js TAP global > should return global package 1` | |
"_id": "[email protected]", | ||
"pkgid": "[email protected]", | ||
"location": "node_modules/lorem", | ||
"path": "{CWD}/test/lib/commands/tap-testdir-query-global/global/lib/node_modules/lorem", | ||
"realpath": "{CWD}/test/lib/commands/tap-testdir-query-global/global/lib/node_modules/lorem", | ||
"path": "{CWD}/test/lib/commands/tap-testdir-query-global/global/node_modules/lorem", | ||
"realpath": "{CWD}/test/lib/commands/tap-testdir-query-global/global/node_modules/lorem", | ||
"resolved": null, | ||
"isLink": false, | ||
"isWorkspace": false | ||
} | ||
] | ||
` | ||
|
||
exports[`test/lib/commands/query.js TAP include-workspace-root > should return workspace object and root object 1`] = ` | ||
[ | ||
{ | ||
"name": "project", | ||
"workspaces": [ | ||
"c" | ||
], | ||
"dependencies": { | ||
"a": "^1.0.0", | ||
"b": "^1.0.0" | ||
}, | ||
"pkgid": "project@", | ||
"location": "", | ||
"path": "{CWD}/test/lib/commands/tap-testdir-query-include-workspace-root/prefix", | ||
"realpath": "{CWD}/test/lib/commands/tap-testdir-query-include-workspace-root/prefix", | ||
"resolved": null, | ||
"isLink": false, | ||
"isWorkspace": false | ||
}, | ||
{ | ||
"name": "c", | ||
"version": "1.0.0", | ||
"_id": "[email protected]", | ||
"pkgid": "[email protected]", | ||
"location": "c", | ||
"path": "{CWD}/test/lib/commands/tap-testdir-query-include-workspace-root/prefix/c", | ||
"realpath": "{CWD}/test/lib/commands/tap-testdir-query-include-workspace-root/prefix/c", | ||
"resolved": null, | ||
"isLink": false, | ||
"isWorkspace": true | ||
} | ||
] | ||
` | ||
|
||
exports[`test/lib/commands/query.js TAP linked node > should return linked node res 1`] = ` | ||
[ | ||
{ | ||
|
@@ -39,7 +73,7 @@ exports[`test/lib/commands/query.js TAP linked node > should return linked node | |
] | ||
` | ||
|
||
exports[`test/lib/commands/query.js TAP simple query > should return root object 1`] = ` | ||
exports[`test/lib/commands/query.js TAP simple query > should return root object and direct children 1`] = ` | ||
[ | ||
{ | ||
"name": "project", | ||
|
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
Oops, something went wrong.