c12 0.2.11 → 0.2.13
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 +6 -2
- package/dist/index.cjs +2 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +2 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -93,11 +93,15 @@ Loads `.env` file if enabled. It is disabled by default.
|
|
|
93
93
|
|
|
94
94
|
### `defaults`
|
|
95
95
|
|
|
96
|
-
Specify default configuration. It has the **lowest** priority.
|
|
96
|
+
Specify default configuration. It has the **lowest** priority and is applied **after extending** config.
|
|
97
|
+
|
|
98
|
+
### `defaultConfig`
|
|
99
|
+
|
|
100
|
+
Specify default configuration. It is applied **before** extending config.
|
|
97
101
|
|
|
98
102
|
### `overides`
|
|
99
103
|
|
|
100
|
-
Specify override configuration. It has the **highest** priority.
|
|
104
|
+
Specify override configuration. It has the **highest** priority and is applied **before extending** config.
|
|
101
105
|
|
|
102
106
|
### `jiti`
|
|
103
107
|
|
package/dist/index.cjs
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ interface LoadConfigOptions<T extends InputConfig = InputConfig> {
|
|
|
59
59
|
globalRc?: boolean;
|
|
60
60
|
dotenv?: boolean | DotenvOptions;
|
|
61
61
|
defaults?: T;
|
|
62
|
+
defaultConfig?: T;
|
|
62
63
|
overrides?: T;
|
|
63
64
|
resolve?: (id: string, opts: LoadConfigOptions) => null | ResolvedConfig | Promise<ResolvedConfig | null>;
|
|
64
65
|
jiti?: JITI;
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "c12",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.13",
|
|
4
4
|
"description": "Smart Config Loader",
|
|
5
5
|
"repository": "unjs/c12",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,20 +24,20 @@
|
|
|
24
24
|
"gittar": "^0.1.1",
|
|
25
25
|
"jiti": "^1.15.0",
|
|
26
26
|
"mlly": "^0.5.14",
|
|
27
|
-
"pathe": "^0.3.
|
|
27
|
+
"pathe": "^0.3.8",
|
|
28
28
|
"pkg-types": "^0.3.5",
|
|
29
29
|
"rc9": "^1.2.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@nuxtjs/eslint-config-typescript": "^11.0.0",
|
|
33
|
-
"@vitest/coverage-c8": "^0.23.
|
|
34
|
-
"eslint": "^8.23.
|
|
33
|
+
"@vitest/coverage-c8": "^0.23.4",
|
|
34
|
+
"eslint": "^8.23.1",
|
|
35
35
|
"standard-version": "^9.5.0",
|
|
36
|
-
"typescript": "^4.8.
|
|
37
|
-
"unbuild": "^0.8.
|
|
38
|
-
"vitest": "^0.23.
|
|
36
|
+
"typescript": "^4.8.3",
|
|
37
|
+
"unbuild": "^0.8.11",
|
|
38
|
+
"vitest": "^0.23.4"
|
|
39
39
|
},
|
|
40
|
-
"packageManager": "pnpm@7.
|
|
40
|
+
"packageManager": "pnpm@7.12.0",
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "unbuild",
|
|
43
43
|
"dev": "vitest dev",
|