@unocss/cli 0.16.2 → 0.17.3

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.
@@ -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.16.2";
18
+ const version = "0.17.3";
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 ${colorette.cyan(Array.isArray(patterns) ? patterns.join(colorette.white(", ")) : patterns)}`);
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(`${type}`)} ${colorette.white(colorette.dim(file))}`);
119
+ consola__default.log(`${colorette.green(type)} ${colorette.dim(file)}`);
120
120
  if (type.startsWith("unlink"))
121
121
  fileCache.delete(file);
122
122
  else
@@ -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, white, dim } from 'colorette';
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.16.2";
10
+ const version = "0.17.3";
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 ${cyan(Array.isArray(patterns) ? patterns.join(white(", ")) : patterns)}`);
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(`${type}`)} ${white(dim(file))}`);
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.16.2",
3
+ "version": "0.17.3",
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.16.2",
37
- "@unocss/core": "0.16.2",
38
- "@unocss/preset-uno": "0.16.2",
36
+ "@unocss/config": "0.17.3",
37
+ "@unocss/core": "0.17.3",
38
+ "@unocss/preset-uno": "0.17.3",
39
39
  "cac": "^6.7.12",
40
40
  "chokidar": "^3.5.2",
41
41
  "colorette": "^2.0.16",