@unocss/cli 0.16.3 → 0.18.0
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/chunks/index.cjs +3 -3
- package/dist/chunks/index.mjs +5 -5
- package/package.json +4 -4
package/dist/chunks/index.cjs
CHANGED
|
@@ -15,7 +15,7 @@ const fg__default = /*#__PURE__*/_interopDefaultLegacy(fg);
|
|
|
15
15
|
const consola__default = /*#__PURE__*/_interopDefaultLegacy(consola);
|
|
16
16
|
const presetUno__default = /*#__PURE__*/_interopDefaultLegacy(presetUno);
|
|
17
17
|
|
|
18
|
-
const version = "0.
|
|
18
|
+
const version = "0.18.0";
|
|
19
19
|
|
|
20
20
|
class PrettyError extends Error {
|
|
21
21
|
constructor(message) {
|
|
@@ -103,7 +103,7 @@ async function build(_options) {
|
|
|
103
103
|
const { watch } = await import('chokidar');
|
|
104
104
|
const { patterns } = options;
|
|
105
105
|
const ignored = ["**/{.git,node_modules}/**"];
|
|
106
|
-
consola__default.info(`Watching for changes in ${
|
|
106
|
+
consola__default.info(`Watching for changes in ${core.toArray(patterns).map((i) => colorette.cyan(i)).join(", ")}`);
|
|
107
107
|
const watcher = watch(patterns, {
|
|
108
108
|
ignoreInitial: true,
|
|
109
109
|
ignorePermissionErrors: true,
|
|
@@ -116,7 +116,7 @@ async function build(_options) {
|
|
|
116
116
|
uno.setConfig((await loadConfig()).config);
|
|
117
117
|
consola__default.info(`${colorette.cyan(pathe.basename(file))} changed, setting new config`);
|
|
118
118
|
} else {
|
|
119
|
-
consola__default.log(`${colorette.green(
|
|
119
|
+
consola__default.log(`${colorette.green(type)} ${colorette.dim(file)}`);
|
|
120
120
|
if (type.startsWith("unlink"))
|
|
121
121
|
fileCache.delete(file);
|
|
122
122
|
else
|
package/dist/chunks/index.mjs
CHANGED
|
@@ -2,12 +2,12 @@ import { writeFile, readFile } from 'fs/promises';
|
|
|
2
2
|
import { resolve, relative, basename } from 'pathe';
|
|
3
3
|
import fg from 'fast-glob';
|
|
4
4
|
import consola from 'consola';
|
|
5
|
-
import { cyan, green,
|
|
6
|
-
import { createGenerator } from '@unocss/core';
|
|
5
|
+
import { cyan, green, dim } from 'colorette';
|
|
6
|
+
import { createGenerator, toArray } from '@unocss/core';
|
|
7
7
|
import { createConfigLoader } from '@unocss/config';
|
|
8
8
|
import presetUno from '@unocss/preset-uno';
|
|
9
9
|
|
|
10
|
-
const version = "0.
|
|
10
|
+
const version = "0.18.0";
|
|
11
11
|
|
|
12
12
|
class PrettyError extends Error {
|
|
13
13
|
constructor(message) {
|
|
@@ -95,7 +95,7 @@ async function build(_options) {
|
|
|
95
95
|
const { watch } = await import('chokidar');
|
|
96
96
|
const { patterns } = options;
|
|
97
97
|
const ignored = ["**/{.git,node_modules}/**"];
|
|
98
|
-
consola.info(`Watching for changes in ${
|
|
98
|
+
consola.info(`Watching for changes in ${toArray(patterns).map((i) => cyan(i)).join(", ")}`);
|
|
99
99
|
const watcher = watch(patterns, {
|
|
100
100
|
ignoreInitial: true,
|
|
101
101
|
ignorePermissionErrors: true,
|
|
@@ -108,7 +108,7 @@ async function build(_options) {
|
|
|
108
108
|
uno.setConfig((await loadConfig()).config);
|
|
109
109
|
consola.info(`${cyan(basename(file))} changed, setting new config`);
|
|
110
110
|
} else {
|
|
111
|
-
consola.log(`${green(
|
|
111
|
+
consola.log(`${green(type)} ${dim(file)}`);
|
|
112
112
|
if (type.startsWith("unlink"))
|
|
113
113
|
fileCache.delete(file);
|
|
114
114
|
else
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "CLI for UnoCSS",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"homepage": "https://github.com/antfu/unocss/tree/main/packages/cli#readme",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"node": ">=14"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@unocss/config": "0.
|
|
37
|
-
"@unocss/core": "0.
|
|
38
|
-
"@unocss/preset-uno": "0.
|
|
36
|
+
"@unocss/config": "0.18.0",
|
|
37
|
+
"@unocss/core": "0.18.0",
|
|
38
|
+
"@unocss/preset-uno": "0.18.0",
|
|
39
39
|
"cac": "^6.7.12",
|
|
40
40
|
"chokidar": "^3.5.2",
|
|
41
41
|
"colorette": "^2.0.16",
|