Skip to content

Commit df41169

Browse files
authored
fix(prettier): use prettier-plugin-packagejson (#168)
1 parent 804e04b commit df41169

File tree

3 files changed

+180
-19
lines changed

3 files changed

+180
-19
lines changed

.prettierrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"singleQuote": true,
33
"trailingComma": "all",
4-
"plugins": ["prettier-plugin-package"]
4+
"plugins": ["prettier-plugin-packagejson"]
55
}

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
"name": "@renovatebot/ruby-semver",
33
"version": "0.0.0-semantic-release",
44
"description": "Ruby SemVer in TypeScript.",
5-
"license": "MIT",
65
"repository": {
76
"type": "git",
87
"url": "https://github.com/renovatebot/ruby-semver.git"
98
},
9+
"license": "MIT",
1010
"main": "./dist/index.js",
11-
"engines": {
12-
"node": "^18.12.0 || >= 20.0.0",
13-
"pnpm": "^8.6.11"
14-
},
11+
"types": "./dist/index.d.ts",
12+
"files": [
13+
"/dist"
14+
],
1515
"scripts": {
1616
"build": "tsc -p tsconfig.lib.json",
1717
"eslint": "eslint .",
@@ -30,9 +30,6 @@
3030
"test": "run-s lint type-check jest",
3131
"type-check": "tsc --noEmit"
3232
},
33-
"files": [
34-
"/dist"
35-
],
3633
"devDependencies": {
3734
"@renovate/eslint-plugin": "https://github.com/renovatebot/eslint-plugin#v0.0.5",
3835
"@tsconfig/node18": "18.2.0",
@@ -53,11 +50,14 @@
5350
"markdownlint-cli2": "0.8.1",
5451
"npm-run-all": "4.1.5",
5552
"prettier": "2.8.8",
56-
"prettier-plugin-package": "1.3.1",
53+
"prettier-plugin-packagejson": "2.4.5",
5754
"semantic-release": "21.0.7",
5855
"ts-jest": "29.1.1",
5956
"typescript": "5.1.6"
6057
},
61-
"types": "./dist/index.d.ts",
62-
"packageManager": "[email protected]"
58+
"packageManager": "[email protected]",
59+
"engines": {
60+
"node": "^18.12.0 || >= 20.0.0",
61+
"pnpm": "^8.6.11"
62+
}
6363
}

pnpm-lock.yaml

Lines changed: 168 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)