Skip to content

Commit

Permalink
fix: prettier dependencies (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
broofa authored Dec 24, 2024
2 parents 3636dde + 57db284 commit b0d8b10
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm test
3 changes: 1 addition & 2 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,12 @@ async function run(curr, prev) {
try {
const prettier = require('prettier');
const config = await prettier.resolveConfig(outputPath);
console.log('CONFIG', config);
markdown = await prettier.format(markdown, {
parser: 'markdown',
...config
});
} catch (err) {
// Ignore
console.log(`Formatting skipped (${err.message})`);
}

// Write to output (file or stdout)
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,17 @@
},
"dependencies": {
"minimist": "1.2.8",
"prettier": "3.4.2",
"require-like": "0.1.2"
},
"peerDependencies": {
"prettier": "^3.4.2"
},
"devDependencies": {
"@commitlint/config-conventional": "19.6.0",
"ava": "6.2.0",
"commitlint": "19.6.1",
"husky": "9.1.7",
"prettier": "3.4.2",
"npm-run-all": "4.1.5"
},
"scripts": {
Expand Down

0 comments on commit b0d8b10

Please sign in to comment.