Skip to content

Commit

Permalink
👷 Reference local prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielePicco committed Oct 4, 2024
1 parent 17dae7a commit 3bb999b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ jobs:
cd clients/bolt-sdk
yarn install && yarn build
cd ../..
bolt test
2 changes: 1 addition & 1 deletion cli/npm-package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"scripts": {
"typecheck": "tsc --noEmit",
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check ",
"lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w",
"lint:fix": "node_modules/.bin/prettier */*.js \"*/**/*{.js,.ts}\" -w",
"build": "tsc",
"dev": "yarn build && node lib/index.js"
},
Expand Down
8 changes: 4 additions & 4 deletions cli/src/templates/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub fn package_json(jest: bool) -> String {
format!(
r#"{{
"scripts": {{
"lint:fix": "prettier */*.js \"*/**/*{{.js,.ts}}\" -w",
"lint:fix": "node_modules/.bin/prettier */*.js \"*/**/*{{.js,.ts}}\" -w",
"lint": "prettier */*.js \"*/**/*{{.js,.ts}}\" --check"
}},
"dependencies": {{
Expand All @@ -44,7 +44,7 @@ pub fn package_json(jest: bool) -> String {
format!(
r#"{{
"scripts": {{
"lint:fix": "prettier */*.js \"*/**/*{{.js,.ts}}\" -w",
"lint:fix": "node_modules/.bin/prettier */*.js \"*/**/*{{.js,.ts}}\" -w",
"lint": "prettier */*.js \"*/**/*{{.js,.ts}}\" --check"
}},
"dependencies": {{
Expand All @@ -69,7 +69,7 @@ pub fn ts_package_json(jest: bool) -> String {
format!(
r#"{{
"scripts": {{
"lint:fix": "prettier */*.js \"*/**/*{{.js,.ts}}\" -w",
"lint:fix": "node_modules/.bin/prettier */*.js \"*/**/*{{.js,.ts}}\" -w",
"lint": "prettier */*.js \"*/**/*{{.js,.ts}}\" --check"
}},
"dependencies": {{
Expand All @@ -93,7 +93,7 @@ pub fn ts_package_json(jest: bool) -> String {
format!(
r#"{{
"scripts": {{
"lint:fix": "prettier */*.js \"*/**/*{{.js,.ts}}\" -w",
"lint:fix": "node_modules/.bin/prettier */*.js \"*/**/*{{.js,.ts}}\" -w",
"lint": "prettier */*.js \"*/**/*{{.js,.ts}}\" --check"
}},
"dependencies": {{
Expand Down
2 changes: 1 addition & 1 deletion clients/bolt-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"dev": "tsc --watch",
"start": "tsc",
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check",
"lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w"
"lint:fix": "node_modules/.bin/prettier */*.js \"*/**/*{.js,.ts}\" -w"
},
"files": [
"lib"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"scripts": {
"lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w",
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check"
"lint:fix": "node_modules/.bin/prettier */*.js \"*/**/*{.js,.ts}\" -w",
"lint": "node_modules/.bin/prettier */*.js \"*/**/*{.js,.ts}\" --check"
},
"dependencies": {
"@coral-xyz/anchor": "0.30.1"
Expand Down

0 comments on commit 3bb999b

Please sign in to comment.