mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-19 16:54:22 +01:00
chore: generate sdk into packages/sdk
This commit is contained in:
9
packages/sdk/scripts/utils/check-is-in-git-install.sh
Executable file
9
packages/sdk/scripts/utils/check-is-in-git-install.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/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' ]
|
||||
Reference in New Issue
Block a user