@unocss/cli 0.45.9 → 0.45.14
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
package/dist/index.mjs
CHANGED
|
@@ -6,5 +6,5 @@ import 'colorette';
|
|
|
6
6
|
import 'perfect-debounce';
|
|
7
7
|
import '@unocss/core';
|
|
8
8
|
import '@unocss/config';
|
|
9
|
-
export { b as build, r as resolveOptions } from './shared/cli.
|
|
9
|
+
export { b as build, r as resolveOptions } from './shared/cli.52d5bdfa.mjs';
|
|
10
10
|
import '@unocss/preset-uno';
|
|
@@ -8,7 +8,7 @@ import { createGenerator, toArray } from '@unocss/core';
|
|
|
8
8
|
import { loadConfig } from '@unocss/config';
|
|
9
9
|
import presetUno from '@unocss/preset-uno';
|
|
10
10
|
|
|
11
|
-
const version = "0.45.
|
|
11
|
+
const version = "0.45.14";
|
|
12
12
|
|
|
13
13
|
class PrettyError extends Error {
|
|
14
14
|
constructor(message) {
|
|
@@ -80,12 +80,12 @@ async function build(_options) {
|
|
|
80
80
|
if (configSources.length)
|
|
81
81
|
watcher.add(configSources);
|
|
82
82
|
watcher.on("all", async (type, file) => {
|
|
83
|
-
|
|
83
|
+
const absolutePath = resolve(cwd, file);
|
|
84
|
+
if (configSources.includes(absolutePath)) {
|
|
84
85
|
uno.setConfig((await loadConfig()).config);
|
|
85
86
|
consola.info(`${cyan(basename(file))} changed, setting new config`);
|
|
86
87
|
} else {
|
|
87
88
|
consola.log(`${green(type)} ${dim(file)}`);
|
|
88
|
-
const absolutePath = resolve(cwd, file);
|
|
89
89
|
if (type.startsWith("unlink"))
|
|
90
90
|
fileCache.delete(absolutePath);
|
|
91
91
|
else
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/cli",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.14",
|
|
4
4
|
"description": "CLI for UnoCSS",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Johann Schopplich",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"node": ">=14"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@unocss/config": "0.45.
|
|
43
|
-
"@unocss/core": "0.45.
|
|
44
|
-
"@unocss/preset-uno": "0.45.
|
|
42
|
+
"@unocss/config": "0.45.14",
|
|
43
|
+
"@unocss/core": "0.45.14",
|
|
44
|
+
"@unocss/preset-uno": "0.45.14",
|
|
45
45
|
"cac": "^6.7.12",
|
|
46
46
|
"chokidar": "^3.5.3",
|
|
47
47
|
"colorette": "^2.0.19",
|