@unocss/config 0.55.0 → 0.55.2
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.cjs +3 -5
- package/dist/index.d.cts +7 -0
- package/dist/index.d.mts +7 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
const node_path = require('node:path');
|
|
6
4
|
const fs = require('node:fs');
|
|
7
5
|
const process = require('node:process');
|
|
8
6
|
const unconfig = require('unconfig');
|
|
9
7
|
|
|
10
|
-
function
|
|
8
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
11
9
|
|
|
12
|
-
const fs__default = /*#__PURE__*/
|
|
13
|
-
const process__default = /*#__PURE__*/
|
|
10
|
+
const fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
|
|
11
|
+
const process__default = /*#__PURE__*/_interopDefaultCompat(process);
|
|
14
12
|
|
|
15
13
|
async function loadConfig(cwd = process__default.cwd(), configOrPath = cwd, extraConfigSources = [], defaults = {}) {
|
|
16
14
|
let inlineConfig = {};
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { UserConfig, UserConfigDefaults } from '@unocss/core';
|
|
2
|
+
import { LoadConfigSource, LoadConfigResult } from 'unconfig';
|
|
3
|
+
export { LoadConfigResult, LoadConfigSource } from 'unconfig';
|
|
4
|
+
|
|
5
|
+
declare function loadConfig<U extends UserConfig>(cwd?: string, configOrPath?: string | U, extraConfigSources?: LoadConfigSource[], defaults?: UserConfigDefaults): Promise<LoadConfigResult<U>>;
|
|
6
|
+
|
|
7
|
+
export { loadConfig };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { UserConfig, UserConfigDefaults } from '@unocss/core';
|
|
2
|
+
import { LoadConfigSource, LoadConfigResult } from 'unconfig';
|
|
3
|
+
export { LoadConfigResult, LoadConfigSource } from 'unconfig';
|
|
4
|
+
|
|
5
|
+
declare function loadConfig<U extends UserConfig>(cwd?: string, configOrPath?: string | U, extraConfigSources?: LoadConfigSource[], defaults?: UserConfigDefaults): Promise<LoadConfigResult<U>>;
|
|
6
|
+
|
|
7
|
+
export { loadConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/config",
|
|
3
|
-
"version": "0.55.
|
|
3
|
+
"version": "0.55.2",
|
|
4
4
|
"description": "Config loader for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"unconfig": "^0.3.10",
|
|
37
|
-
"@unocss/core": "0.55.
|
|
37
|
+
"@unocss/core": "0.55.2"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "unbuild",
|