@unocss/cli 0.50.1 → 0.50.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.
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.
|
|
4
|
+
import { b as build, v as version, h as handleError } from './shared/cli.8efac0a5.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.
|
|
8
|
+
export { b as build, r as resolveOptions } from './shared/cli.8efac0a5.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.
|
|
14
|
+
const version = "0.50.3";
|
|
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.
|
|
3
|
+
"version": "0.50.3",
|
|
4
4
|
"description": "CLI for UnoCSS",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Johann Schopplich",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@ampproject/remapping": "^2.2.0",
|
|
43
43
|
"@rollup/pluginutils": "^5.0.2",
|
|
44
|
-
"@unocss/config": "0.50.
|
|
45
|
-
"@unocss/core": "0.50.
|
|
46
|
-
"@unocss/preset-uno": "0.50.
|
|
44
|
+
"@unocss/config": "0.50.3",
|
|
45
|
+
"@unocss/core": "0.50.3",
|
|
46
|
+
"@unocss/preset-uno": "0.50.3",
|
|
47
47
|
"cac": "^6.7.14",
|
|
48
48
|
"chokidar": "^3.5.3",
|
|
49
49
|
"colorette": "^2.0.19",
|