From 7f8bdaf5ba29d6a0cf6b8384110e166d8d27c3ae Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Wed, 10 Apr 2024 11:31:39 +0200 Subject: [PATCH] workaround npm oddity --- .github/workflows/build.yml | 2 +- ezshare-frontend/.npmignore | 1 + package.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 ezshare-frontend/.npmignore diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8964155..87e3e31 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -62,7 +62,7 @@ jobs: ezshare-win.zip ezshare-macos.zip ezshare-linux.zip - + - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') diff --git a/ezshare-frontend/.npmignore b/ezshare-frontend/.npmignore new file mode 100644 index 0000000..c1a03e2 --- /dev/null +++ b/ezshare-frontend/.npmignore @@ -0,0 +1 @@ +this_file_is_needed_to_publish_gitignored_dist_folder diff --git a/package.json b/package.json index c88bed4..2244e44 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "scripts": { "test": "exit 0", "build": "cd ezshare-frontend && npm run build", - "prepublish": "npm run build", + "prepack": "npm run build", "start": "concurrently -k \"cd ezshare-frontend && yarn start\" \"node . --dev-mode\"" }, "files": [