Skip to content

Commit a879e6a

Browse files
committed
include deps
1 parent 3d4201c commit a879e6a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
BUILD_DIR=${CURDIR}/build
22

3+
# delete:
4+
# 1. ./build directory created by @sveltejs/adapter-node
5+
# 2. app ./node_modules
36
clean:
4-
rm -rf ./node_modules
57
rm -rf ./build
8+
rm -rf ./node_modules
69

710
install:
811
npm install
912

13+
# build @sveltejs/adapter-node app with prod deps: https://svelte.dev/docs/kit/adapter-node#Deploying
1014
build:
1115
npm run build
12-
cp ./package.json $(BUILD_DIR)
1316
cp ./run.sh $(BUILD_DIR)
17+
cp ./package*.json $(BUILD_DIR)
18+
cd $(BUILD_DIR) && npm ci --omit dev
1419

1520
build-SvelteKitSsrFunction: clean install build
1621
cp -r $(BUILD_DIR)/. $(ARTIFACTS_DIR)

0 commit comments

Comments
 (0)