From 69c41c5c37aff7684d5201f6fd63e001f01f400c Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Tue, 23 Aug 2022 16:30:47 +0200 Subject: [PATCH] fix(plugin): replace `:` with `_` to prevent issue on Windows, fix #256 --- packages/histoire/src/node/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/histoire/src/node/plugin.ts b/packages/histoire/src/node/plugin.ts index 41dc5b31..9df8d02c 100644 --- a/packages/histoire/src/node/plugin.ts +++ b/packages/histoire/src/node/plugin.ts @@ -28,7 +28,7 @@ export class BasePluginApi implements PluginApiBase { ) { } get pluginTempDir () { - return path.resolve(TEMP_PATH, 'plugins', this.plugin.name) + return path.resolve(TEMP_PATH, 'plugins', this.plugin.name.replace(/:/g, '_')) } log (...msg) {