tailwindcss-patch
Advanced tools
Comparing version 6.0.0 to 6.0.1
@@ -5,3 +5,3 @@ "use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _chunkP7C42UCOjs = require('./chunk-P7C42UCO.js'); | ||
var _chunkU3S6WRCPjs = require('./chunk-U3S6WRCP.js'); | ||
@@ -18,4 +18,4 @@ // src/cli.ts | ||
cli.command("install", "patch install").action(() => { | ||
const twPatcher = new (0, _chunkP7C42UCOjs.TailwindcssPatcher)({ | ||
patch: _chunkP7C42UCOjs.getPatchOptions.call(void 0, ) | ||
const twPatcher = new (0, _chunkU3S6WRCPjs.TailwindcssPatcher)({ | ||
patch: _chunkU3S6WRCPjs.getPatchOptions.call(void 0, ) | ||
}); | ||
@@ -26,3 +26,3 @@ twPatcher.patch(); | ||
await init(); | ||
_chunkP7C42UCOjs.logger_default.success(`\u2728 ${_config.CONFIG_NAME}.config.ts initialized!`); | ||
_chunkU3S6WRCPjs.logger_default.success(`\u2728 ${_config.CONFIG_NAME}.config.ts initialized!`); | ||
}); | ||
@@ -32,5 +32,5 @@ cli.command("extract").action(async () => { | ||
if (config) { | ||
const twPatcher = new (0, _chunkP7C42UCOjs.TailwindcssPatcher)(); | ||
const twPatcher = new (0, _chunkU3S6WRCPjs.TailwindcssPatcher)(); | ||
const p = await twPatcher.extract(config.patch); | ||
_chunkP7C42UCOjs.logger_default.success(`\u2728 tailwindcss-patch extract success! file path: ${p}`); | ||
_chunkU3S6WRCPjs.logger_default.success(`\u2728 tailwindcss-patch extract success! file path: ${p}`); | ||
} | ||
@@ -37,0 +37,0 @@ }); |
@@ -0,5 +1,6 @@ | ||
import { PatchUserConfig } from '@tailwindcss-mangle/config'; | ||
export { defineConfig } from '@tailwindcss-mangle/config'; | ||
import { PackageJson } from 'pkg-types'; | ||
import { Node, Rule } from 'postcss'; | ||
import { Config } from 'tailwindcss'; | ||
import { PatchUserConfig } from '@tailwindcss-mangle/config'; | ||
export { defineConfig } from '@tailwindcss-mangle/config'; | ||
import { GlobEntry } from '@tailwindcss/oxide'; | ||
@@ -14,2 +15,3 @@ import * as consola from 'consola'; | ||
packageJsonPath: string; | ||
packageJson: PackageJson; | ||
} | ||
@@ -25,3 +27,3 @@ interface CacheOptions { | ||
} | ||
interface PatchOptions { | ||
interface PatchOptions extends PatchUserConfig { | ||
overwrite?: boolean; | ||
@@ -105,4 +107,4 @@ paths?: string[]; | ||
}; | ||
write(data: Set<string>): string | undefined; | ||
read(): Set<string> | undefined; | ||
write(data: Set<string>): Promise<string | undefined>; | ||
read(): Promise<Set<string> | undefined>; | ||
} | ||
@@ -126,11 +128,11 @@ | ||
constructor(options?: TailwindcssPatcherOptions); | ||
setCache(set: Set<string>): string | undefined; | ||
getCache(): Set<string> | undefined; | ||
setCache(set: Set<string>): Promise<string | undefined> | undefined; | ||
getCache(): Promise<Set<string> | undefined>; | ||
getContexts(): TailwindcssRuntimeContext[]; | ||
getClassCaches(): TailwindcssClassCache[]; | ||
getClassCacheSet(options?: PatchUserConfig): Promise<Set<string>>; | ||
getClassCacheSet(): Promise<Set<string>>; | ||
/** | ||
* @description 在多个 tailwindcss 上下文时,这个方法将被执行多次,所以策略上应该使用 append | ||
*/ | ||
getClassSet(options?: PatchUserConfig): Promise<Set<string>>; | ||
getClassSet(): Promise<Set<string>>; | ||
extract(options?: PatchUserConfig): Promise<string | undefined>; | ||
@@ -137,0 +139,0 @@ extractValidCandidates: typeof extractValidCandidates; |
@@ -10,3 +10,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkP7C42UCOjs = require('./chunk-P7C42UCO.js'); | ||
var _chunkU3S6WRCPjs = require('./chunk-U3S6WRCP.js'); | ||
@@ -25,2 +25,2 @@ // src/index.ts | ||
exports.CacheManager = _chunkP7C42UCOjs.CacheManager; exports.TailwindcssPatcher = _chunkP7C42UCOjs.TailwindcssPatcher; exports.defineConfig = _config.defineConfig; exports.getCacheOptions = _chunkP7C42UCOjs.getCacheOptions; exports.internalPatch = _chunkP7C42UCOjs.internalPatch; exports.logger = _chunkP7C42UCOjs.logger_default; exports.monkeyPatchForExposingContextV2 = _chunkP7C42UCOjs.monkeyPatchForExposingContextV2; exports.monkeyPatchForExposingContextV3 = _chunkP7C42UCOjs.monkeyPatchForExposingContextV3; exports.monkeyPatchForSupportingCustomUnit = _chunkP7C42UCOjs.monkeyPatchForSupportingCustomUnit; | ||
exports.CacheManager = _chunkU3S6WRCPjs.CacheManager; exports.TailwindcssPatcher = _chunkU3S6WRCPjs.TailwindcssPatcher; exports.defineConfig = _config.defineConfig; exports.getCacheOptions = _chunkU3S6WRCPjs.getCacheOptions; exports.internalPatch = _chunkU3S6WRCPjs.internalPatch; exports.logger = _chunkU3S6WRCPjs.logger_default; exports.monkeyPatchForExposingContextV2 = _chunkU3S6WRCPjs.monkeyPatchForExposingContextV2; exports.monkeyPatchForExposingContextV3 = _chunkU3S6WRCPjs.monkeyPatchForExposingContextV3; exports.monkeyPatchForSupportingCustomUnit = _chunkU3S6WRCPjs.monkeyPatchForSupportingCustomUnit; |
{ | ||
"name": "tailwindcss-patch", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "patch tailwindcss for exposing context and extract classes", | ||
@@ -5,0 +5,0 @@ "author": "ice breaker <1324318532@qq.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
89944
2050