@unocss/cli 0.50.0 → 0.50.2

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,7 +1,7 @@
1
1
  import { cac } from 'cac';
2
2
  import { loadConfig } from '@unocss/config';
3
3
  import { toArray } from '@unocss/core';
4
- import { b as build, v as version, h as handleError } from './shared/cli.2404b4d0.mjs';
4
+ import { b as build, v as version, h as handleError } from './shared/cli.d0e86225.mjs';
5
5
  import 'fs';
6
6
  import 'pathe';
7
7
  import 'fast-glob';
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ import 'consola';
5
5
  import 'colorette';
6
6
  import 'perfect-debounce';
7
7
  import '@unocss/core';
8
- export { b as build, r as resolveOptions } from './shared/cli.2404b4d0.mjs';
8
+ export { b as build, r as resolveOptions } from './shared/cli.d0e86225.mjs';
9
9
  import '@rollup/pluginutils';
10
10
  import '@unocss/config';
11
11
  import 'magic-string';
@@ -1,5 +1,5 @@
1
1
  import { promises, existsSync } from 'fs';
2
- import { resolve, dirname, relative, basename } from 'pathe';
2
+ import { resolve, dirname, relative, normalize, basename } from 'pathe';
3
3
  import fg from 'fast-glob';
4
4
  import consola from 'consola';
5
5
  import { cyan, green, dim } from 'colorette';
@@ -11,7 +11,7 @@ import MagicString from 'magic-string';
11
11
  import remapping from '@ampproject/remapping';
12
12
  import presetUno from '@unocss/preset-uno';
13
13
 
14
- const version = "0.50.0";
14
+ const version = "0.50.2";
15
15
 
16
16
  const INCLUDE_COMMENT = "@unocss-include";
17
17
  const IGNORE_COMMENT = "@unocss-ignore";
@@ -192,7 +192,7 @@ async function build(_options) {
192
192
  const options = await resolveOptions(_options);
193
193
  async function loadConfig() {
194
194
  const ctx2 = createContext(options.config, defaultConfig);
195
- const configSources2 = (await ctx2.updateRoot(cwd)).sources;
195
+ const configSources2 = (await ctx2.updateRoot(cwd)).sources.map((i) => normalize(i));
196
196
  return { ctx: ctx2, configSources: configSources2 };
197
197
  }
198
198
  const { ctx, configSources } = await loadConfig();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/cli",
3
- "version": "0.50.0",
3
+ "version": "0.50.2",
4
4
  "description": "CLI for UnoCSS",
5
5
  "author": {
6
6
  "name": "Johann Schopplich",
@@ -41,15 +41,15 @@
41
41
  "dependencies": {
42
42
  "@ampproject/remapping": "^2.2.0",
43
43
  "@rollup/pluginutils": "^5.0.2",
44
- "@unocss/config": "0.50.0",
45
- "@unocss/core": "0.50.0",
46
- "@unocss/preset-uno": "0.50.0",
44
+ "@unocss/config": "0.50.2",
45
+ "@unocss/core": "0.50.2",
46
+ "@unocss/preset-uno": "0.50.2",
47
47
  "cac": "^6.7.14",
48
48
  "chokidar": "^3.5.3",
49
49
  "colorette": "^2.0.19",
50
50
  "consola": "^2.15.3",
51
51
  "fast-glob": "^3.2.12",
52
- "magic-string": "^0.29.0",
52
+ "magic-string": "^0.30.0",
53
53
  "pathe": "^1.1.0",
54
54
  "perfect-debounce": "^0.1.3"
55
55
  },