Skip to content

Commit de8da10

Browse files
committed
chore: wip
1 parent 4c3889d commit de8da10

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

storage/framework/core/scripts/publish

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
# Get the script's directory
44
script_dir=$(realpath $(dirname "$0"))
55

6-
# Get all directories in the core path
7-
dirs=$(find "$script_dir/../src" -type d)
6+
# Get all directories in the core path except for src/bun-create
7+
dirs=$(find "$script_dir/../src" -type d -maxdepth 1 -not -path "$script_dir/../src/bun-create")
8+
9+
# Get all directories in src/bun-create up to two levels deep
10+
bun_create_dirs=$(find "$script_dir/../src/bun-create" -type d -maxdepth 2)
11+
12+
# Combine the two directory lists
13+
dirs="$dirs $bun_create_dirs"
814

915
# Check if no directories found
1016
if [ -z "$dirs" ]; then
@@ -21,15 +27,15 @@ for dir in $dirs; do
2127
# Change to the directory
2228
cd $dir
2329

24-
npm publish --access public --no-git-checks
30+
npm publish --access public --no-git-checks || echo "Failed to publish $dir"
2531

2632
# Check if the build command was successful
2733
if [ $? -ne 0 ]; then
2834
echo "Failed to publish $dir"
2935
exit 1
3036
fi
3137

32-
echo "Build complete"
38+
echo "Latest is published"
3339
echo ""
3440

3541
# Change back to the original directory

storage/framework/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"repository": {
1111
"type": "git",
1212
"url": "git+https://github.com/stacksjs/stacks.git",
13-
"directory": "./stacks"
13+
"directory": "./storage/framework"
1414
},
1515
"bugs": {
1616
"url": "https://github.com/stacksjs/stacks/issues"

0 commit comments

Comments
 (0)