Skip to content

Commit

Permalink
updated husky
Browse files Browse the repository at this point in the history
Signed-off-by: Amardeepsingh Siglani <[email protected]>
  • Loading branch information
amsiglan committed Apr 16, 2024
1 parent 5da08a4 commit fb491c8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 292 deletions.
2 changes: 1 addition & 1 deletion .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"*.{js,jsx,json,css,md}": ["prettier --write", "git add"]
"*.{js,jsx,json,css,md}": ["prettier --write"]
}

10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,15 @@
"cypress:run:ci": "cypress run",
"build": "yarn plugin-helpers build",
"plugin-helpers": "node ../../scripts/plugin_helpers",
"postbuild": "echo Renaming build artifact to [$npm_package_config_id-$npm_package_version.zip] && mv build/$npm_package_config_id*.zip build/$npm_package_config_id-$npm_package_version.zip"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
"postbuild": "echo Renaming build artifact to [$npm_package_config_id-$npm_package_version.zip] && mv build/$npm_package_config_id*.zip build/$npm_package_config_id-$npm_package_version.zip",
"postinstall": "node -e \"const { execSync } = require('child_process');const { INIT_CWD, PWD = process.cwd() } = process.env; if (INIT_CWD?.startsWith?.(PWD)) {try {execSync('husky install');} catch (e) {}}\""
},
"devDependencies": {
"@babel/plugin-transform-modules-commonjs": "^7.22.9",
"@elastic/elastic-eslint-config-kibana": "link:../../packages/opensearch-eslint-config-opensearch-dashboards",
"@elastic/eslint-import-resolver-kibana": "link:../../packages/osd-eslint-import-resolver-opensearch-dashboards",
"cypress": "9.5.4",
"husky": "^3.0.0",
"husky": "^8.0.0",
"lint-staged": "^10.2.0"
},
"dependencies": {
Expand Down
Loading

0 comments on commit fb491c8

Please sign in to comment.