@unocss/cli 0.58.5 → 0.58.7
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.Dcf9NCal.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.Dcf9NCal.mjs';
|
|
10
10
|
import '@rollup/pluginutils';
|
|
11
11
|
import '@unocss/config';
|
|
12
12
|
import 'magic-string';
|
|
@@ -211,7 +211,7 @@ function restoreSkipCode(code, map) {
|
|
|
211
211
|
return code;
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
-
const version = "0.58.
|
|
214
|
+
const version = "0.58.7";
|
|
215
215
|
|
|
216
216
|
const defaultConfig = {
|
|
217
217
|
envMode: "build",
|
|
@@ -303,6 +303,8 @@ async function build(_options) {
|
|
|
303
303
|
const absolutePath = resolve(cwd, file);
|
|
304
304
|
if (configSources.includes(absolutePath)) {
|
|
305
305
|
await ctx.reloadConfig();
|
|
306
|
+
if (configSources.length)
|
|
307
|
+
watcher.add(configSources);
|
|
306
308
|
consola.info(`${cyan(basename(file))} changed, setting new config`);
|
|
307
309
|
} else {
|
|
308
310
|
consola.log(`${green(type)} ${dim(file)}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/cli",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.7",
|
|
4
4
|
"description": "CLI for UnoCSS",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Johann Schopplich",
|
|
@@ -39,19 +39,19 @@
|
|
|
39
39
|
"node": ">=14"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@ampproject/remapping": "^2.
|
|
42
|
+
"@ampproject/remapping": "^2.3.0",
|
|
43
43
|
"@rollup/pluginutils": "^5.1.0",
|
|
44
44
|
"cac": "^6.7.14",
|
|
45
|
-
"chokidar": "^3.
|
|
45
|
+
"chokidar": "^3.6.0",
|
|
46
46
|
"colorette": "^2.0.20",
|
|
47
47
|
"consola": "^3.2.3",
|
|
48
48
|
"fast-glob": "^3.3.2",
|
|
49
|
-
"magic-string": "^0.30.
|
|
49
|
+
"magic-string": "^0.30.8",
|
|
50
50
|
"pathe": "^1.1.2",
|
|
51
51
|
"perfect-debounce": "^1.0.0",
|
|
52
|
-
"@unocss/config": "0.58.
|
|
53
|
-
"@unocss/core": "0.58.
|
|
54
|
-
"@unocss/preset-uno": "0.58.
|
|
52
|
+
"@unocss/config": "0.58.7",
|
|
53
|
+
"@unocss/core": "0.58.7",
|
|
54
|
+
"@unocss/preset-uno": "0.58.7"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"build": "unbuild",
|