@unocss/cli 0.57.7 → 0.58.0

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,7 +2,7 @@ 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.6asSM5QT.mjs';
5
+ import { b as build, v as version, h as handleError } from './shared/cli.WV2kXPfx.mjs';
6
6
  import 'node:fs';
7
7
  import 'pathe';
8
8
  import 'fast-glob';
package/dist/index.mjs CHANGED
@@ -6,7 +6,7 @@ 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.6asSM5QT.mjs';
9
+ export { b as build, r as resolveOptions } from './shared/cli.WV2kXPfx.mjs';
10
10
  import '@rollup/pluginutils';
11
11
  import '@unocss/config';
12
12
  import 'magic-string';
@@ -47,7 +47,11 @@ function createContext(configOrPath, defaults = {}, extraConfigSources = [], res
47
47
  let rawConfig = {};
48
48
  let configFileList = [];
49
49
  const uno = createGenerator(rawConfig, defaults);
50
- let rollupFilter = createFilter(defaultPipelineInclude, defaultPipelineExclude);
50
+ let rollupFilter = createFilter(
51
+ defaultPipelineInclude,
52
+ defaultPipelineExclude,
53
+ { resolve: typeof configOrPath === "string" ? configOrPath : root }
54
+ );
51
55
  const invalidations = [];
52
56
  const reloadListeners = [];
53
57
  const modules = new BetterMap();
@@ -65,7 +69,8 @@ function createContext(configOrPath, defaults = {}, extraConfigSources = [], res
65
69
  uno.config.envMode = "dev";
66
70
  rollupFilter = rawConfig.content?.pipeline === false ? () => false : createFilter(
67
71
  rawConfig.content?.pipeline?.include || rawConfig.include || defaultPipelineInclude,
68
- rawConfig.content?.pipeline?.exclude || rawConfig.exclude || defaultPipelineExclude
72
+ rawConfig.content?.pipeline?.exclude || rawConfig.exclude || defaultPipelineExclude,
73
+ { resolve: typeof configOrPath === "string" ? configOrPath : root }
69
74
  );
70
75
  tokens.clear();
71
76
  await Promise.all(modules.map((code, id) => uno.applyExtractors(code.replace(SKIP_COMMENT_RE, ""), id, tokens)));
@@ -206,7 +211,7 @@ function restoreSkipCode(code, map) {
206
211
  return code;
207
212
  }
208
213
 
209
- const version = "0.57.7";
214
+ const version = "0.58.0";
210
215
 
211
216
  const defaultConfig = {
212
217
  envMode: "build",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/cli",
3
- "version": "0.57.7",
3
+ "version": "0.58.0",
4
4
  "description": "CLI for UnoCSS",
5
5
  "author": {
6
6
  "name": "Johann Schopplich",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@ampproject/remapping": "^2.2.1",
43
- "@rollup/pluginutils": "^5.0.5",
43
+ "@rollup/pluginutils": "^5.1.0",
44
44
  "cac": "^6.7.14",
45
45
  "chokidar": "^3.5.3",
46
46
  "colorette": "^2.0.20",
@@ -49,9 +49,9 @@
49
49
  "magic-string": "^0.30.5",
50
50
  "pathe": "^1.1.1",
51
51
  "perfect-debounce": "^1.0.0",
52
- "@unocss/config": "0.57.7",
53
- "@unocss/core": "0.57.7",
54
- "@unocss/preset-uno": "0.57.7"
52
+ "@unocss/config": "0.58.0",
53
+ "@unocss/core": "0.58.0",
54
+ "@unocss/preset-uno": "0.58.0"
55
55
  },
56
56
  "scripts": {
57
57
  "build": "unbuild",