c12 1.11.1 → 1.11.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/update.cjs CHANGED
@@ -64,7 +64,7 @@ async function updateConfig(opts) {
64
64
  }
65
65
  function _tryResolve(path, cwd, exts) {
66
66
  return mlly.resolvePath(path, {
67
- url: cwd,
67
+ url: pathe.join(cwd, "_index.js"),
68
68
  extensions: exts
69
69
  }).catch(() => void 0);
70
70
  }
package/dist/update.mjs CHANGED
@@ -62,7 +62,7 @@ async function updateConfig(opts) {
62
62
  }
63
63
  function _tryResolve(path, cwd, exts) {
64
64
  return resolvePath(path, {
65
- url: cwd,
65
+ url: join(cwd, "_index.js"),
66
66
  extensions: exts
67
67
  }).catch(() => void 0);
68
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c12",
3
- "version": "1.11.1",
3
+ "version": "1.11.2",
4
4
  "description": "Smart Config Loader",
5
5
  "repository": "unjs/c12",
6
6
  "license": "MIT",
@@ -46,22 +46,22 @@
46
46
  "ohash": "^1.1.3",
47
47
  "pathe": "^1.1.2",
48
48
  "perfect-debounce": "^1.0.0",
49
- "pkg-types": "^1.1.1",
49
+ "pkg-types": "^1.2.0",
50
50
  "rc9": "^2.1.2"
51
51
  },
52
52
  "devDependencies": {
53
- "@types/node": "^20.14.2",
54
- "@vitest/coverage-v8": "^1.6.0",
55
- "automd": "^0.3.7",
53
+ "@types/node": "^22.5.2",
54
+ "@vitest/coverage-v8": "^2.0.5",
55
+ "automd": "^0.3.8",
56
56
  "changelogen": "^0.5.5",
57
- "eslint": "^9.4.0",
57
+ "eslint": "^9.9.1",
58
58
  "eslint-config-unjs": "^0.3.2",
59
- "expect-type": "^0.19.0",
60
- "magicast": "^0.3.4",
61
- "prettier": "^3.3.2",
62
- "typescript": "^5.4.5",
59
+ "expect-type": "^0.20.0",
60
+ "magicast": "^0.3.5",
61
+ "prettier": "^3.3.3",
62
+ "typescript": "^5.5.4",
63
63
  "unbuild": "^2.0.0",
64
- "vitest": "^1.6.0"
64
+ "vitest": "^2.0.5"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "magicast": "^0.3.4"