diff --git a/.changeset/wicked-lions-deny.md b/.changeset/wicked-lions-deny.md new file mode 100644 index 00000000..81f91e1b --- /dev/null +++ b/.changeset/wicked-lions-deny.md @@ -0,0 +1,7 @@ +--- +"@bfra.me/semantic-release": patch +"@bfra.me/prettier-config": patch +"@bfra.me/tsconfig": patch +--- + +Format `package.json` using (unreleased) @bfra.me/prettier-config options diff --git a/package.json b/package.json index 18d1a165..ec714adb 100644 --- a/package.json +++ b/package.json @@ -1,30 +1,42 @@ { + "private": true, "name": "@bfra.me/works", "version": "0.0.0", - "private": true, - "packageManager": "pnpm@8.15.5", "description": "bfra.me tools and components", + "license": "MIT", + "author": "Marcus R. Brown ", "scripts": { "bootstrap": "pnpm install --frozen-lockfile && pnpm -r build", "build": "pnpm -r run build", - "watch": "pnpm run build --watch", - "clean": "rimraf --glob \"packages/**/lib\" \"**/*.tsbuildinfo\"", - "lint": "manypkg check && pnpm -r run --parallel lint", "check-format": "prettier --check .", + "clean": "rimraf --glob \"packages/**/lib\" \"**/*.tsbuildinfo\"", "format": "prettier --write .", - "test": "pnpm -r run test", + "lint": "manypkg check && pnpm -r run --parallel lint", "publish-changesets": "changeset publish", - "version-changesets": "changeset version" + "test": "pnpm -r run test", + "version-changesets": "changeset version", + "watch": "pnpm run build --watch" + }, + "dependencies": { + "@bfra.me/prettier-config": "workspace:*", + "@bfra.me/tsconfig": "workspace:*", + "@changesets/cli": "2.27.1", + "@manypkg/cli": "0.21.3", + "@swisspost/design-system-changelog-github": "1.0.2", + "@types/node": "20.11.30", + "eslint": "8.57.0", + "prettier": "3.2.5", + "rimraf": "5.0.5", + "ts-node": "10.9.2", + "typescript": "5.4.3" }, "keywords": [ - "bfra.me", "Build Frameworks", "CLI", "Components", - "Tools" + "Tools", + "bfra.me" ], - "author": "Marcus R. Brown ", - "license": "MIT", "eslintConfig": { "ignorePatterns": [ "lib", @@ -32,22 +44,10 @@ "node_modules" ] }, + "packageManager": "pnpm@8.15.5", "pnpm": { "overrides": { "read-pkg-up@^11": "npm:read-package-up" } - }, - "dependencies": { - "@bfra.me/prettier-config": "workspace:*", - "@bfra.me/tsconfig": "workspace:*", - "@changesets/cli": "2.27.1", - "@manypkg/cli": "0.21.3", - "@swisspost/design-system-changelog-github": "1.0.2", - "@types/node": "20.11.30", - "eslint": "8.57.0", - "prettier": "3.2.5", - "rimraf": "5.0.5", - "ts-node": "10.9.2", - "typescript": "5.4.3" } } diff --git a/packages/prettier-config/package.json b/packages/prettier-config/package.json index fd2e3863..6048f09e 100644 --- a/packages/prettier-config/package.json +++ b/packages/prettier-config/package.json @@ -1,12 +1,9 @@ { "name": "@bfra.me/prettier-config", - "description": "Shared Prettier configuration for bfra.me", "version": "0.1.0", - "author": "Marcus R. Brown ", + "description": "Shared Prettier configuration for bfra.me", "license": "MIT", - "type": "module", - "main": "prettier.config.js", - "types": "prettier.config.d.ts", + "author": "Marcus R. Brown ", "homepage": "https://github.com/bfra-me/works/tree/main/packages/prettier-config#readme", "repository": { "directory": "packages/prettier-config", @@ -14,22 +11,7 @@ "url": "https://github.com/bfra-me/works.git" }, "bugs": "https://github.com/bfra-me/works/issues", - "keywords": [ - "bfra.me", - "works", - "prettier", - "prettier-config", - "config", - "shared" - ], - "publishConfig": { - "access": "public", - "provenance": true - }, - "files": [ - "prettier.config.*", - "!*.map" - ], + "type": "module", "exports": { ".": { "import": "./prettier.config.js", @@ -37,14 +19,36 @@ }, "./package.json": "./package.json" }, - "devDependencies": { - "@bfra.me/tsconfig": "workspace:*", - "prettier": "3.2.5" + "main": "prettier.config.js", + "files": [ + "prettier.config.*", + "!*.map" + ], + "scripts": { + "build": "tsc && prettier --log-level silent --ignore-unknown --write prettier.config.*" + }, + "types": "prettier.config.d.ts", + "dependencies": { + "prettier-package-json": "2.8.0" }, "peerDependencies": { "prettier": "^3.0.0" }, - "scripts": { - "build": "tsc && prettier --log-level silent --write prettier.config.*" + "devDependencies": { + "@bfra.me/prettier-config": "workspace:*", + "@bfra.me/tsconfig": "workspace:*", + "prettier": "3.2.5" + }, + "keywords": [ + "bfra.me", + "config", + "prettier", + "prettier-config", + "shared", + "works" + ], + "publishConfig": { + "access": "public", + "provenance": true } } diff --git a/packages/semantic-release/package.json b/packages/semantic-release/package.json index 8c247541..a3cf7f16 100644 --- a/packages/semantic-release/package.json +++ b/packages/semantic-release/package.json @@ -1,12 +1,17 @@ { "name": "@bfra.me/semantic-release", - "description": "Semantic Release shareable configuration and plugins for bfra.me.", "version": "0.1.0", - "author": "Marcus R. Brown ", + "description": "Semantic Release shareable configuration and plugins for bfra.me.", "license": "MIT", + "author": "Marcus R. Brown ", + "homepage": "https://github.com/bfra-me/works/tree/main/packages/semantic-release#readme", + "repository": { + "directory": "packages/semantic-release", + "type": "git", + "url": "https://github.com/bfra-me/works.git" + }, + "bugs": "https://github.com/bfra-me/works/issues", "type": "module", - "main": "lib/index.js", - "types": "lib/index.d.ts", "exports": { ".": { "import": { @@ -16,29 +21,20 @@ }, "./package.json": "./package.json" }, - "homepage": "https://github.com/bfra-me/works/tree/main/packages/semantic-release#readme", - "repository": { - "directory": "packages/semantic-release", - "type": "git", - "url": "https://github.com/bfra-me/works.git" - }, - "bugs": "https://github.com/bfra-me/works/issues", - "keywords": [ - "bfra.me", - "typescript", - "semantic-release", - "config", - "shared" - ], - "publishConfig": { - "access": "public", - "provenance": true - }, + "main": "lib/index.js", "files": [ "lib", "tsconfig.json", "!*.map" ], + "scripts": { + "build": "tsup-node", + "test": "pnpm build && vitest --typecheck" + }, + "types": "lib/index.d.ts", + "peerDependencies": { + "semantic-release": ">=23" + }, "devDependencies": { "@bfra.me/semantic-release": "workspace:*", "@bfra.me/tsconfig": "workspace:*", @@ -48,11 +44,15 @@ "type-fest": "4.13.1", "vitest": "1.4.0" }, - "peerDependencies": { - "semantic-release": ">=23" - }, - "scripts": { - "build": "tsup-node", - "test": "pnpm build && vitest --typecheck" + "keywords": [ + "bfra.me", + "config", + "semantic-release", + "shared", + "typescript" + ], + "publishConfig": { + "access": "public", + "provenance": true } } diff --git a/packages/tsconfig/package.json b/packages/tsconfig/package.json index e465a98c..6ec8bc64 100644 --- a/packages/tsconfig/package.json +++ b/packages/tsconfig/package.json @@ -1,11 +1,9 @@ { "name": "@bfra.me/tsconfig", - "description": "Shared TypeScript configuration for bfra.me", "version": "0.3.0", - "author": "Marcus R. Brown ", + "description": "Shared TypeScript configuration for bfra.me", "license": "MIT", - "type": "module", - "main": "tsconfig.json", + "author": "Marcus R. Brown ", "homepage": "https://github.com/bfra-me/works/tree/main/packages/tsconfig#readme", "repository": { "directory": "packages/tsconfig", @@ -13,26 +11,24 @@ "url": "https://github.com/bfra-me/works.git" }, "bugs": "https://github.com/bfra-me/works/issues", - "keywords": [ - "bfra.me", - "works", - "typescript", - "tsconfig", - "config", - "shared" - ], - "publishConfig": { - "access": "public", - "provenance": true - }, - "files": [ - "tsconfig.json" - ], + "type": "module", "exports": { ".": "./tsconfig.json", "./package.json": "./package.json", "./tsconfig.json": "./tsconfig.json" }, + "main": "tsconfig.json", + "files": [ + "tsconfig.json" + ], + "scripts": { + "compile-tests": "tsc --project ./test", + "run-tests": "node --test ./test/lib/*.test.js", + "test": "pnpm compile-tests && pnpm run-tests" + }, + "peerDependencies": { + "@tsconfig/strictest": "*" + }, "devDependencies": { "@bfra.me/tsconfig": "workspace:*", "@tsconfig/strictest": "2.0.3", @@ -40,12 +36,16 @@ "ajv-draft-04": "1.0.0", "type-fest": "4.13.1" }, - "peerDependencies": { - "@tsconfig/strictest": "*" - }, - "scripts": { - "test": "pnpm compile-tests && pnpm run-tests", - "compile-tests": "tsc --project ./test", - "run-tests": "node --test ./test/lib/*.test.js" + "keywords": [ + "bfra.me", + "config", + "shared", + "tsconfig", + "typescript", + "works" + ], + "publishConfig": { + "access": "public", + "provenance": true } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5c312a5d..8ac09c13 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -46,7 +46,14 @@ importers: version: 5.4.3 packages/prettier-config: + dependencies: + prettier-package-json: + specifier: 2.8.0 + version: 2.8.0 devDependencies: + '@bfra.me/prettier-config': + specifier: workspace:* + version: 'link:' '@bfra.me/tsconfig': specifier: workspace:* version: link:../tsconfig @@ -1256,6 +1263,14 @@ packages: /@types/normalize-package-data@2.4.4: resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} + /@types/parse-author@2.0.3: + resolution: {integrity: sha512-pgRW2K/GVQoogylrGJXDl7PBLW9A6T4OOc9Hy9MLT5f7vgufK2GQ8FcfAbjFHR5HjcN9ByzuCczAORk49REqoA==} + dev: false + + /@types/parse-json@4.0.2: + resolution: {integrity: sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==} + dev: false + /@types/semver@6.2.7: resolution: {integrity: sha512-blctEWbzUFzQx799RZjzzIdBJOXmE37YYEyDtKkx5Dg+V7o/zyyAxLPiI98A2jdTtDgxZleMdfV+7p8WbRJ1OQ==} dev: false @@ -1496,6 +1511,11 @@ packages: resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==} dev: true + /author-regex@1.0.0: + resolution: {integrity: sha512-KbWgR8wOYRAPekEmMXrYYdc7BRyhn2Ftk7KWfMUnQ43hFdojWEFRxhhRUm3/OFEdPa1r0KAvTTg9YQK57xTe0g==} + engines: {node: '>=0.8'} + dev: false + /available-typed-arrays@1.0.7: resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==} engines: {node: '>= 0.4'} @@ -1762,7 +1782,6 @@ packages: /commander@4.1.1: resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==} engines: {node: '>= 6'} - dev: true /compare-func@2.0.0: resolution: {integrity: sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==} @@ -1821,6 +1840,17 @@ packages: resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} dev: true + /cosmiconfig@7.1.0: + resolution: {integrity: sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==} + engines: {node: '>=10'} + dependencies: + '@types/parse-json': 4.0.2 + import-fresh: 3.3.0 + parse-json: 5.2.0 + path-type: 4.0.0 + yaml: 1.10.2 + dev: false + /cosmiconfig@9.0.0(typescript@5.4.3): resolution: {integrity: sha512-itvL5h8RETACmOTFc4UfIyB2RfEHi71Ax6E/PivVxq9NseKbOWpeyHEOIbmAw1rs8Ak0VursQNww7lf7YtUwzg==} engines: {node: '>=14'} @@ -2461,6 +2491,15 @@ packages: readable-stream: 2.3.8 dev: true + /fs-extra@10.1.0: + resolution: {integrity: sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==} + engines: {node: '>=12'} + dependencies: + graceful-fs: 4.2.11 + jsonfile: 6.1.0 + universalify: 2.0.1 + dev: false + /fs-extra@11.2.0: resolution: {integrity: sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==} engines: {node: '>=14.14'} @@ -3164,7 +3203,6 @@ packages: universalify: 2.0.1 optionalDependencies: graceful-fs: 4.2.11 - dev: true /jsonparse@1.3.1: resolution: {integrity: sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==} @@ -3826,6 +3864,13 @@ packages: dependencies: callsites: 3.1.0 + /parse-author@2.0.0: + resolution: {integrity: sha512-yx5DfvkN8JsHL2xk2Os9oTia467qnvRgey4ahSm2X8epehBLx/gWLcy5KI+Y36ful5DzGbCS6RazqZGgy1gHNw==} + engines: {node: '>=0.10.0'} + dependencies: + author-regex: 1.0.0 + dev: false + /parse-github-url@1.0.2: resolution: {integrity: sha512-kgBf6avCbO3Cn6+RnzRGLkUsv4ZVqv/VfAYkRsyBcgkshNvVBkRn1FEZcW0Jb+npXQWm2vHPnnOqFteZxRRGNw==} engines: {node: '>=0.10.0'} @@ -4016,6 +4061,21 @@ packages: engines: {node: '>= 0.8.0'} dev: false + /prettier-package-json@2.8.0: + resolution: {integrity: sha512-WxtodH/wWavfw3MR7yK/GrS4pASEQ+iSTkdtSxPJWvqzG55ir5nvbLt9rw5AOiEcqqPCRM92WCtR1rk3TG3JSQ==} + hasBin: true + dependencies: + '@types/parse-author': 2.0.3 + commander: 4.1.1 + cosmiconfig: 7.1.0 + fs-extra: 10.1.0 + glob: 7.2.3 + minimatch: 3.1.2 + parse-author: 2.0.0 + sort-object-keys: 1.1.3 + sort-order: 1.1.2 + dev: false + /prettier@2.8.8: resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==} engines: {node: '>=10.13.0'} @@ -4477,6 +4537,14 @@ packages: yargs: 15.4.1 dev: false + /sort-object-keys@1.1.3: + resolution: {integrity: sha512-855pvK+VkU7PaKYPc+Jjnmt4EzejQHyhhF33q31qG8x7maDzkeFhAAThdCYay11CISO+qAMwjOBP+fPZe0IPyg==} + dev: false + + /sort-order@1.1.2: + resolution: {integrity: sha512-Q8tOrwB1TSv9fNUXym9st3TZJODtmcOIi2JWCkVNQPrRg17KPwlpwweTEb7pMwUIFMTAgx2/JsQQXEPFzYQj3A==} + dev: false + /source-map-js@1.1.0: resolution: {integrity: sha512-9vC2SfsJzlej6MAaMPLu8HiBSHGdRAJ9hVFYN1ibZoNkeanmDmLUcIrj6G9DGL7XMJ54AKg/G75akXl1/izTOw==} engines: {node: '>=0.10.0'} @@ -5040,7 +5108,6 @@ packages: /universalify@2.0.1: resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} engines: {node: '>= 10.0.0'} - dev: true /uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} @@ -5322,6 +5389,11 @@ packages: /yallist@4.0.0: resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} + /yaml@1.10.2: + resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==} + engines: {node: '>= 6'} + dev: false + /yaml@2.4.1: resolution: {integrity: sha512-pIXzoImaqmfOrL7teGUBt/T7ZDnyeGBWyXQBvOVhLkWLN37GXv8NMLK406UY6dS51JfcQHsmcW5cJ441bHg6Lg==} engines: {node: '>= 14'} @@ -5411,6 +5483,7 @@ time: /ajv-draft-04@1.0.0: '2021-05-23T15:48:18.254Z' /ajv@8.12.0: '2023-01-03T14:19:23.766Z' /eslint@8.57.0: '2024-02-23T20:39:43.282Z' + /prettier-package-json@2.8.0: '2022-12-23T23:32:54.272Z' /prettier@3.2.5: '2024-02-04T05:38:11.623Z' /rimraf@5.0.5: '2023-09-27T06:04:07.772Z' /semantic-release@23.0.5: '2024-03-18T13:53:08.013Z'