Skip to content

Commit 016edff

Browse files
committed
Improve the npm package metadata
- add metadata that allows npmjs.com to link back to the repository - add an optional peer dependency on intl-messageformat so that tools being strict about dependency access (pnpm, Yarn PnP mode) can be supported
1 parent 6fbd01d commit 016edff

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Resources/package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
"symfony"
88
],
99
"license": "MIT",
10+
"repository": {
11+
"type": "git",
12+
"url": "https://github.com/willdurand/BazingaJsTranslationBundle.git"
13+
},
1014
"author": {
1115
"name": "William Durand",
1216
"email": "will+git@drnd.me"
@@ -17,11 +21,23 @@
1721
"email": "bens.sampaio@gmail.com"
1822
}
1923
],
24+
"bugs": {
25+
"url": "https://github.com/willdurand/BazingaJsTranslationBundle/issues"
26+
},
27+
"homepage": "https://github.com/willdurand/BazingaJsTranslationBundle",
2028
"files": [
2129
"js/translator.js",
2230
"public/js/translator.min.js"
2331
],
2432
"main": "js/translator.js",
33+
"peerDependencies": {
34+
"intl-messageformat": "^10.5.14"
35+
},
36+
"peerDependenciesMeta": {
37+
"intl-messageformat": {
38+
"optional": false
39+
}
40+
},
2541
"devDependencies": {
2642
"@web/test-runner": "^0.18.2",
2743
"intl-messageformat": "^10.5.14",

0 commit comments

Comments
 (0)