Skip to content

Commit 28c592f

Browse files
committed
Make resolveFrom a named export
1 parent 3c3c193 commit 28c592f

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

packages/tailwindcss-language-server/src/lib/env.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Module from 'node:module'
22
import * as path from 'node:path'
3-
import resolveFrom from '../util/resolveFrom'
3+
import { resolveFrom } from '../util/resolveFrom'
44

55
process.env.TAILWIND_MODE = 'build'
66
process.env.TAILWIND_DISABLE_TOUCH = 'true'

packages/tailwindcss-language-server/src/project-locator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import type { AtRule, Message } from 'postcss'
1111
import { type DocumentSelector, DocumentSelectorPriority } from './projects'
1212
import { CacheMap } from './cache-map'
1313
import { getPackageRoot } from './util/get-package-root'
14-
import resolveFrom from './util/resolveFrom'
14+
import { resolveFrom } from './util/resolveFrom'
1515
import { type Feature, supportedFeatures } from '@tailwindcss/language-service/src/features'
1616
import { extractSourceDirectives, resolveCssImports } from './css'
1717
import { normalizeDriveLetter, normalizePath, pathToFileURL } from './utils'

packages/tailwindcss-language-server/src/projects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import * as path from 'path'
2424
import * as fs from 'fs'
2525
import findUp from 'find-up'
2626
import picomatch from 'picomatch'
27-
import resolveFrom, { setPnpApi } from './util/resolveFrom'
27+
import { resolveFrom, setPnpApi } from './util/resolveFrom'
2828
import type { AtRule, Container, Node, Result } from 'postcss'
2929
import Hook from './lib/hook'
3030
import * as semver from '@tailwindcss/language-service/src/util/semver'

packages/tailwindcss-language-server/src/tw.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import normalizePath from 'normalize-path'
3636
import * as path from 'path'
3737
import type * as chokidar from 'chokidar'
3838
import picomatch from 'picomatch'
39-
import resolveFrom from './util/resolveFrom'
39+
import { resolveFrom } from './util/resolveFrom'
4040
import * as parcel from './watcher/index.js'
4141
import { equal } from '@tailwindcss/language-service/src/util/array'
4242
import { CONFIG_GLOB, CSS_GLOB, PACKAGE_LOCK_GLOB } from './lib/constants'

packages/tailwindcss-language-server/src/util/resolveFrom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function setPnpApi(newPnpApi: any): void {
1616
resolver = recreateResolver()
1717
}
1818

19-
export default function resolveFrom(from?: string, id?: string): string {
19+
export function resolveFrom(from?: string, id?: string): string {
2020
// Network share path on Windows
2121
if (id.startsWith('\\\\')) return id
2222

0 commit comments

Comments
 (0)