Skip to content

Commit 033f1c0

Browse files
committed
chore: remove basedir option
1 parent 09c0686 commit 033f1c0

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

packages/tailwindcss-patch/src/exposeContext.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ import type { Rule } from 'postcss'
44
import { requireResolve } from './utils'
55

66
export function getTailwindcssEntry(basedir: string = process.cwd()) {
7-
return requireResolve('tailwindcss', {
8-
basedir
9-
})
7+
return requireResolve('tailwindcss')
108
}
119

1210
export function getContexts(basedir?: string) {

packages/tailwindcss-patch/src/patcher.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ export function getInstalledPkgJsonPath(options: PatchOptions = {}) {
1212
try {
1313
// const cwd = process.cwd()
1414
const tmpJsonPath = requireResolve(`tailwindcss/package.json`, {
15-
paths: options.paths,
16-
basedir: options.basedir ?? process.cwd()
15+
paths: options.paths
1716
})
1817

1918
return tmpJsonPath

0 commit comments

Comments
 (0)