tailwindcss-patch 9.0.0-alpha.1 → 9.0.0-alpha.3
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/README.md +20 -0
- package/dist/{chunk-Z6OMJZTU.js → chunk-77GHKSKG.js} +59 -732
- package/dist/{chunk-SWLOK2S6.mjs → chunk-D6ICWMM4.mjs} +63 -736
- package/dist/chunk-PMN7HS4Y.js +25 -0
- package/dist/chunk-YYBY7EM5.mjs +21 -0
- package/dist/cli.js +7 -5
- package/dist/cli.mjs +5 -3
- package/dist/commands/cli-runtime.d.mts +13 -0
- package/dist/commands/cli-runtime.d.ts +13 -0
- package/dist/commands/cli-runtime.js +1331 -0
- package/dist/commands/cli-runtime.mjs +1331 -0
- package/dist/index.d.mts +17 -677
- package/dist/index.d.ts +17 -677
- package/dist/index.js +5 -7
- package/dist/index.mjs +6 -8
- package/dist/validate-nbmOI2w8.d.mts +677 -0
- package/dist/validate-nbmOI2w8.d.ts +677 -0
- package/package.json +11 -3
- package/src/api/tailwindcss-patcher.ts +424 -0
- package/src/babel/index.ts +12 -0
- package/src/cache/context.ts +212 -0
- package/src/cache/store.ts +1440 -0
- package/src/cache/types.ts +71 -0
- package/src/cli.bundle.ts +20 -0
- package/src/cli.ts +20 -0
- package/src/commands/basic-handlers.ts +145 -0
- package/src/commands/cli.ts +56 -0
- package/src/commands/command-context.ts +77 -0
- package/src/commands/command-definitions.ts +102 -0
- package/src/commands/command-metadata.ts +68 -0
- package/src/commands/command-registrar.ts +39 -0
- package/src/commands/command-runtime.ts +33 -0
- package/src/commands/default-handler-map.ts +25 -0
- package/src/commands/migrate-config.ts +104 -0
- package/src/commands/migrate-handler.ts +67 -0
- package/src/commands/migration-aggregation.ts +100 -0
- package/src/commands/migration-args.ts +85 -0
- package/src/commands/migration-file-executor.ts +189 -0
- package/src/commands/migration-output.ts +115 -0
- package/src/commands/migration-report-loader.ts +26 -0
- package/src/commands/migration-report.ts +21 -0
- package/src/commands/migration-source.ts +318 -0
- package/src/commands/migration-target-files.ts +161 -0
- package/src/commands/migration-target-resolver.ts +34 -0
- package/src/commands/migration-types.ts +65 -0
- package/src/commands/restore-handler.ts +24 -0
- package/src/commands/status-handler.ts +17 -0
- package/src/commands/status-output.ts +60 -0
- package/src/commands/token-output.ts +30 -0
- package/src/commands/types.ts +137 -0
- package/src/commands/validate-handler.ts +42 -0
- package/src/commands/validate.ts +83 -0
- package/src/config/index.ts +25 -0
- package/src/config/workspace.ts +87 -0
- package/src/constants.ts +4 -0
- package/src/extraction/candidate-extractor.ts +354 -0
- package/src/index.bundle.ts +105 -0
- package/src/index.ts +57 -0
- package/src/install/class-collector.ts +1 -0
- package/src/install/context-registry.ts +1 -0
- package/src/install/index.ts +5 -0
- package/src/install/patch-runner.ts +1 -0
- package/src/install/process-tailwindcss.ts +1 -0
- package/src/install/status.ts +1 -0
- package/src/logger.ts +5 -0
- package/src/options/legacy.ts +93 -0
- package/src/options/normalize.ts +262 -0
- package/src/options/types.ts +217 -0
- package/src/patching/operations/export-context/index.ts +110 -0
- package/src/patching/operations/export-context/postcss-v2.ts +235 -0
- package/src/patching/operations/export-context/postcss-v3.ts +249 -0
- package/src/patching/operations/extend-length-units.ts +197 -0
- package/src/patching/patch-runner.ts +46 -0
- package/src/patching/status.ts +262 -0
- package/src/runtime/class-collector.ts +105 -0
- package/src/runtime/collector.ts +148 -0
- package/src/runtime/context-registry.ts +65 -0
- package/src/runtime/process-tailwindcss.ts +115 -0
- package/src/types.ts +159 -0
- package/src/utils.ts +52 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunk5CWNAWKPjs = require('./chunk-5CWNAWKP.js');
|
|
4
|
+
|
|
5
|
+
// src/index.bundle.ts
|
|
6
|
+
var _module = require('module');
|
|
7
|
+
var require2 = _module.createRequire.call(void 0, _chunk5CWNAWKPjs.importMetaUrl);
|
|
8
|
+
function loadCliModule() {
|
|
9
|
+
return require2("./commands/cli-runtime.js");
|
|
10
|
+
}
|
|
11
|
+
function mountTailwindcssPatchCommands(cli, options = {}) {
|
|
12
|
+
return loadCliModule().mountTailwindcssPatchCommands(cli, options);
|
|
13
|
+
}
|
|
14
|
+
function createTailwindcssPatchCli(options = {}) {
|
|
15
|
+
return loadCliModule().createTailwindcssPatchCli(options);
|
|
16
|
+
}
|
|
17
|
+
function defineConfig(config) {
|
|
18
|
+
return config;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
exports.mountTailwindcssPatchCommands = mountTailwindcssPatchCommands; exports.createTailwindcssPatchCli = createTailwindcssPatchCli; exports.defineConfig = defineConfig;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// src/index.bundle.ts
|
|
2
|
+
import { createRequire } from "module";
|
|
3
|
+
var require2 = createRequire(import.meta.url);
|
|
4
|
+
function loadCliModule() {
|
|
5
|
+
return require2("./commands/cli-runtime.js");
|
|
6
|
+
}
|
|
7
|
+
function mountTailwindcssPatchCommands(cli, options = {}) {
|
|
8
|
+
return loadCliModule().mountTailwindcssPatchCommands(cli, options);
|
|
9
|
+
}
|
|
10
|
+
function createTailwindcssPatchCli(options = {}) {
|
|
11
|
+
return loadCliModule().createTailwindcssPatchCli(options);
|
|
12
|
+
}
|
|
13
|
+
function defineConfig(config) {
|
|
14
|
+
return config;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
mountTailwindcssPatchCommands,
|
|
19
|
+
createTailwindcssPatchCli,
|
|
20
|
+
defineConfig
|
|
21
|
+
};
|
package/dist/cli.js
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
"use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
|
+
var _chunkPMN7HS4Yjs = require('./chunk-PMN7HS4Y.js');
|
|
3
4
|
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
|
|
7
|
+
var _chunk77GHKSKGjs = require('./chunk-77GHKSKG.js');
|
|
6
8
|
require('./chunk-5CWNAWKP.js');
|
|
7
9
|
|
|
8
|
-
// src/cli.ts
|
|
10
|
+
// src/cli.bundle.ts
|
|
9
11
|
var _process = require('process'); var _process2 = _interopRequireDefault(_process);
|
|
10
12
|
async function main() {
|
|
11
|
-
const cli =
|
|
13
|
+
const cli = _chunkPMN7HS4Yjs.createTailwindcssPatchCli.call(void 0, );
|
|
12
14
|
cli.help();
|
|
13
15
|
cli.parse(_process2.default.argv, { run: false });
|
|
14
16
|
await cli.runMatchedCommand();
|
|
15
17
|
}
|
|
16
18
|
main().catch((error) => {
|
|
17
|
-
if (error instanceof
|
|
19
|
+
if (error instanceof _chunk77GHKSKGjs.ValidateCommandError) {
|
|
18
20
|
_process2.default.exitCode = error.exitCode;
|
|
19
21
|
return;
|
|
20
22
|
}
|
|
21
23
|
const message = error instanceof Error ? error.message : String(error);
|
|
22
|
-
|
|
24
|
+
_chunk77GHKSKGjs.logger_default.error(message);
|
|
23
25
|
_process2.default.exitCode = 1;
|
|
24
26
|
});
|
package/dist/cli.mjs
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createTailwindcssPatchCli
|
|
3
|
+
} from "./chunk-YYBY7EM5.mjs";
|
|
1
4
|
import {
|
|
2
5
|
ValidateCommandError,
|
|
3
|
-
createTailwindcssPatchCli,
|
|
4
6
|
logger_default
|
|
5
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-D6ICWMM4.mjs";
|
|
6
8
|
import "./chunk-A67ABH3M.mjs";
|
|
7
9
|
|
|
8
|
-
// src/cli.ts
|
|
10
|
+
// src/cli.bundle.ts
|
|
9
11
|
import process from "process";
|
|
10
12
|
async function main() {
|
|
11
13
|
const cli = createTailwindcssPatchCli();
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CAC } from 'cac';
|
|
2
|
+
import { T as TailwindcssPatchCliOptions, a as TailwindcssPatchCliMountOptions } from '../validate-nbmOI2w8.mjs';
|
|
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';
|
|
9
|
+
|
|
10
|
+
declare function mountTailwindcssPatchCommands(cli: CAC, options?: TailwindcssPatchCliMountOptions): CAC;
|
|
11
|
+
declare function createTailwindcssPatchCli(options?: TailwindcssPatchCliOptions): CAC;
|
|
12
|
+
|
|
13
|
+
export { TailwindcssPatchCliMountOptions, TailwindcssPatchCliOptions, createTailwindcssPatchCli, mountTailwindcssPatchCommands };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CAC } from 'cac';
|
|
2
|
+
import { T as TailwindcssPatchCliOptions, a as TailwindcssPatchCliMountOptions } from '../validate-nbmOI2w8.js';
|
|
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';
|
|
9
|
+
|
|
10
|
+
declare function mountTailwindcssPatchCommands(cli: CAC, options?: TailwindcssPatchCliMountOptions): CAC;
|
|
11
|
+
declare function createTailwindcssPatchCli(options?: TailwindcssPatchCliOptions): CAC;
|
|
12
|
+
|
|
13
|
+
export { TailwindcssPatchCliMountOptions, TailwindcssPatchCliOptions, createTailwindcssPatchCli, mountTailwindcssPatchCommands };
|