c12 2.0.1 → 2.0.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/README.md CHANGED
@@ -33,6 +33,7 @@ c12 (pronounced as /siːtwelv/, like c-twelve) is a smart configuration loader.
33
33
  - [Changelogen](https://changelogen.unjs.io)
34
34
  - [RemixKit](https://github.com/jrestall/remix-kit)
35
35
  - [Hey API](https://github.com/hey-api/openapi-ts)
36
+ - [kysely-ctl](https://github.com/kysely-org/kysely-ctl)
36
37
 
37
38
  ## Usage
38
39
 
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const loader = require('./shared/c12.CLRr5qYj.cjs');
3
+ const loader = require('./shared/c12.D1gWAjF7.cjs');
4
4
  const perfectDebounce = require('perfect-debounce');
5
5
  const pathe = require('pathe');
6
6
  const ohash = require('ohash');
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { l as loadConfig, S as SUPPORTED_EXTENSIONS } from './shared/c12.B4fc1S0C.mjs';
2
- export { a as loadDotenv, s as setupDotenv } from './shared/c12.B4fc1S0C.mjs';
1
+ import { l as loadConfig, S as SUPPORTED_EXTENSIONS } from './shared/c12.UwygHULp.mjs';
2
+ export { a as loadDotenv, s as setupDotenv } from './shared/c12.UwygHULp.mjs';
3
3
  import { debounce } from 'perfect-debounce';
4
4
  import { resolve } from 'pathe';
5
5
  import { diff } from 'ohash';
@@ -166,6 +166,9 @@ async function loadConfig(options) {
166
166
  _configs.main = _mainConfig.config;
167
167
  r.configFile = _mainConfig.configFile;
168
168
  }
169
+ if (_mainConfig.meta) {
170
+ r.meta = _mainConfig.meta;
171
+ }
169
172
  if (options.rcFile) {
170
173
  const rcSources = [];
171
174
  rcSources.push(rc9__namespace.read({ name: options.rcFile, dir: options.cwd }));
@@ -149,6 +149,9 @@ async function loadConfig(options) {
149
149
  _configs.main = _mainConfig.config;
150
150
  r.configFile = _mainConfig.configFile;
151
151
  }
152
+ if (_mainConfig.meta) {
153
+ r.meta = _mainConfig.meta;
154
+ }
152
155
  if (options.rcFile) {
153
156
  const rcSources = [];
154
157
  rcSources.push(rc9.read({ name: options.rcFile, dir: options.cwd }));
package/dist/update.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const mlly = require('mlly');
4
- const loader = require('./shared/c12.CLRr5qYj.cjs');
4
+ const loader = require('./shared/c12.D1gWAjF7.cjs');
5
5
  const pathe = require('pathe');
6
6
  const promises = require('node:fs/promises');
7
7
  const node_path = require('node:path');
package/dist/update.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { resolvePath } from 'mlly';
2
- import { S as SUPPORTED_EXTENSIONS } from './shared/c12.B4fc1S0C.mjs';
2
+ import { S as SUPPORTED_EXTENSIONS } from './shared/c12.UwygHULp.mjs';
3
3
  import { join } 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": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Smart Config Loader",
5
5
  "repository": "unjs/c12",
6
6
  "license": "MIT",
@@ -36,32 +36,32 @@
36
36
  "test:types": "tsc --noEmit"
37
37
  },
38
38
  "dependencies": {
39
- "chokidar": "^4.0.1",
40
- "confbox": "^0.1.7",
39
+ "chokidar": "^4.0.3",
40
+ "confbox": "^0.1.8",
41
41
  "defu": "^6.1.4",
42
- "dotenv": "^16.4.5",
43
- "giget": "^1.2.3",
44
- "jiti": "^2.3.0",
45
- "mlly": "^1.7.1",
42
+ "dotenv": "^16.4.7",
43
+ "giget": "^1.2.4",
44
+ "jiti": "^2.4.2",
45
+ "mlly": "^1.7.4",
46
46
  "ohash": "^1.1.4",
47
- "pathe": "^1.1.2",
47
+ "pathe": "^2.0.2",
48
48
  "perfect-debounce": "^1.0.0",
49
- "pkg-types": "^1.2.0",
49
+ "pkg-types": "^1.3.1",
50
50
  "rc9": "^2.1.2"
51
51
  },
52
52
  "devDependencies": {
53
- "@types/node": "^22.7.4",
54
- "@vitest/coverage-v8": "^2.1.2",
55
- "automd": "^0.3.10",
53
+ "@types/node": "^22.13.1",
54
+ "@vitest/coverage-v8": "^3.0.5",
55
+ "automd": "^0.3.12",
56
56
  "changelogen": "^0.5.7",
57
- "eslint": "^9.12.0",
58
- "eslint-config-unjs": "^0.4.1",
59
- "expect-type": "^1.0.0",
57
+ "eslint": "^9.20.0",
58
+ "eslint-config-unjs": "^0.4.2",
59
+ "expect-type": "^1.1.0",
60
60
  "magicast": "^0.3.5",
61
- "prettier": "^3.3.3",
62
- "typescript": "^5.6.2",
63
- "unbuild": "3.0.0-rc.8",
64
- "vitest": "^2.1.2"
61
+ "prettier": "^3.5.0",
62
+ "typescript": "^5.7.3",
63
+ "unbuild": "^3.3.1",
64
+ "vitest": "^3.0.5"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "magicast": "^0.3.5"
@@ -71,5 +71,5 @@
71
71
  "optional": true
72
72
  }
73
73
  },
74
- "packageManager": "pnpm@9.11.0"
74
+ "packageManager": "pnpm@10.3.0"
75
75
  }