Skip to content

Commit

Permalink
Fix typescript erro
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoattal committed Dec 21, 2024
1 parent c80bef0 commit fa33aa3
Show file tree
Hide file tree
Showing 15 changed files with 15,220 additions and 17 deletions.
2 changes: 1 addition & 1 deletion examples/sveltekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
"svelte-preprocess": "^6.0.3",
"tslib": "^2.8.1",
"typescript": "5.6.3",
"vite": "^6.0.3"
"vite": "^6.0.5"
}
}
2 changes: 1 addition & 1 deletion examples/vue3-percy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"@histoire/plugin-vue": "workspace:*",
"@vitejs/plugin-vue": "^5.2.1",
"histoire": "workspace:*",
"vite": "^6.0.3"
"vite": "^6.0.5"
}
}
2 changes: 1 addition & 1 deletion examples/vue3-screenshot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"@histoire/plugin-vue": "workspace:*",
"@vitejs/plugin-vue": "^5.2.1",
"histoire": "workspace:*",
"vite": "^6.0.3"
"vite": "^6.0.5"
}
}
2 changes: 1 addition & 1 deletion examples/vue3-themed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"@histoire/plugin-vue": "workspace:*",
"@vitejs/plugin-vue": "^5.2.1",
"histoire": "workspace:*",
"vite": "^6.0.3"
"vite": "^6.0.5"
}
}
2 changes: 1 addition & 1 deletion examples/vue3-vuetify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@histoire/plugin-vue": "workspace:*",
"@vitejs/plugin-vue": "^5.2.1",
"histoire": "workspace:*",
"vite": "^6.0.3",
"vite": "^6.0.5",
"vite-plugin-vuetify": "2.0.4"
}
}
2 changes: 1 addition & 1 deletion examples/vue3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
"nodemon": "^3.1.7",
"sass": "^1.82.0",
"start-server-and-test": "^2.0.8",
"vite": "^6.0.3"
"vite": "^6.0.5"
}
}
2 changes: 1 addition & 1 deletion packages/histoire-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"postcss-import": "^16.1.0",
"tailwindcss": "^3.4.16",
"typescript": "5.6.3",
"vite": "^6.0.3",
"vite": "^6.0.5",
"vue": "^3.5.13"
}
}
2 changes: 1 addition & 1 deletion packages/histoire-controls-stories/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
"@histoire/plugin-vue": "workspace:*",
"@vitejs/plugin-vue": "^5.2.1",
"histoire": "workspace:*",
"vite": "^6.0.3"
"vite": "^6.0.5"
}
}
2 changes: 1 addition & 1 deletion packages/histoire-controls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"postcss-import": "^16.1.0",
"tailwindcss": "^3.4.16",
"typescript": "5.6.3",
"vite": "^6.0.3",
"vite": "^6.0.5",
"vitest": "0.34.6",
"vue": "^3.5.13",
"vue-tsc": "^2.1.10"
Expand Down
2 changes: 1 addition & 1 deletion packages/histoire-plugin-nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
"@types/node": "^22.10.1",
"histoire": "workspace:*",
"typescript": "5.6.3",
"vite": "^6.0.3"
"vite": "^6.0.5"
}
}
2 changes: 1 addition & 1 deletion packages/histoire-plugin-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"concurrently": "^9.1.0",
"histoire": "workspace:*",
"typescript": "5.6.3",
"vite": "^6.0.3",
"vite": "^6.0.5",
"vue": "^3.5.13"
}
}
2 changes: 1 addition & 1 deletion packages/histoire-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
},
"devDependencies": {
"typescript": "5.6.3",
"vite": "^6.0.3"
"vite": "^6.0.5"
}
}
2 changes: 1 addition & 1 deletion packages/histoire/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"esbuild": "^0.24.0",
"rollup": "^4.28.0",
"typescript": "5.6.3",
"vite": "^6.0.3",
"vite": "^6.0.5",
"vitest": "0.34.6"
}
}
8 changes: 4 additions & 4 deletions packages/histoire/src/node/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,15 +235,15 @@ export async function createMarkdownFilesWatcher(ctx: Context) {
}

watcher
.on('add', async (relativePath) => {
await addFile(relativePath)
.on('add', (relativePath) => {
addFile(relativePath)
})
.on('unlink', (relativePath) => {
removeFile(relativePath)
})

await new Promise((resolve) => {
watcher.once('ready', resolve)
watcher.once('ready', resolve as () => void)
})

try {
Expand All @@ -260,7 +260,7 @@ export async function createMarkdownFilesWatcher(ctx: Context) {
}
}
catch (e) {
stop()
await stop()
throw e
}
}
Expand Down
Loading

0 comments on commit fa33aa3

Please sign in to comment.