load-oxfmt-config 0.26.0 → 0.27.0
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 +3 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ yarn add oxfmt load-oxfmt-config
|
|
|
33
33
|
pnpm add oxfmt load-oxfmt-config
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
> `oxfmt >=0.
|
|
36
|
+
> `oxfmt >=0.72.0` is a peer dependency and is installed alongside this package.
|
|
37
37
|
> Node.js `^22.13.0 || >=24` is supported.
|
|
38
38
|
|
|
39
39
|
## Usage
|
|
@@ -501,6 +501,7 @@ Notes:
|
|
|
501
501
|
|
|
502
502
|
- The default lockfile list mirrors oxfmt documentation intent (`package-lock.json`, `pnpm-lock.yaml`, etc.) and common ecosystem lockfiles. It is not guaranteed to be a complete internal oxfmt list.
|
|
503
503
|
- `ignorePatterns` use gitignore semantics and are interpreted relative to the resolved oxfmt config directory. Parent-directory (`..`) path segments are rejected because patterns cannot match files outside that directory.
|
|
504
|
+
- Within `ignorePatterns` or a single ignore file, `vendor/` followed by `!vendor/keep.js` still ignores the file because its parent directory is excluded. Use `vendor/*` followed by `!vendor/keep.js` to include that child. This matches oxfmt 0.72.0's corrected parent-directory handling.
|
|
504
505
|
- `includeConfigIgnorePatterns` defaults to `true` to preserve current behavior.
|
|
505
506
|
- `loadConfigForIgnorePatterns` defaults to `true` to preserve current behavior.
|
|
506
507
|
- Nested config behavior follows oxfmt semantics:
|
|
@@ -508,6 +509,7 @@ Notes:
|
|
|
508
509
|
- `disableNestedConfig: true`: resolve from `cwd` only
|
|
509
510
|
- `configPath`: also disables nested lookup (same intent as CLI `-c`)
|
|
510
511
|
- invalid nested config only fails files that resolve to that config (no project-wide pre-scan)
|
|
512
|
+
- files matched by global ignores are skipped before loading nested configs, even when those configs are invalid
|
|
511
513
|
|
|
512
514
|
## Precedence
|
|
513
515
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "load-oxfmt-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.27.0",
|
|
5
5
|
"description": "Load and resolve oxfmt configuration files, including explicit JS/TS config paths, and merge supported `.editorconfig` settings for Oxfmt.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"editorconfig",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
},
|
|
44
44
|
"sideEffects": false,
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"oxfmt": ">=0.
|
|
46
|
+
"oxfmt": ">=0.72.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@ntnyq/utils": "^0.23.0",
|
|
50
50
|
"editorconfig": "^3.0.2",
|
|
51
|
-
"ignore": "^7.0.
|
|
51
|
+
"ignore": "^7.0.12",
|
|
52
52
|
"jiti": "^2.7.0",
|
|
53
53
|
"jsonc-parser": "^3.3.1",
|
|
54
54
|
"minimatch": "~10.2.6"
|