@unocss/cli 0.56.1 → 0.56.2
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.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.9f93e124.mjs';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'pathe';
|
|
8
8
|
import 'fast-glob';
|
|
@@ -32,12 +32,10 @@ async function startCli(cwd = process.cwd(), argv = process.argv, options = {})
|
|
|
32
32
|
options.patterns = patterns;
|
|
33
33
|
const { config } = await loadConfig(cwd, options.config);
|
|
34
34
|
const entries = toArray(config.cli?.entry || options);
|
|
35
|
-
await Promise.all(entries.map(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
})
|
|
40
|
-
));
|
|
35
|
+
await Promise.all(entries.map((entry) => build({
|
|
36
|
+
...options,
|
|
37
|
+
...entry
|
|
38
|
+
})));
|
|
41
39
|
});
|
|
42
40
|
cli.help();
|
|
43
41
|
cli.version(version);
|
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.9f93e124.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.56.
|
|
3
|
+
"version": "0.56.2",
|
|
4
4
|
"description": "CLI for UnoCSS",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Johann Schopplich",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"magic-string": "^0.30.3",
|
|
50
50
|
"pathe": "^1.1.1",
|
|
51
51
|
"perfect-debounce": "^1.0.0",
|
|
52
|
-
"@unocss/config": "0.56.
|
|
53
|
-
"@unocss/
|
|
54
|
-
"@unocss/
|
|
52
|
+
"@unocss/config": "0.56.2",
|
|
53
|
+
"@unocss/core": "0.56.2",
|
|
54
|
+
"@unocss/preset-uno": "0.56.2"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"build": "unbuild",
|