Skip to content

Commit

Permalink
fix: improve windows compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jan 17, 2021
1 parent b0d7222 commit 6efe29a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"rollup-plugin-esbuild": "2.3.0"
},
"dependencies": {
"defu": "3.2.2"
"defu": "3.2.2",
"upath": "^2.0.1"
},
"devDependencies": {
"@babel/plugin-transform-runtime": "7.12.10",
Expand Down
5 changes: 2 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { resolve } from 'path'

import defu from 'defu'
import { join, resolve } from 'upath'

import type { Module } from '@nuxt/types'
import type { SanityClient } from '@sanity/client'
Expand Down Expand Up @@ -146,7 +145,7 @@ const nuxtModule: Module<SanityModuleOptions> = function (moduleOptions) {

if (autoregister) {
this.nuxt.hook('components:dirs', (dirs: string[]) => {
dirs.push(resolve(__dirname, './components'))
dirs.push(join(__dirname, 'components'))
})
}

Expand Down

0 comments on commit 6efe29a

Please sign in to comment.