Skip to content

Commit fa45f04

Browse files
Move noramlizePath into node lib
1 parent 767e89f commit fa45f04

File tree

6 files changed

+4
-52
lines changed

6 files changed

+4
-52
lines changed

packages/@tailwindcss-node/src/index.cts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as Module from 'node:module'
22
import { pathToFileURL } from 'node:url'
33
export * from './compile'
4+
export * from './normalize-path'
45

56
// In Bun, ESM modules will also populate `require.cache`, so the module hook is
67
// not necessary.

packages/@tailwindcss-node/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as Module from 'node:module'
22
import { pathToFileURL } from 'node:url'
33
export * from './compile'
4+
export * from './normalize-path'
45

56
// In Bun, ESM modules will also populate `require.cache`, so the module hook is
67
// not necessary.

packages/@tailwindcss-postcss/src/postcss-fix-relative-paths/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1+
import { normalizePath } from '@tailwindcss/node'
12
import path from 'node:path'
23
import type { AtRule, Plugin } from 'postcss'
3-
import { normalizePath } from './normalize-path'
44

55
const SINGLE_QUOTE = "'"
66
const DOUBLE_QUOTE = '"'
77

8-
export { normalizePath }
9-
108
export default function fixRelativePathsPlugin(): Plugin {
119
// Retain a list of touched at-rules to avoid infinite loops
1210
let touched: WeakSet<AtRule> = new WeakSet()

packages/@tailwindcss-vite/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
import { compile } from '@tailwindcss/node'
1+
import { compile, normalizePath } from '@tailwindcss/node'
22
import { clearRequireCache } from '@tailwindcss/node/require-cache'
33

44
import { Scanner } from '@tailwindcss/oxide'
55
import { Features, transform } from 'lightningcss'
66
import path from 'path'
77
import type { Plugin, ResolvedConfig, Rollup, Update, ViteDevServer } from 'vite'
8-
import { normalizePath } from './normalize-path'
98

109
export default function tailwindcss(): Plugin[] {
1110
let servers: ViteDevServer[] = []

packages/@tailwindcss-vite/src/normalize-path.ts

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)