@unocss/cli 0.57.0 → 0.57.1
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.e3149002.mjs';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'pathe';
|
|
8
8
|
import 'fast-glob';
|
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.e3149002.mjs';
|
|
10
10
|
import '@rollup/pluginutils';
|
|
11
11
|
import '@unocss/config';
|
|
12
12
|
import 'magic-string';
|
|
@@ -204,7 +204,7 @@ function restoreSkipCode(code, map) {
|
|
|
204
204
|
return code;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
const version = "0.57.
|
|
207
|
+
const version = "0.57.1";
|
|
208
208
|
|
|
209
209
|
const defaultConfig = {
|
|
210
210
|
envMode: "build",
|
|
@@ -270,10 +270,15 @@ async function build(_options) {
|
|
|
270
270
|
fileCache.set(file, await promises.readFile(file, "utf8"));
|
|
271
271
|
})
|
|
272
272
|
);
|
|
273
|
-
if (
|
|
274
|
-
consola.
|
|
275
|
-
|
|
273
|
+
if (options.stdout && options.outFile) {
|
|
274
|
+
consola.fatal(`Cannot use --stdout and --out-file at the same time`);
|
|
275
|
+
return;
|
|
276
276
|
}
|
|
277
|
+
consola.log(green(`${name} v${version}`));
|
|
278
|
+
if (options.watch)
|
|
279
|
+
consola.start("UnoCSS in watch mode...");
|
|
280
|
+
else
|
|
281
|
+
consola.start("UnoCSS for production...");
|
|
277
282
|
const debouncedBuild = debounce(
|
|
278
283
|
async () => {
|
|
279
284
|
generate(options).catch(handleError);
|
|
@@ -281,7 +286,7 @@ async function build(_options) {
|
|
|
281
286
|
100
|
|
282
287
|
);
|
|
283
288
|
const startWatcher = async () => {
|
|
284
|
-
if (
|
|
289
|
+
if (!options.watch)
|
|
285
290
|
return;
|
|
286
291
|
const { patterns } = options;
|
|
287
292
|
const watcher = await getWatcher(options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/cli",
|
|
3
|
-
"version": "0.57.
|
|
3
|
+
"version": "0.57.1",
|
|
4
4
|
"description": "CLI for UnoCSS",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Johann Schopplich",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"magic-string": "^0.30.5",
|
|
50
50
|
"pathe": "^1.1.1",
|
|
51
51
|
"perfect-debounce": "^1.0.0",
|
|
52
|
-
"@unocss/config": "0.57.
|
|
53
|
-
"@unocss/core": "0.57.
|
|
54
|
-
"@unocss/preset-uno": "0.57.
|
|
52
|
+
"@unocss/config": "0.57.1",
|
|
53
|
+
"@unocss/core": "0.57.1",
|
|
54
|
+
"@unocss/preset-uno": "0.57.1"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"build": "unbuild",
|