@unocss/cli 0.45.8 → 0.45.13

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
@@ -1,5 +1,5 @@
1
1
  import { cac } from 'cac';
2
- import { b as build, v as version, h as handleError } from './chunks/index.mjs';
2
+ import { b as build, v as version, h as handleError } from './shared/cli.bc1cd09f.mjs';
3
3
  import 'fs';
4
4
  import 'pathe';
5
5
  import 'fast-glob';
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 './chunks/index.mjs';
9
+ export { b as build, r as resolveOptions } from './shared/cli.bc1cd09f.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.8";
11
+ const version = "0.45.13";
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
- if (configSources.includes(file)) {
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.8",
3
+ "version": "0.45.13",
4
4
  "description": "CLI for UnoCSS",
5
5
  "author": {
6
6
  "name": "Johann Schopplich",
@@ -39,15 +39,15 @@
39
39
  "node": ">=14"
40
40
  },
41
41
  "dependencies": {
42
- "@unocss/config": "0.45.8",
43
- "@unocss/core": "0.45.8",
44
- "@unocss/preset-uno": "0.45.8",
42
+ "@unocss/config": "0.45.13",
43
+ "@unocss/core": "0.45.13",
44
+ "@unocss/preset-uno": "0.45.13",
45
45
  "cac": "^6.7.12",
46
46
  "chokidar": "^3.5.3",
47
47
  "colorette": "^2.0.19",
48
48
  "consola": "^2.15.3",
49
49
  "fast-glob": "^3.2.11",
50
- "pathe": "^0.3.3",
50
+ "pathe": "^0.3.5",
51
51
  "perfect-debounce": "^0.1.3"
52
52
  },
53
53
  "scripts": {