Skip to content

Commit

Permalink
fix: eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyinws committed Dec 4, 2023
1 parent b221e8a commit 975a242
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions scripts/postbuild.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path, { basename, dirname, resolve } from 'pathe'
import { promises as fs } from 'node:fs'
import { fileURLToPath } from 'node:url'
import { basename, dirname, join, resolve } from 'pathe'
import fg from 'fast-glob'
import chalk from 'chalk'
import { copy } from 'fs-extra'
Expand All @@ -20,8 +20,8 @@ async function run() {
await fs.writeFile(file, code)
}

const source = path.join(dirname(fileURLToPath(import.meta.url)), '../src/core/client')
const target = path.join(dirname(fileURLToPath(import.meta.url)), '../dist/client')
const source = join(dirname(fileURLToPath(import.meta.url)), '../src/core/client')
const target = join(dirname(fileURLToPath(import.meta.url)), '../dist/client')

copy(source, target)
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/dir.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { dirname, resolve } from 'pathe'
import { fileURLToPath } from 'node:url'
import { dirname, resolve } from 'pathe'

export const DIR_DIST = typeof __dirname !== 'undefined'
? __dirname
Expand Down

0 comments on commit 975a242

Please sign in to comment.