Skip to content

Commit 8f312f1

Browse files
committed
chore: windows paths 😠
1 parent 1786f84 commit 8f312f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugin/src/helpers/analysis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import fs from 'fs'
2-
import { relative } from 'path'
32

43
import { extractExportedConstValue, UnsupportedValueError } from 'next/dist/build/analysis/extract-const-value'
54
import { parseModule } from 'next/dist/build/analysis/parse-module'
5+
import { relative } from 'pathe'
66

77
export interface ApiStandardConfig {
88
type?: never

test/analysis.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { extractConfigFromFile } from '../plugin/src/helpers/analysis'
2-
import { resolve } from 'path'
2+
import { resolve } from 'pathe'
33
import { getDependenciesOfFile } from '../plugin/src/helpers/files'
44
describe('static source analysis', () => {
55
beforeEach(() => {

0 commit comments

Comments
 (0)