Skip to content

Commit 6f446ef

Browse files
committed
Update build scripts to remove package-lock.json and set package.json as a module for improved dependency management.
1 parent 5291410 commit 6f446ef

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

build-all.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ build_platform() {
133133
cp package.json output/${platform}/
134134
cd output/${platform}
135135
npm install --production --no-optional --silent
136-
rm package.json package-lock.json
136+
rm package-lock.json
137+
echo '{"type":"module"}' > package.json
137138
echo "✓ Installed dependencies"
138139

139140
# Step 5: Prune unnecessary files from node_modules

build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ echo "━━━━━━━━━━━━━━━━━━━━━━━━
100100
cp package.json output/${PLATFORM}/
101101
cd output/${PLATFORM}
102102
npm install --production --no-optional
103-
rm package.json package-lock.json
103+
rm package-lock.json
104+
echo '{"type":"module"}' > package.json
104105
echo "✓ Installed production dependencies"
105106
echo ""
106107

0 commit comments

Comments
 (0)