mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-01 23:02:26 +00:00
10 lines
477 B
Bash
Executable File
10 lines
477 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Check if you happen to call prepare for a repository that's already in node_modules.
|
|
[ "$(basename "$(dirname "$PWD")")" = 'node_modules' ] ||
|
|
# The name of the containing directory that 'npm` uses, which looks like
|
|
# $HOME/.npm/_cacache/git-cloneXXXXXX
|
|
[ "$(basename "$(dirname "$PWD")")" = 'tmp' ] ||
|
|
# The name of the containing directory that 'yarn` uses, which looks like
|
|
# $(yarn cache dir)/.tmp/XXXXX
|
|
[ "$(basename "$(dirname "$PWD")")" = '.tmp' ]
|