@unocss/config 0.53.6 → 0.54.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.cjs CHANGED
@@ -4,13 +4,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const node_path = require('node:path');
6
6
  const fs = require('node:fs');
7
+ const process = require('node:process');
7
8
  const unconfig = require('unconfig');
8
9
 
9
10
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
10
11
 
11
12
  const fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
13
+ const process__default = /*#__PURE__*/_interopDefaultLegacy(process);
12
14
 
13
- async function loadConfig(cwd = process.cwd(), configOrPath = cwd, extraConfigSources = [], defaults = {}) {
15
+ async function loadConfig(cwd = process__default.cwd(), configOrPath = cwd, extraConfigSources = [], defaults = {}) {
14
16
  let inlineConfig = {};
15
17
  if (typeof configOrPath !== "string") {
16
18
  inlineConfig = configOrPath;
@@ -20,7 +22,7 @@ async function loadConfig(cwd = process.cwd(), configOrPath = cwd, extraConfigSo
20
22
  sources: []
21
23
  };
22
24
  } else {
23
- configOrPath = inlineConfig.configFile || process.cwd();
25
+ configOrPath = inlineConfig.configFile || process__default.cwd();
24
26
  }
25
27
  }
26
28
  const resolved = node_path.resolve(configOrPath);
package/dist/index.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import { resolve, dirname } from 'node:path';
2
2
  import fs from 'node:fs';
3
+ import process from 'node:process';
3
4
  import { createConfigLoader } from 'unconfig';
4
5
 
5
6
  async function loadConfig(cwd = process.cwd(), configOrPath = cwd, extraConfigSources = [], defaults = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/config",
3
- "version": "0.53.6",
3
+ "version": "0.54.1",
4
4
  "description": "Config loader for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -33,8 +33,8 @@
33
33
  "node": ">=14"
34
34
  },
35
35
  "dependencies": {
36
- "unconfig": "^0.3.9",
37
- "@unocss/core": "0.53.6"
36
+ "unconfig": "^0.3.10",
37
+ "@unocss/core": "0.54.1"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "unbuild",