@unocss/cli 0.34.0 → 0.35.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/chunks/index.mjs +2 -2
- package/dist/cli.mjs +1 -1
- package/dist/index.d.ts +1 -0
- package/package.json +19 -19
package/dist/chunks/index.mjs
CHANGED
|
@@ -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.
|
|
11
|
+
const version = "0.35.1";
|
|
12
12
|
|
|
13
13
|
class PrettyError extends Error {
|
|
14
14
|
constructor(message) {
|
|
@@ -56,7 +56,7 @@ async function resolveOptions(options) {
|
|
|
56
56
|
}
|
|
57
57
|
async function build(_options) {
|
|
58
58
|
const options = await resolveOptions(_options);
|
|
59
|
-
const { config, sources: configSources } = await loadConfig();
|
|
59
|
+
const { config, sources: configSources } = await loadConfig(process.cwd(), options.config);
|
|
60
60
|
uno = createGenerator(config, defaultConfig);
|
|
61
61
|
const files = await fg(options.patterns);
|
|
62
62
|
await Promise.all(files.map(async (file) => {
|
package/dist/cli.mjs
CHANGED
|
@@ -17,7 +17,7 @@ async function main(options = {}) {
|
|
|
17
17
|
ignoreOptionDefaultValue: true
|
|
18
18
|
}).option("-o, --out-file <file>", "Output file", {
|
|
19
19
|
default: process.cwd()
|
|
20
|
-
}).option("-w, --watch", "Watch for file changes").action(async (patterns, flags) => {
|
|
20
|
+
}).option("-c, --config [file]", "Config file").option("-w, --watch", "Watch for file changes").action(async (patterns, flags) => {
|
|
21
21
|
Object.assign(options, {
|
|
22
22
|
...flags
|
|
23
23
|
});
|
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.1",
|
|
4
4
|
"description": "CLI for UnoCSS",
|
|
5
|
-
"keywords": [],
|
|
6
|
-
"homepage": "https://github.com/unocss/unocss/tree/main/packages/cli#readme",
|
|
7
|
-
"bugs": {
|
|
8
|
-
"url": "https://github.com/unocss/unocss/issues"
|
|
9
|
-
},
|
|
10
|
-
"license": "MIT",
|
|
11
5
|
"author": {
|
|
12
6
|
"name": "Johann Schopplich",
|
|
13
7
|
"email": "pkg@johannschopplich.com",
|
|
14
8
|
"url": "https://johannschopplich.com"
|
|
15
9
|
},
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"funding": "https://github.com/sponsors/antfu",
|
|
12
|
+
"homepage": "https://github.com/unocss/unocss/tree/main/packages/cli#readme",
|
|
16
13
|
"repository": {
|
|
17
14
|
"type": "git",
|
|
18
15
|
"url": "git+https://github.com/unocss/unocss.git",
|
|
19
16
|
"directory": "packages/cli"
|
|
20
17
|
},
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/unocss/unocss/issues"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [],
|
|
25
22
|
"exports": {
|
|
26
23
|
".": {
|
|
27
|
-
"
|
|
28
|
-
"
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"import": "./dist/index.mjs"
|
|
29
26
|
}
|
|
30
27
|
},
|
|
28
|
+
"main": "./dist/index.mjs",
|
|
29
|
+
"module": "./dist/index.mjs",
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"bin": {
|
|
32
|
+
"unocss": "./bin/unocss.mjs"
|
|
33
|
+
},
|
|
31
34
|
"files": [
|
|
32
35
|
"bin",
|
|
33
36
|
"dist"
|
|
34
37
|
],
|
|
35
|
-
"bin": {
|
|
36
|
-
"unocss": "./bin/unocss.mjs"
|
|
37
|
-
},
|
|
38
38
|
"engines": {
|
|
39
39
|
"node": ">=14"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@unocss/config": "0.
|
|
43
|
-
"@unocss/core": "0.
|
|
44
|
-
"@unocss/preset-uno": "0.
|
|
42
|
+
"@unocss/config": "0.35.1",
|
|
43
|
+
"@unocss/core": "0.35.1",
|
|
44
|
+
"@unocss/preset-uno": "0.35.1",
|
|
45
45
|
"cac": "^6.7.12",
|
|
46
46
|
"chokidar": "^3.5.3",
|
|
47
47
|
"colorette": "^2.0.16",
|