@unocss/cli 0.55.1 → 0.55.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/dist/cli.d.mts +2 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +19 -0
- package/dist/index.mjs +1 -1
- package/dist/shared/{cli.d75110b2.mjs → cli.a403f9f8.mjs} +1 -1
- package/package.json +5 -5
package/dist/cli.d.mts
ADDED
package/dist/cli.d.ts
CHANGED
package/dist/cli.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import process from 'node:process';
|
|
|
2
2
|
import { cac } from 'cac';
|
|
3
3
|
import { loadConfig } from '@unocss/config';
|
|
4
4
|
import { toArray } from '@unocss/core';
|
|
5
|
-
import { b as build, v as version, h as handleError } from './shared/cli.
|
|
5
|
+
import { b as build, v as version, h as handleError } from './shared/cli.a403f9f8.mjs';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'pathe';
|
|
8
8
|
import 'fast-glob';
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** Mark some properties as required, leaving others unchanged */
|
|
2
|
+
declare type MarkRequired<T, RK extends keyof T> = Exclude<T, RK> & Required<Pick<T, RK>>;
|
|
3
|
+
interface CliOptions {
|
|
4
|
+
cwd?: string;
|
|
5
|
+
patterns?: Array<string>;
|
|
6
|
+
outFile?: string;
|
|
7
|
+
watch?: boolean;
|
|
8
|
+
config?: string;
|
|
9
|
+
stdout?: boolean;
|
|
10
|
+
writeTransformed?: boolean;
|
|
11
|
+
preflights?: boolean;
|
|
12
|
+
minify?: boolean;
|
|
13
|
+
}
|
|
14
|
+
type ResolvedCliOptions = MarkRequired<CliOptions, 'patterns'>;
|
|
15
|
+
|
|
16
|
+
declare function resolveOptions(options: CliOptions): Promise<ResolvedCliOptions>;
|
|
17
|
+
declare function build(_options: CliOptions): Promise<void>;
|
|
18
|
+
|
|
19
|
+
export { build, resolveOptions };
|
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import 'consola';
|
|
|
6
6
|
import 'colorette';
|
|
7
7
|
import 'perfect-debounce';
|
|
8
8
|
import '@unocss/core';
|
|
9
|
-
export { b as build, r as resolveOptions } from './shared/cli.
|
|
9
|
+
export { b as build, r as resolveOptions } from './shared/cli.a403f9f8.mjs';
|
|
10
10
|
import '@rollup/pluginutils';
|
|
11
11
|
import '@unocss/config';
|
|
12
12
|
import 'magic-string';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/cli",
|
|
3
|
-
"version": "0.55.
|
|
3
|
+
"version": "0.55.3",
|
|
4
4
|
"description": "CLI for UnoCSS",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Johann Schopplich",
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
"colorette": "^2.0.20",
|
|
47
47
|
"consola": "^3.2.3",
|
|
48
48
|
"fast-glob": "^3.3.1",
|
|
49
|
-
"magic-string": "^0.30.
|
|
49
|
+
"magic-string": "^0.30.3",
|
|
50
50
|
"pathe": "^1.1.1",
|
|
51
51
|
"perfect-debounce": "^1.0.0",
|
|
52
|
-
"@unocss/config": "0.55.
|
|
53
|
-
"@unocss/core": "0.55.
|
|
54
|
-
"@unocss/preset-uno": "0.55.
|
|
52
|
+
"@unocss/config": "0.55.3",
|
|
53
|
+
"@unocss/core": "0.55.3",
|
|
54
|
+
"@unocss/preset-uno": "0.55.3"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"build": "unbuild",
|