From a429462639519f7827231c8369fa32a3d4cd6299 Mon Sep 17 00:00:00 2001 From: Philipp Spiess Date: Wed, 2 Apr 2025 11:16:58 +0200 Subject: [PATCH] Use `@tailwindcss/node` for import in CLI (#17502) Closes #17501 Seems like an oversight. The CLI does have a dependency on `@tailwindcss/node` so it should use it from the public import like the other stuff. --- CHANGELOG.md | 1 + packages/@tailwindcss-cli/src/commands/build/index.ts | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f0ac519a9..16791ed68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Disable padding in `@source inline(…)` brace expansion ([#17491](https://github.com/tailwindlabs/tailwindcss/pull/17491)) - Inject polyfills after `@import` and body-less `@layer` ([#17493](https://github.com/tailwindlabs/tailwindcss/pull/17493)) +- Ensure `@tailwindcss/cli` does not contain an import for `jiti` ([#17502](https://github.com/tailwindlabs/tailwindcss/pull/17502)) ## [4.1.0] - 2025-04-01 diff --git a/packages/@tailwindcss-cli/src/commands/build/index.ts b/packages/@tailwindcss-cli/src/commands/build/index.ts index 0b3bc2190..409c398e9 100644 --- a/packages/@tailwindcss-cli/src/commands/build/index.ts +++ b/packages/@tailwindcss-cli/src/commands/build/index.ts @@ -1,11 +1,10 @@ import watcher from '@parcel/watcher' -import { compile, env, Instrumentation } from '@tailwindcss/node' +import { compile, env, Instrumentation, optimize } from '@tailwindcss/node' import { clearRequireCache } from '@tailwindcss/node/require-cache' import { Scanner, type ChangedContent } from '@tailwindcss/oxide' import { existsSync, type Stats } from 'node:fs' import fs from 'node:fs/promises' import path from 'node:path' -import { optimize } from '../../../../@tailwindcss-node/src' import type { Arg, Result } from '../../utils/args' import { Disposables } from '../../utils/disposables' import {