chore: upgrade version and add helper script to release in windows

This commit is contained in:
Supan Adit Pratama 2025-05-06 19:40:43 +07:00
parent f874e90850
commit d8a0623763
3 changed files with 43 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@aditama-labs/nest-autocrud",
"version": "0.5.3",
"version": "0.6.1",
"description": "NestJS Auto CRUD Library",
"author": "Supan Adit Pratama",
"license": "MIT",

View File

@ -0,0 +1,15 @@
@echo off
echo Removing the plugins directory...
rmdir /s /q ".\plugins"
if exist ".\plugins" (
echo Warning: Failed to remove the plugins directory.
)
echo Removing the dist directory...
rmdir /s /q ".\dist"
if exist ".\dist" (
echo Warning: Failed to remove the dist directory.
)
echo Done removing directories.

View File

@ -0,0 +1,27 @@
@echo off
echo Running npm run build:libs
npm run build:libs
echo Copying package.json to plugins
copy package.json .\plugins
echo Copying README.md to plugins
copy README.md .\plugins
echo Changing working directory to plugins
cd plugins
echo Publishing...
npm publish
echo Cleaning up...
cd ..
if exist ".\scripts\windows\cleaner.bat" (
call .\scripts\windows\cleaner.bat
) else (
echo Warning: Windows cleanup script not found.
)
echo Done!
pause