mirror of
https://github.com/sst/opencode.git
synced 2025-08-24 23:14:10 +00:00
9 lines
477 B
Bash
Executable file
9 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' ]
|