c12 3.3.0 → 3.3.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.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { l as loadConfig, S as SUPPORTED_EXTENSIONS } from './shared/c12.Bzgyhsy6.mjs';
2
- export { a as loadDotenv, s as setupDotenv } from './shared/c12.Bzgyhsy6.mjs';
1
+ import { l as loadConfig, S as SUPPORTED_EXTENSIONS } from './shared/c12.8GPsgFQh.mjs';
2
+ export { a as loadDotenv, s as setupDotenv } from './shared/c12.8GPsgFQh.mjs';
3
3
  import { debounce } from 'perfect-debounce';
4
4
  import { resolve } from 'pathe';
5
5
  import 'node:fs';
@@ -310,7 +310,6 @@ const GIGET_PREFIXES = [
310
310
  ];
311
311
  const NPM_PACKAGE_RE = /^(@[\da-z~-][\d._a-z~-]*\/)?[\da-z~-][\d._a-z~-]*($|\/.*)/;
312
312
  async function resolveConfig(source, options, sourceOptions = {}) {
313
- const originalSource = source;
314
313
  if (options.resolve) {
315
314
  const res2 = await options.resolve(source, options);
316
315
  if (res2) {
@@ -368,7 +367,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
368
367
  res.configFile = tryResolve(resolve(cwd, source), options) || tryResolve(
369
368
  resolve(cwd, ".config", source.replace(/\.config$/, "")),
370
369
  options
371
- ) || tryResolve(resolve(cwd, ".config", source), options) || tryResolve(resolve(options.cwd || cwd, originalSource), options) || source;
370
+ ) || tryResolve(resolve(cwd, ".config", source), options) || source;
372
371
  if (!existsSync(res.configFile)) {
373
372
  return res;
374
373
  }
package/dist/update.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { resolveModulePath } from 'exsolve';
2
- import { S as SUPPORTED_EXTENSIONS } from './shared/c12.Bzgyhsy6.mjs';
2
+ import { S as SUPPORTED_EXTENSIONS } from './shared/c12.8GPsgFQh.mjs';
3
3
  import { join, normalize } from 'pathe';
4
4
  import { mkdir, writeFile, readFile } from 'node:fs/promises';
5
5
  import { dirname, extname } from 'node:path';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c12",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
4
4
  "description": "Smart Config Loader",
5
5
  "repository": "unjs/c12",
6
6
  "license": "MIT",
@@ -34,10 +34,10 @@
34
34
  "chokidar": "^4.0.3",
35
35
  "confbox": "^0.2.2",
36
36
  "defu": "^6.1.4",
37
- "dotenv": "^17.2.2",
37
+ "dotenv": "^17.2.3",
38
38
  "exsolve": "^1.0.7",
39
39
  "giget": "^2.0.0",
40
- "jiti": "^2.5.1",
40
+ "jiti": "^2.6.1",
41
41
  "ohash": "^2.0.11",
42
42
  "pathe": "^2.0.3",
43
43
  "perfect-debounce": "^2.0.0",
@@ -45,16 +45,16 @@
45
45
  "rc9": "^2.1.2"
46
46
  },
47
47
  "devDependencies": {
48
- "@types/node": "^24.4.0",
48
+ "@types/node": "^24.8.1",
49
49
  "@vitest/coverage-v8": "^3.2.4",
50
- "automd": "^0.4.0",
50
+ "automd": "^0.4.2",
51
51
  "changelogen": "^0.6.2",
52
- "eslint": "^9.35.0",
52
+ "eslint": "^9.37.0",
53
53
  "eslint-config-unjs": "^0.5.0",
54
54
  "expect-type": "^1.2.2",
55
55
  "magicast": "^0.3.5",
56
56
  "prettier": "^3.6.2",
57
- "typescript": "^5.9.2",
57
+ "typescript": "^5.9.3",
58
58
  "unbuild": "^3.6.1",
59
59
  "vitest": "^3.2.4"
60
60
  },
@@ -66,5 +66,5 @@
66
66
  "optional": true
67
67
  }
68
68
  },
69
- "packageManager": "pnpm@10.16.1"
69
+ "packageManager": "pnpm@10.18.3"
70
70
  }