Skip to content

Commit 4515ae1

Browse files
committed
make all the tests pass
Some codemods used some internal canonicalization stuff, so this commit makes that work.
1 parent 4321a45 commit 4515ae1

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

packages/@tailwindcss-upgrade/src/codemods/template/migrate.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ import {
44
createSignatureOptions,
55
prepareDesignSystemStorage,
66
UTILITY_SIGNATURE_KEY,
7-
import { createSignatureOptions } from '../../../../tailwindcss/src/canonicalize-candidates'
7+
} from '../../../../tailwindcss/src/canonicalize-candidates'
88
import type { Config } from '../../../../tailwindcss/src/compat/plugin-api'
99
import type { DesignSystem } from '../../../../tailwindcss/src/design-system'
10-
import { computeUtilitySignature } from '../../../../tailwindcss/src/signatures'
1110
import { DefaultMap } from '../../../../tailwindcss/src/utils/default-map'
1211
import { spliceChangesIntoString, type StringChange } from '../../utils/splice-changes-into-string'
1312
import { extractRawCandidates } from './candidates'

packages/tailwindcss/src/canonicalize-candidates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1919,7 +1919,7 @@ export interface SignatureOptions {
19191919
// | `flex` | `.x { display: flex; }` |
19201920
//
19211921
// These produce the same signature, therefore they represent the same utility.
1922-
const UTILITY_SIGNATURE_KEY = Symbol()
1922+
export const UTILITY_SIGNATURE_KEY = Symbol()
19231923
function createUtilitySignatureCache(
19241924
designSystem: DesignSystem,
19251925
): DesignSystem['storage'][typeof UTILITY_SIGNATURE_KEY] {

packages/tailwindcss/src/expand-declaration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { describe, expect, test } from 'vitest'
22
import { toCss } from './ast'
3+
import { SignatureFeatures } from './canonicalize-candidates'
34
import { parse } from './css-parser'
45
import { expandDeclaration } from './expand-declaration'
5-
import { SignatureFeatures } from './signatures'
66
import { walk, WalkAction } from './walk'
77

88
const css = String.raw

0 commit comments

Comments
 (0)