From b7cbd2a431463cd8352e684bc28d9857e36c5eb7 Mon Sep 17 00:00:00 2001 From: Marshall Polaris Date: Fri, 24 Jun 2022 22:44:41 -0700 Subject: [PATCH] More robust functions deploy script --- functions/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/package.json b/functions/package.json index aca3dcf4..45ddcac2 100644 --- a/functions/package.json +++ b/functions/package.json @@ -5,7 +5,7 @@ "firestore": "dev-mantic-markets.appspot.com" }, "scripts": { - "build": "yarn compile && rm -r dist && mkdir -p dist/functions && cp -R ../common/lib dist/common && cp -R lib/src dist/functions/src && cp ../yarn.lock dist && cp package.json dist", + "build": "yarn compile && rm -rf dist && mkdir -p dist/functions && cp -R ../common/lib dist/common && cp -R lib/src dist/functions/src && cp ../yarn.lock dist && cp package.json dist", "compile": "tsc -b", "watch": "tsc -w", "shell": "yarn build && firebase functions:shell",