From 0663c6ca93c446c7900e6d21be7848aa9f3b5120 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Wed, 21 Sep 2022 11:24:54 +0100 Subject: [PATCH] path changes --- package.json | 4 ++-- scripts/deploy-s3.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 90b356ab..8d7b0eb1 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,8 @@ "lint:md": "markdownlint './**/*.{md,markdown}' --ignore './{node_modules,public,.cache,.git,coverage}/**/*'", "format": "prettier --ignore-path .gitignore --write '**/*.{js,jsx,ts,tsx,md,json,css}'", "tsc": "tsc --noEmit", - "deploy": "bash ./scripts/deploy-s3.sh", - "new": "ts-node ./scripts/new.ts" + "deploy": "bash scripts/deploy-s3.sh", + "new": "ts-node scripts/new.ts" }, "browserslist": [ ">0.2%", diff --git a/scripts/deploy-s3.sh b/scripts/deploy-s3.sh index e5f3b864..c755c793 100755 --- a/scripts/deploy-s3.sh +++ b/scripts/deploy-s3.sh @@ -11,7 +11,7 @@ SITEMAP_URL="https%3A%2F%2Fkremalicious.com%2Fsitemap.xml" set -e; function s3sync { - aws s3 sync public/. s3://"$1" \ + aws s3 sync ./public s3://"$1" \ --include "*" \ --exclude "*.html" \ --exclude "sw.js" \ @@ -28,7 +28,7 @@ function s3sync { --delete \ --acl public-read - aws s3 sync public/. s3://"$1" \ + aws s3 sync ./public s3://"$1" \ --exclude "*" \ --include "*.html" \ --include "sw.js" \