tailwindcss-patch 9.0.0 → 9.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/chunk-8l464Juk.js +28 -0
- package/dist/cli.d.mts +1 -2
- package/dist/cli.d.ts +1 -2
- package/dist/cli.js +18 -22
- package/dist/cli.mjs +17 -22
- package/dist/commands/cli-runtime.d.mts +5 -10
- package/dist/commands/cli-runtime.d.ts +5 -10
- package/dist/commands/cli-runtime.js +582 -1217
- package/dist/commands/cli-runtime.mjs +570 -1216
- package/dist/dist-B1VBpHtd.js +21 -0
- package/dist/dist-BjUV1yEM.mjs +19 -0
- package/dist/index.bundle-0Fe7Jx8V.mjs +194 -0
- package/dist/index.bundle-C4Y53Ygf.js +232 -0
- package/dist/index.d.mts +133 -67
- package/dist/index.d.ts +133 -67
- package/dist/index.js +33 -57
- package/dist/index.mjs +3 -57
- package/dist/validate-4FCU-Ql3.mjs +3525 -0
- package/dist/validate-Bu_rkfQF.d.ts +686 -0
- package/dist/validate-BuhhSYBe.js +3700 -0
- package/dist/validate-CIMnzW8O.d.mts +685 -0
- package/package.json +11 -11
- package/src/api/tailwindcss-patcher.ts +33 -6
- package/src/commands/basic-handlers.ts +0 -1
- package/src/config/index.ts +1 -1
- package/src/config/workspace.ts +1 -1
- package/src/extraction/candidate-extractor.ts +14 -69
- package/src/index.bundle.ts +21 -0
- package/src/index.ts +16 -0
- package/src/options/legacy.ts +2 -2
- package/src/options/normalize.ts +10 -5
- package/src/runtime/collector.ts +7 -7
- package/src/runtime/process-tailwindcss.ts +33 -17
- package/src/v4/candidates.ts +224 -0
- package/src/v4/engine.ts +70 -0
- package/src/v4/index.ts +25 -0
- package/src/v4/node-adapter.ts +149 -0
- package/src/v4/source.ts +193 -0
- package/src/v4/types.ts +57 -0
- package/dist/chunk-4RRHMRLJ.js +0 -4378
- package/dist/chunk-AOSPLINO.mjs +0 -4378
- package/dist/chunk-OSH52QWA.mjs +0 -10
- package/dist/chunk-QQXAOMUH.js +0 -25
- package/dist/chunk-YYBY7EM5.mjs +0 -21
- package/dist/chunk-ZPLR2UEW.js +0 -7
- package/dist/dist-22YCNIJW.js +0 -269
- package/dist/dist-7W73GIRD.mjs +0 -269
- package/dist/validate-nbmOI2w8.d.mts +0 -677
- package/dist/validate-nbmOI2w8.d.ts +0 -677
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
+
key = keys[i];
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
+
get: ((k) => from[k]).bind(null, key),
|
|
13
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
+
value: mod,
|
|
20
|
+
enumerable: true
|
|
21
|
+
}) : target, mod));
|
|
22
|
+
//#endregion
|
|
23
|
+
Object.defineProperty(exports, "__toESM", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function() {
|
|
26
|
+
return __toESM;
|
|
27
|
+
}
|
|
28
|
+
});
|
package/dist/cli.d.mts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { }
|
|
1
|
+
export { };
|
package/dist/cli.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { }
|
|
1
|
+
export { };
|
package/dist/cli.js
CHANGED
|
@@ -1,26 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _chunk4RRHMRLJjs = require('./chunk-4RRHMRLJ.js');
|
|
8
|
-
require('./chunk-ZPLR2UEW.js');
|
|
9
|
-
|
|
10
|
-
// src/cli.bundle.ts
|
|
11
|
-
var _process = require('process'); var _process2 = _interopRequireDefault(_process);
|
|
1
|
+
const require_chunk = require("./chunk-8l464Juk.js");
|
|
2
|
+
const require_validate = require("./validate-BuhhSYBe.js");
|
|
3
|
+
const require_index_bundle = require("./index.bundle-C4Y53Ygf.js");
|
|
4
|
+
let node_process = require("node:process");
|
|
5
|
+
node_process = require_chunk.__toESM(node_process);
|
|
6
|
+
//#region src/cli.bundle.ts
|
|
12
7
|
async function main() {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
const cli = require_index_bundle.createTailwindcssPatchCli();
|
|
9
|
+
cli.help();
|
|
10
|
+
cli.parse(node_process.default.argv, { run: false });
|
|
11
|
+
await cli.runMatchedCommand();
|
|
17
12
|
}
|
|
18
13
|
main().catch((error) => {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
14
|
+
if (error instanceof require_validate.ValidateCommandError) {
|
|
15
|
+
node_process.default.exitCode = error.exitCode;
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
19
|
+
require_validate.logger.error(message);
|
|
20
|
+
node_process.default.exitCode = 1;
|
|
26
21
|
});
|
|
22
|
+
//#endregion
|
package/dist/cli.mjs
CHANGED
|
@@ -1,26 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
ValidateCommandError,
|
|
6
|
-
logger_default
|
|
7
|
-
} from "./chunk-AOSPLINO.mjs";
|
|
8
|
-
import "./chunk-OSH52QWA.mjs";
|
|
9
|
-
|
|
10
|
-
// src/cli.bundle.ts
|
|
11
|
-
import process from "process";
|
|
1
|
+
import { k as logger, r as ValidateCommandError } from "./validate-4FCU-Ql3.mjs";
|
|
2
|
+
import { t as createTailwindcssPatchCli } from "./index.bundle-0Fe7Jx8V.mjs";
|
|
3
|
+
import process from "node:process";
|
|
4
|
+
//#region src/cli.bundle.ts
|
|
12
5
|
async function main() {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
6
|
+
const cli = createTailwindcssPatchCli();
|
|
7
|
+
cli.help();
|
|
8
|
+
cli.parse(process.argv, { run: false });
|
|
9
|
+
await cli.runMatchedCommand();
|
|
17
10
|
}
|
|
18
11
|
main().catch((error) => {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
12
|
+
if (error instanceof ValidateCommandError) {
|
|
13
|
+
process.exitCode = error.exitCode;
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
17
|
+
logger.error(message);
|
|
18
|
+
process.exitCode = 1;
|
|
26
19
|
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export {};
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export { b as TailwindcssPatchCommand, c as TailwindcssPatchCommandContext, d as TailwindcssPatchCommandHandler, e as TailwindcssPatchCommandHandlerMap, f as TailwindcssPatchCommandOptionDefinition, g as TailwindcssPatchCommandOptions, V as VALIDATE_EXIT_CODES, h as VALIDATE_FAILURE_REASONS, i as ValidateCommandError, j as ValidateFailureReason, k as ValidateFailureSummary, l as ValidateJsonFailurePayload, m as ValidateJsonSuccessPayload, t as tailwindcssPatchCommands } from '../validate-nbmOI2w8.mjs';
|
|
4
|
-
import '@tailwindcss/oxide';
|
|
5
|
-
import 'postcss';
|
|
6
|
-
import 'tailwindcss';
|
|
7
|
-
import 'local-pkg';
|
|
8
|
-
import 'consola';
|
|
1
|
+
import { a as ValidateFailureSummary, c as TailwindcssPatchCliMountOptions, d as TailwindcssPatchCommandContext, f as TailwindcssPatchCommandHandler, g as tailwindcssPatchCommands, h as TailwindcssPatchCommandOptions, i as ValidateFailureReason, l as TailwindcssPatchCliOptions, m as TailwindcssPatchCommandOptionDefinition, n as VALIDATE_FAILURE_REASONS, o as ValidateJsonFailurePayload, p as TailwindcssPatchCommandHandlerMap, r as ValidateCommandError, s as ValidateJsonSuccessPayload, t as VALIDATE_EXIT_CODES, u as TailwindcssPatchCommand } from "../validate-CIMnzW8O.mjs";
|
|
2
|
+
import { CAC } from "cac";
|
|
9
3
|
|
|
4
|
+
//#region src/commands/cli.d.ts
|
|
10
5
|
declare function mountTailwindcssPatchCommands(cli: CAC, options?: TailwindcssPatchCliMountOptions): CAC;
|
|
11
6
|
declare function createTailwindcssPatchCli(options?: TailwindcssPatchCliOptions): CAC;
|
|
12
|
-
|
|
13
|
-
export { TailwindcssPatchCliMountOptions, TailwindcssPatchCliOptions, createTailwindcssPatchCli, mountTailwindcssPatchCommands };
|
|
7
|
+
//#endregion
|
|
8
|
+
export { type TailwindcssPatchCliMountOptions, type TailwindcssPatchCliOptions, type TailwindcssPatchCommand, type TailwindcssPatchCommandContext, type TailwindcssPatchCommandHandler, type TailwindcssPatchCommandHandlerMap, type TailwindcssPatchCommandOptionDefinition, type TailwindcssPatchCommandOptions, VALIDATE_EXIT_CODES, VALIDATE_FAILURE_REASONS, ValidateCommandError, type ValidateFailureReason, type ValidateFailureSummary, type ValidateJsonFailurePayload, type ValidateJsonSuccessPayload, createTailwindcssPatchCli, mountTailwindcssPatchCommands, tailwindcssPatchCommands };
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export { b as TailwindcssPatchCommand, c as TailwindcssPatchCommandContext, d as TailwindcssPatchCommandHandler, e as TailwindcssPatchCommandHandlerMap, f as TailwindcssPatchCommandOptionDefinition, g as TailwindcssPatchCommandOptions, V as VALIDATE_EXIT_CODES, h as VALIDATE_FAILURE_REASONS, i as ValidateCommandError, j as ValidateFailureReason, k as ValidateFailureSummary, l as ValidateJsonFailurePayload, m as ValidateJsonSuccessPayload, t as tailwindcssPatchCommands } from '../validate-nbmOI2w8.js';
|
|
4
|
-
import '@tailwindcss/oxide';
|
|
5
|
-
import 'postcss';
|
|
6
|
-
import 'tailwindcss';
|
|
7
|
-
import 'local-pkg';
|
|
8
|
-
import 'consola';
|
|
1
|
+
import { a as ValidateFailureSummary, c as TailwindcssPatchCliMountOptions, d as TailwindcssPatchCommandContext, f as TailwindcssPatchCommandHandler, g as tailwindcssPatchCommands, h as TailwindcssPatchCommandOptions, i as ValidateFailureReason, l as TailwindcssPatchCliOptions, m as TailwindcssPatchCommandOptionDefinition, n as VALIDATE_FAILURE_REASONS, o as ValidateJsonFailurePayload, p as TailwindcssPatchCommandHandlerMap, r as ValidateCommandError, s as ValidateJsonSuccessPayload, t as VALIDATE_EXIT_CODES, u as TailwindcssPatchCommand } from "../validate-Bu_rkfQF.js";
|
|
2
|
+
import { CAC } from "cac";
|
|
9
3
|
|
|
4
|
+
//#region src/commands/cli.d.ts
|
|
10
5
|
declare function mountTailwindcssPatchCommands(cli: CAC, options?: TailwindcssPatchCliMountOptions): CAC;
|
|
11
6
|
declare function createTailwindcssPatchCli(options?: TailwindcssPatchCliOptions): CAC;
|
|
12
|
-
|
|
13
|
-
export { TailwindcssPatchCliMountOptions, TailwindcssPatchCliOptions, createTailwindcssPatchCli, mountTailwindcssPatchCommands };
|
|
7
|
+
//#endregion
|
|
8
|
+
export { type TailwindcssPatchCliMountOptions, type TailwindcssPatchCliOptions, type TailwindcssPatchCommand, type TailwindcssPatchCommandContext, type TailwindcssPatchCommandHandler, type TailwindcssPatchCommandHandlerMap, type TailwindcssPatchCommandOptionDefinition, type TailwindcssPatchCommandOptions, VALIDATE_EXIT_CODES, VALIDATE_FAILURE_REASONS, ValidateCommandError, type ValidateFailureReason, type ValidateFailureSummary, type ValidateJsonFailurePayload, type ValidateJsonSuccessPayload, createTailwindcssPatchCli, mountTailwindcssPatchCommands, tailwindcssPatchCommands };
|