postcss-tailwindcss 3.0.8 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +10 -10
- package/dist/index.js +2 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -51,18 +51,18 @@ interface TailwindAnalysis {
|
|
|
51
51
|
type TailwindInput = Root | string;
|
|
52
52
|
//#endregion
|
|
53
53
|
//#region src/analysis.d.ts
|
|
54
|
-
declare function detectTailwindVersion(input: TailwindInput): TailwindVersion;
|
|
55
|
-
declare function collectApplyCandidates(input: TailwindInput): UtilityCandidate[];
|
|
56
|
-
declare function collectThemeCalls(input: TailwindInput): ThemeCall[];
|
|
57
|
-
declare function collectImportDirectives(input: TailwindInput): TailwindImportDirective[];
|
|
58
|
-
declare function collectUtilitySelectors(input: TailwindInput): UtilitySelector[];
|
|
59
|
-
declare function analyzeTailwindCss(input: TailwindInput): TailwindAnalysis;
|
|
54
|
+
export declare function detectTailwindVersion(input: TailwindInput): TailwindVersion;
|
|
55
|
+
export declare function collectApplyCandidates(input: TailwindInput): UtilityCandidate[];
|
|
56
|
+
export declare function collectThemeCalls(input: TailwindInput): ThemeCall[];
|
|
57
|
+
export declare function collectImportDirectives(input: TailwindInput): TailwindImportDirective[];
|
|
58
|
+
export declare function collectUtilitySelectors(input: TailwindInput): UtilitySelector[];
|
|
59
|
+
export declare function analyzeTailwindCss(input: TailwindInput): TailwindAnalysis;
|
|
60
60
|
//#endregion
|
|
61
61
|
//#region src/postcss.d.ts
|
|
62
|
-
declare function parseTailwindCss(input: TailwindInput): Root;
|
|
62
|
+
export declare function parseTailwindCss(input: TailwindInput): Root;
|
|
63
63
|
//#endregion
|
|
64
64
|
//#region src/runtime-resolution.d.ts
|
|
65
|
-
declare function resolveTailwindRuntime(context: TailwindResolutionContext): ResolvedTailwindRuntime;
|
|
66
|
-
declare function detectInstalledTailwindVersion(context: TailwindResolutionContext): TailwindVersion;
|
|
65
|
+
export declare function resolveTailwindRuntime(context: TailwindResolutionContext): ResolvedTailwindRuntime;
|
|
66
|
+
export declare function detectInstalledTailwindVersion(context: TailwindResolutionContext): TailwindVersion;
|
|
67
67
|
//#endregion
|
|
68
|
-
export {
|
|
68
|
+
export type { ResolvedTailwindRuntime, TailwindAnalysis, TailwindImportDirective, TailwindInput, TailwindResolutionContext, TailwindVersion, ThemeCall, UtilityCandidate, UtilitySelector };
|
package/dist/index.js
CHANGED
|
@@ -316,9 +316,10 @@ function getPathsMatcher(tsconfigPath) {
|
|
|
316
316
|
if (cached !== void 0) return cached;
|
|
317
317
|
let matcher = null;
|
|
318
318
|
try {
|
|
319
|
+
const parsed = parseTsconfig(tsconfigPath);
|
|
319
320
|
matcher = createPathsMatcher({
|
|
320
321
|
path: tsconfigPath,
|
|
321
|
-
config:
|
|
322
|
+
config: parsed
|
|
322
323
|
});
|
|
323
324
|
} catch {
|
|
324
325
|
const resolved = getTsconfig(path.dirname(tsconfigPath));
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postcss-tailwindcss",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0
|
|
4
|
+
"version": "3.1.0",
|
|
5
5
|
"description": "PostCSS AST utilities for analyzing Tailwind CSS syntax",
|
|
6
|
-
"author": "ice breaker <
|
|
6
|
+
"author": "ice breaker <hi@sonofmagic.top>",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"homepage": "https://repoctl.icebreaker.top",
|
|
9
9
|
"repository": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"dist"
|
|
38
38
|
],
|
|
39
39
|
"engines": {
|
|
40
|
-
"node": ">=22.
|
|
40
|
+
"node": ">=22.13.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"enhanced-resolve": "^5.24.5",
|