@takuma-ru/auto-story-generator
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -24,3 +24,3 @@ var __defProp = Object.defineProperty; | ||
import { consola as consola3 } from "consola"; | ||
import { sync } from "glob"; | ||
import { globSync } from "glob"; | ||
import { from, mergeMap } from "rxjs"; | ||
@@ -756,2 +756,3 @@ import { createUnplugin } from "unplugin"; | ||
const isGenFile = hasGenFile(); | ||
consola2.info(`isGenFile: ${isGenFile}`); | ||
if (!isGenFile) | ||
@@ -1014,3 +1015,3 @@ return; | ||
consola3.info("ASG is running in", meta.framework); | ||
const projectRootDir = process.cwd(); | ||
const projectRootDir = process.cwd().replace(/\\/g, "/"); | ||
return { | ||
@@ -1024,3 +1025,5 @@ name: PLUGIN_NAME, | ||
} | ||
const allFiles = sync(path3.join(process.cwd(), "**")); | ||
const allFiles = globSync( | ||
path3.join(process.cwd(), "**").replace(/\\/g, "/") | ||
); | ||
from(allFiles).pipe( | ||
@@ -1030,3 +1033,3 @@ mergeMap(async (filePath) => { | ||
options, | ||
id: filePath, | ||
id: filePath.replace(/\\/g, "/"), | ||
projectRootDir | ||
@@ -1033,0 +1036,0 @@ }); |
@@ -5,3 +5,3 @@ { | ||
"private": false, | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"main": "./dist/index.js", | ||
@@ -8,0 +8,0 @@ "module": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
68501
2151