Skip to content

Commit

Permalink
feat: use publint to check for packaging errors (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusrbrown authored Apr 6, 2024
1 parent 6027c57 commit cb2e347
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 28 deletions.
7 changes: 7 additions & 0 deletions .changeset/strong-vans-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@bfra.me/prettier-plugins": patch
"@bfra.me/semantic-release": patch
"@bfra.me/prettier-config": patch
---

Fix errors reported by `publint`
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
"description": "bfra.me tools and components",
"license": "MIT",
"author": "Marcus R. Brown <contact@bfra.me>",
"type": "module",
"scripts": {
"bootstrap": "pnpm install && pnpm -r build",
"build": "pnpm -r run build",
"check-format": "prettier --check .",
"clean": "rimraf --glob \"packages/**/lib\" \"**/*.tsbuildinfo\"",
"format": "prettier --write .",
"lint": "manypkg check && pnpm -r run --parallel lint",
"lint": "manypkg check && pnpm run lint-packages && pnpm -r run --parallel lint",
"lint-packages": "pnpm -r --include-workspace-root --no-bail exec publint",
"publish-changesets": "changeset publish",
"test": "pnpm -r run test",
"version-changesets": "changeset version",
Expand All @@ -26,6 +28,7 @@
"@types/node": "20.12.5",
"eslint": "8.57.0",
"prettier": "3.2.5",
"publint": "0.2.7",
"rimraf": "5.0.5",
"typescript": "5.4.4"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/prettier-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"type": "module",
"exports": {
".": {
"import": "./prettier.config.js",
"types": "./prettier.config.d.ts"
"types": "./prettier.config.d.ts",
"import": "./prettier.config.js"
},
"./package.json": "./package.json"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/prettier-plugins/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"type": "module",
"exports": {
".": {
"default": "./lib/index.js",
"types": "./lib/index.d.ts"
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
},
"./package-json": {
"default": "./lib/package-json/index.js",
"types": "./lib/package-json/index.d.ts"
"types": "./lib/package-json/index.d.ts",
"default": "./lib/package-json/index.js"
},
"./package.json": "./package.json"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/semantic-release/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"exports": {
".": {
"import": {
"default": "./lib/index.js",
"types": "./lib/index.d.ts"
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
}
},
"./package.json": "./package.json"
Expand Down
92 changes: 73 additions & 19 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cb2e347

Please sign in to comment.