Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
LorisSigrist committed Mar 26, 2024
1 parent 95cf84e commit 365e5e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { paraglide } from "@inlang/paraglide-js-adapter-vite"
import path from "node:path"
import { alias } from "./alias.js"
import { fileURLToPath } from "node:url"
import { normaizePath } from "./utilts.js"
import { normalizePath } from "./utilts.js"

const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
Expand Down Expand Up @@ -38,7 +38,7 @@ export function integration(integrationConfig: {
//normalizing the path is very important!
//otherwise you get duplicate modules on windows
//learned that one the hard way (parjs-47)
"paraglide-js-adapter-astro:runtime": normaizePath(runtimePath),
"paraglide-js-adapter-astro:runtime": normalizePath(runtimePath),
}),
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ function slash(p: string): string {

const isWindows = typeof process !== "undefined" && process.platform === "win32"

export function normaizePath(id: string) {
export function normalizePath(id: string) {
return path.posix.normalize(isWindows ? slash(id) : id)
}

0 comments on commit 365e5e3

Please sign in to comment.