Skip to content

Commit

Permalink
fix: adaptive windows os
Browse files Browse the repository at this point in the history
  • Loading branch information
recoluan committed May 8, 2024
1 parent 84cd920 commit eeca976
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/core/src/node/command/handleCache.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import fs from 'node:fs'
import { pathToFileURL } from 'node:url'
import { CACHE_FOLDER_PATH, CACHE_PACKAGED_FILE_PATH, CACHE_CONFIG_FILE_PATH } from '../alias.js'

export type ReviliCache = {
Expand Down Expand Up @@ -26,7 +27,7 @@ export async function getReviliCache(): Promise<ReviliCache> {
setReviliCache()
}

const reviliCache = await import(CACHE_CONFIG_FILE_PATH)
const reviliCache = await import(pathToFileURL(CACHE_CONFIG_FILE_PATH) as unknown as string)
return reviliCache.default
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { colors } from "./customColors.js";
import path from "path";

export const tailwindcssConfig = {
darkMode: "class",
Expand Down

0 comments on commit eeca976

Please sign in to comment.