Skip to content

Commit

Permalink
Merge pull request #23 from IBM/change/load_objects
Browse files Browse the repository at this point in the history
Change/load_objects
  • Loading branch information
worksofliam authored Jan 2, 2024
2 parents 47ca2bb + 7d7b4fe commit 28bcc9c
Show file tree
Hide file tree
Showing 7 changed files with 183 additions and 108 deletions.
128 changes: 102 additions & 26 deletions cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ async function main() {
process.exit(1);
}

targets.loadObjectsFromPaths(files);

for (const filePath of files) {
const result = await targets.parseFile(filePath);
if (!result) {
Expand Down
2 changes: 1 addition & 1 deletion cli/src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function setupParser(targets: Targets): Parser {
includeFile = includeFile.split(`,`)[1] + `.*`;
}

const file = targets.searchForFile(includeFile);
const file = targets.resolveLocalFile(includeFile);

if (file) {
if (includeFileCache[file]) {
Expand Down
Loading

0 comments on commit 28bcc9c

Please sign in to comment.