mirror of
https://github.com/sst/opencode.git
synced 2025-08-31 02:07:24 +00:00
chore: generate sdk into packages/sdk
This commit is contained in:
parent
500cea5ce7
commit
10c8b49590
110 changed files with 12576 additions and 201 deletions
13
packages/sdk/scripts/utils/git-swap.sh
Executable file
13
packages/sdk/scripts/utils/git-swap.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
set -exuo pipefail
|
||||
# the package is published to NPM from ./dist
|
||||
# we want the final file structure for git installs to match the npm installs, so we
|
||||
|
||||
# delete everything except ./dist and ./node_modules
|
||||
find . -maxdepth 1 -mindepth 1 ! -name 'dist' ! -name 'node_modules' -exec rm -rf '{}' +
|
||||
|
||||
# move everything from ./dist to .
|
||||
mv dist/* .
|
||||
|
||||
# delete the now-empty ./dist
|
||||
rmdir dist
|
Loading…
Add table
Add a link
Reference in a new issue