@unocss/config 0.50.2 → 0.50.4

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
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const path = require('path');
6
- const fs = require('fs');
5
+ const node_path = require('node:path');
6
+ const fs = require('node:fs');
7
7
  const unconfig = require('unconfig');
8
8
 
9
9
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
@@ -23,11 +23,11 @@ async function loadConfig(cwd = process.cwd(), configOrPath = cwd, extraConfigSo
23
23
  configOrPath = inlineConfig.configFile || process.cwd();
24
24
  }
25
25
  }
26
- const resolved = path.resolve(configOrPath);
26
+ const resolved = node_path.resolve(configOrPath);
27
27
  let isFile = false;
28
28
  if (fs__default.existsSync(resolved) && fs__default.statSync(resolved).isFile()) {
29
29
  isFile = true;
30
- cwd = path.dirname(resolved);
30
+ cwd = node_path.dirname(resolved);
31
31
  }
32
32
  const loader = unconfig.createConfigLoader({
33
33
  sources: isFile ? [
@@ -52,7 +52,7 @@ async function loadConfig(cwd = process.cwd(), configOrPath = cwd, extraConfigSo
52
52
  if (result.config.configDeps) {
53
53
  result.sources = [
54
54
  ...result.sources,
55
- ...result.config.configDeps.map((i) => path.resolve(cwd, i))
55
+ ...result.config.configDeps.map((i) => node_path.resolve(cwd, i))
56
56
  ];
57
57
  }
58
58
  return result;
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { resolve, dirname } from 'path';
2
- import fs from 'fs';
1
+ import { resolve, dirname } from 'node:path';
2
+ import fs from 'node:fs';
3
3
  import { createConfigLoader } from 'unconfig';
4
4
 
5
5
  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.50.2",
3
+ "version": "0.50.4",
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
- "@unocss/core": "0.50.2",
37
- "unconfig": "^0.3.7"
36
+ "unconfig": "^0.3.7",
37
+ "@unocss/core": "0.50.4"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "unbuild",