From 486f83a9f19be2892fd3d8b61212ade0e86004f9 Mon Sep 17 00:00:00 2001 From: "Kossi D. T. Saka" Date: Wed, 25 Jan 2023 07:24:14 +0100 Subject: [PATCH] Run the build process when a new version is created. Ignore the build artifacts --- .gitignore | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index e09a007..032eeec 100644 --- a/.gitignore +++ b/.gitignore @@ -8,9 +8,10 @@ # npm node_modules -# Don't include the compiled main.js file in the repo. +# Don't include the build artifacts in the repo. # They should be uploaded to GitHub releases instead. main.js +dist/ # Exclude sourcemaps *.map diff --git a/package.json b/package.json index 3ada219..b564dd3 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "dev": "node esbuild.config.mjs", "build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production", - "version": "node version-bump.mjs && git add manifest.json versions.json" + "version": "node version-bump.mjs && npm run build && git add manifest.json versions.json" }, "keywords": [], "author": "",