Skip to content

Commit

Permalink
chore: Added husky and @epic-web/config
Browse files Browse the repository at this point in the history
  • Loading branch information
Adil committed Sep 21, 2024
1 parent 06cbcf2 commit 1e95bb5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ node_modules
/*.js
!index.js
yarn.lock
eslint.config.mjs

/dist

Expand Down
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
prettier $(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g') --write --ignore-unknown
git update-index --again
18 changes: 12 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"build": "cross-env npm run clean && tsc -p tsconfig.json",
"watch": "cross-env tsc --watch",
"test": "cross-env jest",
"prettier:fix": "prettier --write ./src/**/*.ts"
"prettier:fix": "prettier --write ./src/**/*.ts",
"lint:fix": "eslint --fix ./src/**/*.ts",
"prepare": "husky"
},
"dependencies": {
"body-parser": "^1.19.0",
Expand All @@ -29,13 +31,14 @@
"typeorm": "^0.3.16"
},
"peerDependencies": {
"medusa-interfaces": "1.x",
"@medusajs/medusa": "1.20.x"
"@medusajs/medusa": "1.20.x",
"medusa-interfaces": "1.x"
},
"devDependencies": {
"@babel/cli": "^7.14.3",
"@babel/core": "^7.14.3",
"@babel/preset-typescript": "^7.21.4",
"@epic-web/config": "^1.12.0",
"@medusajs/medusa": "^1.20.10",
"@stdlib/number-float64-base-normalize": "0.0.8",
"@types/express": "^4.17.13",
Expand All @@ -44,12 +47,15 @@
"@types/node": "^17.0.8",
"babel-preset-medusa-package": "^1.1.19",
"cross-env": "^7.0.3",
"eslint": "^6.8.0",
"eslint": "^9.11.0",
"husky": "^9.1.6",
"jest": "^27.3.1",
"prettier": "^3.3.2",
"pinst": "^3.0.0",
"prettier": "^3.3.3",
"rimraf": "^3.0.2",
"ts-jest": "^27.0.7",
"ts-loader": "^9.2.6",
"typescript": "^4.5.2"
}
},
"prettier": "@epic-web/config/prettier"
}

0 comments on commit 1e95bb5

Please sign in to comment.