Skip to content

Commit

Permalink
Merge pull request #48 from SimplyEdit/feature/install-simplyedit
Browse files Browse the repository at this point in the history
skip postInstall when we are a dependancy
  • Loading branch information
ylebre authored Nov 11, 2024
2 parents a8c679e + 2b3f56d commit eb12311
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions npm_post_install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#!/usr/bin/env bash
current_pwd=`pwd`

if [[ ${INIT_CWD} != ${current_pwd} ]]; then
exit 0; # Skip posinstall when we are installed as a dependancy
fi

#if (process.cwd().includes('node_modules')) {
# return; # Skip postinstall when we are installed as a dependancy.
#}

installCodeMirror() {
sSourceDir="${npm_config_local_prefix}/node_modules"
Expand Down

0 comments on commit eb12311

Please sign in to comment.