Skip to content

Commit

Permalink
updated postinstall script
Browse files Browse the repository at this point in the history
Signed-off-by: Amardeepsingh Siglani <[email protected]>
  • Loading branch information
amsiglan committed Apr 10, 2024
1 parent d5cc341 commit 840f409
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"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",
"postinstall": "husky install"
"postinstall": "../../scripts/use_node scripts/postinstall"
},
"devDependencies": {
"@babel/plugin-transform-modules-commonjs": "^7.22.9",
Expand Down
12 changes: 12 additions & 0 deletions scripts/postinstall.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/

import { exec } from 'child_process';

function run() {
exec('husky install', (_error) => {});
}

run();

0 comments on commit 840f409

Please sign in to comment.