@unocss/cli 0.61.9 → 0.62.1
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
|
@@ -2,10 +2,10 @@ import process from 'node:process';
|
|
|
2
2
|
import { cac } from 'cac';
|
|
3
3
|
import { loadConfig } from '@unocss/config';
|
|
4
4
|
import { toArray } from '@unocss/core';
|
|
5
|
-
import { b as build, v as version, h as handleError } from './shared/cli.
|
|
5
|
+
import { b as build, v as version, h as handleError } from './shared/cli.C0CskEyQ.mjs';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'pathe';
|
|
8
|
-
import '
|
|
8
|
+
import 'tinyglobby';
|
|
9
9
|
import 'consola';
|
|
10
10
|
import 'colorette';
|
|
11
11
|
import 'perfect-debounce';
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import 'node:fs';
|
|
2
2
|
import 'node:process';
|
|
3
3
|
import 'pathe';
|
|
4
|
-
import '
|
|
4
|
+
import 'tinyglobby';
|
|
5
5
|
import 'consola';
|
|
6
6
|
import 'colorette';
|
|
7
7
|
import 'perfect-debounce';
|
|
8
8
|
import '@unocss/core';
|
|
9
|
-
export { b as build, r as resolveOptions } from './shared/cli.
|
|
9
|
+
export { b as build, r as resolveOptions } from './shared/cli.C0CskEyQ.mjs';
|
|
10
10
|
import '@rollup/pluginutils';
|
|
11
11
|
import '@unocss/config';
|
|
12
12
|
import 'magic-string';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { promises, existsSync } from 'node:fs';
|
|
2
2
|
import process$1 from 'node:process';
|
|
3
3
|
import { resolve, dirname, relative, normalize, basename } from 'pathe';
|
|
4
|
-
import
|
|
4
|
+
import { glob } from 'tinyglobby';
|
|
5
5
|
import { consola } from 'consola';
|
|
6
6
|
import { cyan, green, dim } from 'colorette';
|
|
7
7
|
import { debounce } from 'perfect-debounce';
|
|
@@ -214,7 +214,7 @@ async function applyTransformers(ctx, original, id, enforce = "default") {
|
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
-
const version = "0.
|
|
217
|
+
const version = "0.62.1";
|
|
218
218
|
|
|
219
219
|
const defaultConfig = {
|
|
220
220
|
envMode: "build",
|
|
@@ -274,7 +274,7 @@ async function build(_options) {
|
|
|
274
274
|
return { ctx: ctx2, configSources: configSources2 };
|
|
275
275
|
}
|
|
276
276
|
const { ctx, configSources } = await loadConfig();
|
|
277
|
-
const files = await
|
|
277
|
+
const files = await glob(options.patterns, { cwd, absolute: true, expandDirectories: false });
|
|
278
278
|
await Promise.all(
|
|
279
279
|
files.map(async (file) => {
|
|
280
280
|
fileCache.set(file, await promises.readFile(file, "utf8"));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.62.1",
|
|
5
5
|
"description": "CLI for UnoCSS",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Johann Schopplich",
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"chokidar": "^3.6.0",
|
|
47
47
|
"colorette": "^2.0.20",
|
|
48
48
|
"consola": "^3.2.3",
|
|
49
|
-
"fast-glob": "^3.3.2",
|
|
50
49
|
"magic-string": "^0.30.11",
|
|
51
50
|
"pathe": "^1.1.2",
|
|
52
51
|
"perfect-debounce": "^1.0.0",
|
|
53
|
-
"
|
|
54
|
-
"@unocss/preset-uno": "0.
|
|
55
|
-
"@unocss/core": "0.
|
|
52
|
+
"tinyglobby": "^0.2.1",
|
|
53
|
+
"@unocss/preset-uno": "0.62.1",
|
|
54
|
+
"@unocss/core": "0.62.1",
|
|
55
|
+
"@unocss/config": "0.62.1"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "unbuild",
|