From 7d2789640d00dd3ee05b15ea1b46fe0b2660ba6d Mon Sep 17 00:00:00 2001 From: Supan Adit Pratama Date: Wed, 30 Oct 2024 20:25:59 +0700 Subject: [PATCH] chore: scripts for easy release --- package.json | 2 +- scripts/unix/release.sh | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 scripts/unix/release.sh diff --git a/package.json b/package.json index 28546d0..a9188a9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@aditama-labs/nest-autocrud", - "version": "0.0.19", + "version": "0.0.21", "description": "NestJS Auto CRUD Library", "author": "Supan Adit Pratama", "license": "MIT", diff --git a/scripts/unix/release.sh b/scripts/unix/release.sh new file mode 100644 index 0000000..a55e464 --- /dev/null +++ b/scripts/unix/release.sh @@ -0,0 +1,11 @@ +npm run build:libs + +# Copy package.json to plugins +cp package.json ./plugins +cp README.md ./plugins + +# Change working directory to plugins +cd plugins + +# Publish +npm publish \ No newline at end of file