diff --git a/README.md b/README.md index d8c3349..11c3b1f 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,8 @@ Each file is exposed through `package.json` `exports`, so it resolves by its spe "forceLastModifiedAuthorUpdate": true, "fixCreatedDate": true, "normalizeDateFormat": true, - "strictCreatedDate": true + "strictCreatedDate": true, + "margin": 1 } ``` @@ -119,6 +120,7 @@ Each file is exposed through `package.json` `exports`, so it resolves by its spe | `fixCreatedDate` | `true` | Move an existing `@Date` back to the oldest of itself, the file's first git commit and its filesystem creation time | | `normalizeDateFormat` | `true` | Write every header date in the git `%aI` form (`2026-03-01T17:59:32-08:00`) | | `strictCreatedDate` | `true` | With `--check`, fail on an `@Date` later than the file's first commit or creation time instead of only warning | +| `margin` | `1` | One blank line between the header and the file's next content. The fix-headers default is two, which prettier collapses to one | The full description of every option is in the [fix-headers README](https://github.com/CLDMV/fix-headers#readme). diff --git a/fix-headers.json b/fix-headers.json index 3700556..ddc1582 100644 --- a/fix-headers.json +++ b/fix-headers.json @@ -8,5 +8,6 @@ "forceLastModifiedAuthorUpdate": true, "fixCreatedDate": true, "normalizeDateFormat": true, - "strictCreatedDate": true + "strictCreatedDate": true, + "margin": 1 } diff --git a/package-lock.json b/package-lock.json index c6ad283..232842b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,16 @@ { "name": "@cldmv/configs", - "version": "1.1.1", + "version": "1.2.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@cldmv/configs", - "version": "1.1.1", + "version": "1.2.0", "license": "Apache-2.0", "devDependencies": { "@cldmv/eslint-plugin-jsonv": "^1.0.13", - "@cldmv/fix-headers": "^1.3.12", + "@cldmv/fix-headers": "^2.1.0", "@cldmv/jsonv": "^1.1.1", "@cldmv/prettier-plugin-jsonv": "^1.1.0", "@cldmv/vitest-runner": "^1.5.1", @@ -136,16 +136,16 @@ } }, "node_modules/@cldmv/fix-headers": { - "version": "1.3.12", - "resolved": "https://registry.npmjs.org/@cldmv/fix-headers/-/fix-headers-1.3.12.tgz", - "integrity": "sha512-G0HRIkoB9ilpF0yXDwbgeDmEFWk7yVIbNkdrjEIQ9ZmDFD3yc3D+QiNU5I6RDV3n1rRX2Mp2n1X3Wi5ofUyNow==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@cldmv/fix-headers/-/fix-headers-2.1.0.tgz", + "integrity": "sha512-/ydW6xjwmgOPpN7gmP2gwr2KkLeYyjW92wMGrbt0lSUQPZgCpCweC3pmQnDTvvvKHD4vH3CFZUHw4+gKnCfJtA==", "dev": true, "license": "Apache-2.0", "dependencies": { "ignore": "^7.0.5" }, "bin": { - "fix-headers": "src/cli.mjs" + "fix-headers": "bin/fix-headers.mjs" }, "engines": { "node": ">=22.12.0" @@ -153,9 +153,6 @@ "funding": { "type": "github", "url": "https://github.com/sponsors/shinrai" - }, - "peerDependencies": { - "vitest": ">=1.0.0" } }, "node_modules/@cldmv/jsonv": { diff --git a/package.json b/package.json index 80f5052..4fcf371 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cldmv/configs", - "version": "1.1.1", + "version": "1.2.0", "description": "CLDMV's shared tool configurations, published as plain JSON files that CLDMV repos extend.", "type": "module", "license": "Apache-2.0", @@ -63,7 +63,7 @@ }, "devDependencies": { "@cldmv/eslint-plugin-jsonv": "^1.0.13", - "@cldmv/fix-headers": "^1.3.12", + "@cldmv/fix-headers": "^2.1.0", "@cldmv/jsonv": "^1.1.1", "@cldmv/prettier-plugin-jsonv": "^1.1.0", "@cldmv/vitest-runner": "^1.5.1",