@unocss/config 0.1.0 → 0.1.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/index.js +323 -165
- package/package.json +6 -3
package/dist/index.js
CHANGED
|
@@ -22,6 +22,12 @@ var __spreadValues = (a, b) => {
|
|
|
22
22
|
};
|
|
23
23
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
24
24
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
25
|
+
var __esm = (fn, res) => function __init() {
|
|
26
|
+
return fn && (res = (0, fn[Object.keys(fn)[0]])(fn = 0)), res;
|
|
27
|
+
};
|
|
28
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
29
|
+
return mod || (0, cb[Object.keys(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
30
|
+
};
|
|
25
31
|
var __export = (target, all) => {
|
|
26
32
|
__markAsModule(target);
|
|
27
33
|
for (var name in all)
|
|
@@ -38,187 +44,339 @@ var __reExport = (target, module2, desc) => {
|
|
|
38
44
|
var __toModule = (module2) => {
|
|
39
45
|
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
40
46
|
};
|
|
41
|
-
var __publicField = (obj, key, value) => {
|
|
42
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
43
|
-
return value;
|
|
44
|
-
};
|
|
45
|
-
var __accessCheck = (obj, member, msg) => {
|
|
46
|
-
if (!member.has(obj))
|
|
47
|
-
throw TypeError("Cannot " + msg);
|
|
48
|
-
};
|
|
49
|
-
var __privateGet = (obj, member, getter) => {
|
|
50
|
-
__accessCheck(obj, member, "read from private field");
|
|
51
|
-
return getter ? getter.call(obj) : member.get(obj);
|
|
52
|
-
};
|
|
53
|
-
var __privateAdd = (obj, member, value) => {
|
|
54
|
-
if (member.has(obj))
|
|
55
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
56
|
-
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
57
|
-
};
|
|
58
|
-
var __privateSet = (obj, member, value, setter) => {
|
|
59
|
-
__accessCheck(obj, member, "write to private field");
|
|
60
|
-
setter ? setter.call(obj, value) : member.set(obj, value);
|
|
61
|
-
return value;
|
|
62
|
-
};
|
|
63
|
-
var __privateWrapper = (obj, member, setter, getter) => {
|
|
64
|
-
return {
|
|
65
|
-
set _(value) {
|
|
66
|
-
__privateSet(obj, member, value, setter);
|
|
67
|
-
},
|
|
68
|
-
get _() {
|
|
69
|
-
return __privateGet(obj, member, getter);
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
47
|
|
|
74
|
-
//
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
48
|
+
// ../../node_modules/.pnpm/tsup@5.5.0_typescript@4.4.4/node_modules/tsup/assets/cjs_shims.js
|
|
49
|
+
var importMetaUrlShim;
|
|
50
|
+
var init_cjs_shims = __esm({
|
|
51
|
+
"../../node_modules/.pnpm/tsup@5.5.0_typescript@4.4.4/node_modules/tsup/assets/cjs_shims.js"() {
|
|
52
|
+
importMetaUrlShim = typeof document === "undefined" ? new (require("url")).URL("file:" + __filename).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
53
|
+
}
|
|
78
54
|
});
|
|
79
|
-
var import_fs = __toModule(require("fs"));
|
|
80
|
-
|
|
81
|
-
// ../../node_modules/.pnpm/find-up@6.2.0/node_modules/find-up/index.js
|
|
82
|
-
var import_node_path2 = __toModule(require("node:path"));
|
|
83
|
-
|
|
84
|
-
// ../../node_modules/.pnpm/locate-path@7.0.0/node_modules/locate-path/index.js
|
|
85
|
-
var import_node_process = __toModule(require("node:process"));
|
|
86
|
-
var import_node_path = __toModule(require("node:path"));
|
|
87
|
-
var import_node_fs = __toModule(require("node:fs"));
|
|
88
55
|
|
|
89
|
-
// ../../node_modules/.pnpm/yocto-queue@1.0
|
|
90
|
-
var
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
56
|
+
// ../../node_modules/.pnpm/yocto-queue@0.1.0/node_modules/yocto-queue/index.js
|
|
57
|
+
var require_yocto_queue = __commonJS({
|
|
58
|
+
"../../node_modules/.pnpm/yocto-queue@0.1.0/node_modules/yocto-queue/index.js"(exports, module2) {
|
|
59
|
+
init_cjs_shims();
|
|
60
|
+
var Node = class {
|
|
61
|
+
constructor(value) {
|
|
62
|
+
this.value = value;
|
|
63
|
+
this.next = void 0;
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
var Queue = class {
|
|
67
|
+
constructor() {
|
|
68
|
+
this.clear();
|
|
69
|
+
}
|
|
70
|
+
enqueue(value) {
|
|
71
|
+
const node = new Node(value);
|
|
72
|
+
if (this._head) {
|
|
73
|
+
this._tail.next = node;
|
|
74
|
+
this._tail = node;
|
|
75
|
+
} else {
|
|
76
|
+
this._head = node;
|
|
77
|
+
this._tail = node;
|
|
78
|
+
}
|
|
79
|
+
this._size++;
|
|
80
|
+
}
|
|
81
|
+
dequeue() {
|
|
82
|
+
const current = this._head;
|
|
83
|
+
if (!current) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
this._head = this._head.next;
|
|
87
|
+
this._size--;
|
|
88
|
+
return current.value;
|
|
89
|
+
}
|
|
90
|
+
clear() {
|
|
91
|
+
this._head = void 0;
|
|
92
|
+
this._tail = void 0;
|
|
93
|
+
this._size = 0;
|
|
94
|
+
}
|
|
95
|
+
get size() {
|
|
96
|
+
return this._size;
|
|
97
|
+
}
|
|
98
|
+
*[Symbol.iterator]() {
|
|
99
|
+
let current = this._head;
|
|
100
|
+
while (current) {
|
|
101
|
+
yield current.value;
|
|
102
|
+
current = current.next;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
module2.exports = Queue;
|
|
132
107
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
// ../../node_modules/.pnpm/p-limit@3.1.0/node_modules/p-limit/index.js
|
|
111
|
+
var require_p_limit = __commonJS({
|
|
112
|
+
"../../node_modules/.pnpm/p-limit@3.1.0/node_modules/p-limit/index.js"(exports, module2) {
|
|
113
|
+
init_cjs_shims();
|
|
114
|
+
"use strict";
|
|
115
|
+
var Queue = require_yocto_queue();
|
|
116
|
+
var pLimit = (concurrency) => {
|
|
117
|
+
if (!((Number.isInteger(concurrency) || concurrency === Infinity) && concurrency > 0)) {
|
|
118
|
+
throw new TypeError("Expected `concurrency` to be a number from 1 and up");
|
|
119
|
+
}
|
|
120
|
+
const queue = new Queue();
|
|
121
|
+
let activeCount = 0;
|
|
122
|
+
const next = () => {
|
|
123
|
+
activeCount--;
|
|
124
|
+
if (queue.size > 0) {
|
|
125
|
+
queue.dequeue()();
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
const run = async (fn, resolve, ...args) => {
|
|
129
|
+
activeCount++;
|
|
130
|
+
const result = (async () => fn(...args))();
|
|
131
|
+
resolve(result);
|
|
132
|
+
try {
|
|
133
|
+
await result;
|
|
134
|
+
} catch {
|
|
135
|
+
}
|
|
136
|
+
next();
|
|
137
|
+
};
|
|
138
|
+
const enqueue = (fn, resolve, ...args) => {
|
|
139
|
+
queue.enqueue(run.bind(null, fn, resolve, ...args));
|
|
140
|
+
(async () => {
|
|
141
|
+
await Promise.resolve();
|
|
142
|
+
if (activeCount < concurrency && queue.size > 0) {
|
|
143
|
+
queue.dequeue()();
|
|
144
|
+
}
|
|
145
|
+
})();
|
|
146
|
+
};
|
|
147
|
+
const generator = (fn, ...args) => new Promise((resolve) => {
|
|
148
|
+
enqueue(fn, resolve, ...args);
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperties(generator, {
|
|
151
|
+
activeCount: {
|
|
152
|
+
get: () => activeCount
|
|
153
|
+
},
|
|
154
|
+
pendingCount: {
|
|
155
|
+
get: () => queue.size
|
|
156
|
+
},
|
|
157
|
+
clearQueue: {
|
|
158
|
+
value: () => {
|
|
159
|
+
queue.clear();
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
return generator;
|
|
164
|
+
};
|
|
165
|
+
module2.exports = pLimit;
|
|
139
166
|
}
|
|
140
|
-
};
|
|
141
|
-
_head = new WeakMap();
|
|
142
|
-
_tail = new WeakMap();
|
|
143
|
-
_size = new WeakMap();
|
|
167
|
+
});
|
|
144
168
|
|
|
145
|
-
// ../../node_modules/.pnpm/locate
|
|
146
|
-
var
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
169
|
+
// ../../node_modules/.pnpm/p-locate@5.0.0/node_modules/p-locate/index.js
|
|
170
|
+
var require_p_locate = __commonJS({
|
|
171
|
+
"../../node_modules/.pnpm/p-locate@5.0.0/node_modules/p-locate/index.js"(exports, module2) {
|
|
172
|
+
init_cjs_shims();
|
|
173
|
+
"use strict";
|
|
174
|
+
var pLimit = require_p_limit();
|
|
175
|
+
var EndError = class extends Error {
|
|
176
|
+
constructor(value) {
|
|
177
|
+
super();
|
|
178
|
+
this.value = value;
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
var testElement = async (element, tester) => tester(await element);
|
|
182
|
+
var finder = async (element) => {
|
|
183
|
+
const values = await Promise.all(element);
|
|
184
|
+
if (values[1] === true) {
|
|
185
|
+
throw new EndError(values[0]);
|
|
186
|
+
}
|
|
187
|
+
return false;
|
|
188
|
+
};
|
|
189
|
+
var pLocate = async (iterable, tester, options) => {
|
|
190
|
+
options = __spreadValues({
|
|
191
|
+
concurrency: Infinity,
|
|
192
|
+
preserveOrder: true
|
|
193
|
+
}, options);
|
|
194
|
+
const limit = pLimit(options.concurrency);
|
|
195
|
+
const items = [...iterable].map((element) => [element, limit(testElement, element, tester)]);
|
|
196
|
+
const checkLimit = pLimit(options.preserveOrder ? 1 : Infinity);
|
|
197
|
+
try {
|
|
198
|
+
await Promise.all(items.map((element) => checkLimit(finder, element)));
|
|
199
|
+
} catch (error) {
|
|
200
|
+
if (error instanceof EndError) {
|
|
201
|
+
return error.value;
|
|
202
|
+
}
|
|
203
|
+
throw error;
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
module2.exports = pLocate;
|
|
153
207
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
208
|
+
});
|
|
209
|
+
|
|
210
|
+
// ../../node_modules/.pnpm/locate-path@6.0.0/node_modules/locate-path/index.js
|
|
211
|
+
var require_locate_path = __commonJS({
|
|
212
|
+
"../../node_modules/.pnpm/locate-path@6.0.0/node_modules/locate-path/index.js"(exports, module2) {
|
|
213
|
+
init_cjs_shims();
|
|
214
|
+
"use strict";
|
|
215
|
+
var path = require("path");
|
|
216
|
+
var fs2 = require("fs");
|
|
217
|
+
var { promisify } = require("util");
|
|
218
|
+
var pLocate = require_p_locate();
|
|
219
|
+
var fsStat = promisify(fs2.stat);
|
|
220
|
+
var fsLStat = promisify(fs2.lstat);
|
|
221
|
+
var typeMappings = {
|
|
222
|
+
directory: "isDirectory",
|
|
223
|
+
file: "isFile"
|
|
224
|
+
};
|
|
225
|
+
function checkType({ type }) {
|
|
226
|
+
if (type in typeMappings) {
|
|
227
|
+
return;
|
|
169
228
|
}
|
|
170
|
-
|
|
229
|
+
throw new Error(`Invalid type specified: ${type}`);
|
|
171
230
|
}
|
|
231
|
+
var matchType = (type, stat) => type === void 0 || stat[typeMappings[type]]();
|
|
232
|
+
module2.exports = async (paths, options) => {
|
|
233
|
+
options = __spreadValues({
|
|
234
|
+
cwd: process.cwd(),
|
|
235
|
+
type: "file",
|
|
236
|
+
allowSymlinks: true
|
|
237
|
+
}, options);
|
|
238
|
+
checkType(options);
|
|
239
|
+
const statFn = options.allowSymlinks ? fsStat : fsLStat;
|
|
240
|
+
return pLocate(paths, async (path_) => {
|
|
241
|
+
try {
|
|
242
|
+
const stat = await statFn(path.resolve(options.cwd, path_));
|
|
243
|
+
return matchType(options.type, stat);
|
|
244
|
+
} catch {
|
|
245
|
+
return false;
|
|
246
|
+
}
|
|
247
|
+
}, options);
|
|
248
|
+
};
|
|
249
|
+
module2.exports.sync = (paths, options) => {
|
|
250
|
+
options = __spreadValues({
|
|
251
|
+
cwd: process.cwd(),
|
|
252
|
+
allowSymlinks: true,
|
|
253
|
+
type: "file"
|
|
254
|
+
}, options);
|
|
255
|
+
checkType(options);
|
|
256
|
+
const statFn = options.allowSymlinks ? fs2.statSync : fs2.lstatSync;
|
|
257
|
+
for (const path_ of paths) {
|
|
258
|
+
try {
|
|
259
|
+
const stat = statFn(path.resolve(options.cwd, path_));
|
|
260
|
+
if (matchType(options.type, stat)) {
|
|
261
|
+
return path_;
|
|
262
|
+
}
|
|
263
|
+
} catch {
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
};
|
|
172
267
|
}
|
|
173
|
-
}
|
|
268
|
+
});
|
|
174
269
|
|
|
175
|
-
// ../../node_modules/.pnpm/path-exists@
|
|
176
|
-
var
|
|
270
|
+
// ../../node_modules/.pnpm/path-exists@4.0.0/node_modules/path-exists/index.js
|
|
271
|
+
var require_path_exists = __commonJS({
|
|
272
|
+
"../../node_modules/.pnpm/path-exists@4.0.0/node_modules/path-exists/index.js"(exports, module2) {
|
|
273
|
+
init_cjs_shims();
|
|
274
|
+
"use strict";
|
|
275
|
+
var fs2 = require("fs");
|
|
276
|
+
var { promisify } = require("util");
|
|
277
|
+
var pAccess = promisify(fs2.access);
|
|
278
|
+
module2.exports = async (path) => {
|
|
279
|
+
try {
|
|
280
|
+
await pAccess(path);
|
|
281
|
+
return true;
|
|
282
|
+
} catch (_) {
|
|
283
|
+
return false;
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
module2.exports.sync = (path) => {
|
|
287
|
+
try {
|
|
288
|
+
fs2.accessSync(path);
|
|
289
|
+
return true;
|
|
290
|
+
} catch (_) {
|
|
291
|
+
return false;
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
});
|
|
177
296
|
|
|
178
|
-
// ../../node_modules/.pnpm/find-up@
|
|
179
|
-
var
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
297
|
+
// ../../node_modules/.pnpm/find-up@5.0.0/node_modules/find-up/index.js
|
|
298
|
+
var require_find_up = __commonJS({
|
|
299
|
+
"../../node_modules/.pnpm/find-up@5.0.0/node_modules/find-up/index.js"(exports, module2) {
|
|
300
|
+
init_cjs_shims();
|
|
301
|
+
"use strict";
|
|
302
|
+
var path = require("path");
|
|
303
|
+
var locatePath = require_locate_path();
|
|
304
|
+
var pathExists = require_path_exists();
|
|
305
|
+
var stop = Symbol("findUp.stop");
|
|
306
|
+
module2.exports = async (name, options = {}) => {
|
|
307
|
+
let directory = path.resolve(options.cwd || "");
|
|
308
|
+
const { root } = path.parse(directory);
|
|
309
|
+
const paths = [].concat(name);
|
|
310
|
+
const runMatcher = async (locateOptions) => {
|
|
311
|
+
if (typeof name !== "function") {
|
|
312
|
+
return locatePath(paths, locateOptions);
|
|
313
|
+
}
|
|
314
|
+
const foundPath = await name(locateOptions.cwd);
|
|
315
|
+
if (typeof foundPath === "string") {
|
|
316
|
+
return locatePath([foundPath], locateOptions);
|
|
317
|
+
}
|
|
318
|
+
return foundPath;
|
|
319
|
+
};
|
|
320
|
+
while (true) {
|
|
321
|
+
const foundPath = await runMatcher(__spreadProps(__spreadValues({}, options), { cwd: directory }));
|
|
322
|
+
if (foundPath === stop) {
|
|
323
|
+
return;
|
|
324
|
+
}
|
|
325
|
+
if (foundPath) {
|
|
326
|
+
return path.resolve(directory, foundPath);
|
|
327
|
+
}
|
|
328
|
+
if (directory === root) {
|
|
329
|
+
return;
|
|
330
|
+
}
|
|
331
|
+
directory = path.dirname(directory);
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
module2.exports.sync = (name, options = {}) => {
|
|
335
|
+
let directory = path.resolve(options.cwd || "");
|
|
336
|
+
const { root } = path.parse(directory);
|
|
337
|
+
const paths = [].concat(name);
|
|
338
|
+
const runMatcher = (locateOptions) => {
|
|
339
|
+
if (typeof name !== "function") {
|
|
340
|
+
return locatePath.sync(paths, locateOptions);
|
|
341
|
+
}
|
|
342
|
+
const foundPath = name(locateOptions.cwd);
|
|
343
|
+
if (typeof foundPath === "string") {
|
|
344
|
+
return locatePath.sync([foundPath], locateOptions);
|
|
345
|
+
}
|
|
346
|
+
return foundPath;
|
|
347
|
+
};
|
|
348
|
+
while (true) {
|
|
349
|
+
const foundPath = runMatcher(__spreadProps(__spreadValues({}, options), { cwd: directory }));
|
|
350
|
+
if (foundPath === stop) {
|
|
351
|
+
return;
|
|
352
|
+
}
|
|
353
|
+
if (foundPath) {
|
|
354
|
+
return path.resolve(directory, foundPath);
|
|
355
|
+
}
|
|
356
|
+
if (directory === root) {
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
directory = path.dirname(directory);
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
module2.exports.exists = pathExists;
|
|
363
|
+
module2.exports.sync.exists = pathExists.sync;
|
|
364
|
+
module2.exports.stop = stop;
|
|
209
365
|
}
|
|
210
|
-
|
|
211
|
-
}
|
|
212
|
-
function findUpSync(name, options = {}) {
|
|
213
|
-
const matches = findUpMultipleSync(name, __spreadProps(__spreadValues({}, options), { limit: 1 }));
|
|
214
|
-
return matches[0];
|
|
215
|
-
}
|
|
366
|
+
});
|
|
216
367
|
|
|
217
368
|
// src/index.ts
|
|
369
|
+
__export(exports, {
|
|
370
|
+
loadConfig: () => loadConfig,
|
|
371
|
+
readConfig: () => readConfig
|
|
372
|
+
});
|
|
373
|
+
init_cjs_shims();
|
|
374
|
+
var import_fs = __toModule(require("fs"));
|
|
375
|
+
var import_find_up = __toModule(require_find_up());
|
|
218
376
|
var import_sucrase = __toModule(require("sucrase"));
|
|
219
|
-
function isDir(
|
|
377
|
+
function isDir(path) {
|
|
220
378
|
try {
|
|
221
|
-
const stat = import_fs.default.lstatSync(
|
|
379
|
+
const stat = import_fs.default.lstatSync(path);
|
|
222
380
|
return stat.isDirectory();
|
|
223
381
|
} catch (e) {
|
|
224
382
|
return false;
|
|
@@ -230,7 +388,7 @@ function loadConfig(dirOrPath = process.cwd()) {
|
|
|
230
388
|
config: dirOrPath
|
|
231
389
|
};
|
|
232
390
|
}
|
|
233
|
-
const filepath = isDir(dirOrPath) ?
|
|
391
|
+
const filepath = isDir(dirOrPath) ? import_find_up.default.sync([
|
|
234
392
|
"unocss.config.js",
|
|
235
393
|
"unocss.config.cjs",
|
|
236
394
|
"unocss.config.mjs",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/config",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Config loader for UnoCSS",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"homepage": "https://github.com/antfu/unocss#readme",
|
|
@@ -23,12 +23,15 @@
|
|
|
23
23
|
"files": [
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=14"
|
|
28
|
+
},
|
|
26
29
|
"dependencies": {
|
|
27
|
-
"@unocss/core": "0.1.
|
|
30
|
+
"@unocss/core": "0.1.1",
|
|
28
31
|
"sucrase": "^3.20.3"
|
|
29
32
|
},
|
|
30
33
|
"devDependencies": {
|
|
31
|
-
"find-up": "^
|
|
34
|
+
"find-up": "^5"
|
|
32
35
|
},
|
|
33
36
|
"scripts": {
|
|
34
37
|
"build": "tsup",
|