Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions .husky/commit-msg
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

export NVM_DIR="$HOME/.nvm/nvm.sh"

if [ -f "$NVM_DIR" ]; then
. "$(dirname $NVM_DIR)/nvm.sh"

export NVM_DIR="$HOME/.nvm"
a=$(nvm ls | grep 'node')
b=${a#*(-> }
v=${b%%[)| ]*}

export PATH="$NVM_DIR/versions/node/$v/bin:$PATH"
fi

npx --no -- commitlint --edit
npm run commitlint ${1}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
"sync:pullMFTypes": "concurrently \"node ./packages/enhanced/pullts.js\"",
"app:next:dev": "nx run-many --target=build --configuration=development -p enhanced utils nextjs-mf && nx run-many --target=serve --configuration=development -p 3000-home 3001-shop 3002-checkout",
"app:next:prod": "nx run-many --target=build --configuration=production -p 3000-home 3001-shop 3002-checkout && nx run-many --target=serve --configuration=production -p 3000-home 3001-shop 3002-checkout",
"app:runtime:dev": "nx run-many --target=serve -p runtime_demo_host runtime_demo_remote"
"app:runtime:dev": "nx run-many --target=serve -p runtime_demo_host runtime_demo_remote",
"commitlint": "commitlint --edit",
"prepare": "husky install"
},
"dependencies": {
"adm-zip": "0.5.10",
Expand Down