Skip to content

Commit c942466

Browse files
committed
chore: move types to one file
1 parent 896a5db commit c942466

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

packages/tailwindcss-patch/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tailwindcss-patch",
3-
"version": "3.1.0-alpha.0",
3+
"version": "3.1.0-alpha.1",
44
"description": "patch tailwindcss for exposing context and extract classes",
55
"author": "SonOfMagic <qq1324318532@gmail.com>",
66
"license": "MIT",

packages/tailwindcss-patch/src/core/patches/supportCustomUnits/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import fs from 'fs-extra'
33
import * as t from '@babel/types'
44
import type { ArrayExpression, StringLiteral } from '@babel/types'
55
import { defu } from 'defu'
6-
import type { ILengthUnitsPatchOptions } from './types'
6+
import type { ILengthUnitsPatchOptions } from '@/types'
77
import { generate, parse, traverse } from '@/babel'
88
import logger from '@/logger'
99

packages/tailwindcss-patch/src/core/patches/supportCustomUnits/types.ts

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

packages/tailwindcss-patch/src/types.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,11 @@ export interface TailwindcssRuntimeContext {
100100
export type DeepRequired<T> = {
101101
[K in keyof T]: Required<DeepRequired<T[K]>>
102102
}
103+
104+
export interface ILengthUnitsPatchOptions {
105+
units: string[]
106+
lengthUnitsFilePath?: string
107+
variableName?: string
108+
overwrite?: boolean
109+
destPath?: string
110+
}

0 commit comments

Comments
 (0)