File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 3
3
# Get the script's directory
4
4
script_dir=$( realpath $( dirname " $0 " ) )
5
5
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 "
8
14
9
15
# Check if no directories found
10
16
if [ -z " $dirs " ]; then
@@ -21,15 +27,15 @@ for dir in $dirs; do
21
27
# Change to the directory
22
28
cd $dir
23
29
24
- npm publish --access public --no-git-checks
30
+ npm publish --access public --no-git-checks || echo " Failed to publish $dir "
25
31
26
32
# Check if the build command was successful
27
33
if [ $? -ne 0 ]; then
28
34
echo " Failed to publish $dir "
29
35
exit 1
30
36
fi
31
37
32
- echo " ✅ Build complete "
38
+ echo " ✅ Latest is published "
33
39
echo " "
34
40
35
41
# Change back to the original directory
Original file line number Diff line number Diff line change 10
10
"repository" : {
11
11
"type" : " git" ,
12
12
"url" : " git+https://github.com/stacksjs/stacks.git" ,
13
- "directory" : " ./stacks "
13
+ "directory" : " ./storage/framework "
14
14
},
15
15
"bugs" : {
16
16
"url" : " https://github.com/stacksjs/stacks/issues"
You can’t perform that action at this time.
0 commit comments