tailwindcss/packages/@tailwindcss-cli/src/utils/test-helpers.ts
Philipp Spiess a2159e80f5
Add Windows CI (#14065)
This PR changes the GitHub action workflow for V4 to start running all
unit tests and build on both Ubuntu (our current default) _and_ Windows.
This is to ensure we catch issues with paths and other Windows-specific
things sooner. It does, however, not replace testing on Windows.
2024-07-29 16:50:06 +02:00

5 lines
145 B
TypeScript

import path from 'node:path'
export function normalizeWindowsSeperators(p: string) {
return path.sep === '\\' ? p.replaceAll('\\', '/') : p
}