mirror of
https://github.com/aditama-labs/nest-autocrud.git
synced 2025-05-22 13:14:04 +00:00
chore: upgrade version and add helper script to release in windows
This commit is contained in:
parent
f874e90850
commit
d8a0623763
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@aditama-labs/nest-autocrud",
|
"name": "@aditama-labs/nest-autocrud",
|
||||||
"version": "0.5.3",
|
"version": "0.6.1",
|
||||||
"description": "NestJS Auto CRUD Library",
|
"description": "NestJS Auto CRUD Library",
|
||||||
"author": "Supan Adit Pratama",
|
"author": "Supan Adit Pratama",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
15
scripts/windows/cleaner.bat
Normal file
15
scripts/windows/cleaner.bat
Normal 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.
|
27
scripts/windows/release.bat
Normal file
27
scripts/windows/release.bat
Normal 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
|
Loading…
x
Reference in New Issue
Block a user