Skip to content

Commit

Permalink
changesets
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Del Core committed Feb 6, 2024
1 parent f24ede5 commit 55140b2
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/silent-steaks-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hypermod/validator': patch
---

Fixes usage of fetchConfig to account for undefined. Now errors should be reported correctly
5 changes: 5 additions & 0 deletions .changeset/slimy-mangos-refuse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hypermod/fetcher': patch
---

Correctly types fetchConfig function to correctly show that this function can return `undefined`
6 changes: 6 additions & 0 deletions .changeset/wild-pigs-care.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@hypermod/mod-atlaskit__textfield': patch
'@hypermod/mod-hypermod': patch
---

Removes unused variables
6 changes: 3 additions & 3 deletions scripts/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ async function main() {
const directories = communityCodemods.filter(dir => junk.not(dir));

for (const dir of directories) {
const { config } = await fetchConfig(path.join(COMMUNITY_PATH, dir));
const configMeta = await fetchConfig(path.join(COMMUNITY_PATH, dir));

if (!config) {
if (!configMeta || !configMeta.config) {
throw new Error(`Unable to locate config for path: ${dir}`);
}

data.push({ name: dir, config });
data.push({ name: dir, config: configMeta.config });
}

cleanTargetDir(DOCS_PATH);
Expand Down

0 comments on commit 55140b2

Please sign in to comment.