Skip to content

Commit 5af0d2c

Browse files
committed
chore: restore bin to composer for running tests on windows
Using the bin property in composer.json allows Composer to convert the provided scripts to .bat files for execution on Windows, so when running `composer lint`, it will properly execute the script in Windows environments.
1 parent b4dcf40 commit 5af0d2c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

composer.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,14 @@
3939
"configFile": "conventional-commits.json"
4040
}
4141
},
42+
"bin": [
43+
"bin/xmllint",
44+
"bin/xmllint-fix"
45+
],
4246
"scripts": {
4347
"post-autoload-dump": "captainhook install --ansi -f -s",
44-
"lint": "./bin/xmllint",
45-
"lint:fix": "./bin/xmllint-fix",
48+
"lint": "xmllint",
49+
"lint:fix": "xmllint-fix",
4650
"test": "@lint"
4751
},
4852
"scripts-descriptions": {

0 commit comments

Comments
 (0)