Skip to content

Commit 0206ac3

Browse files
authored
fix: read oas and config even if not checked into git (#91)
* fix: read oas and config even if not checked into git * build
1 parent 7984474 commit 0206ac3

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

dist/build.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/merge.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/preview.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@ export async function readConfig({
103103
.exec("git", ["fetch", "--depth=1", "origin", sha], { silent: true })
104104
.catch(() => null);
105105
await exec.exec("git", ["checkout", sha], { silent: true });
106-
107-
await addToResults("oas", oasPath, `git ${sha}`);
108-
await addToResults("config", configPath, `git ${sha}`);
109106
} catch {
110107
console.log("Could not checkout", sha);
111108
}
112109

110+
await addToResults("oas", oasPath, `git ${sha}`);
111+
await addToResults("config", configPath, `git ${sha}`);
112+
113113
try {
114114
await addToResults("oas", getSavedFilePath("oas", sha), `saved ${sha}`);
115115
await addToResults(

0 commit comments

Comments
 (0)