Skip to content

Commit 8f02942

Browse files
committed
fix: npm run build added
1 parent d1a5954 commit 8f02942

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

examples/context-editor/build.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
#!/bin/bash
22

3+
# Navigate to the project directory
4+
cd examples/context-editor
5+
6+
# Run the existing build command
7+
npm run build
8+
39
# Generate version number
410
VERSION=$(date +'%Y.%m.%d-%H%M%S')
511

612
# Ensure public directory exists
713
mkdir -p public
814

9-
# Copy files to public directory
10-
cp -R src/* public/
15+
# Copy built files to public directory
16+
# Assuming the build output is in a 'build' directory, adjust if different
17+
cp -R build/* public/
1118

1219
# Create version file
1320
echo $VERSION > public/version.txt

0 commit comments

Comments
 (0)