From eeece3509859d7e1b5ca7a18eb9269a8dca2bf9e Mon Sep 17 00:00:00 2001 From: Chomp Date: Sun, 28 Aug 2022 15:18:02 +0100 Subject: [PATCH] Update zip script --- TypeScript/1LogToConsole/package.json | 6 +++--- TypeScript/2EditDatabase/package.json | 6 +++--- TypeScript/3GetSptConfigFile/package.json | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/TypeScript/1LogToConsole/package.json b/TypeScript/1LogToConsole/package.json index c5e6930..7c52de5 100644 --- a/TypeScript/1LogToConsole/package.json +++ b/TypeScript/1LogToConsole/package.json @@ -7,10 +7,10 @@ "akiVersion": "3.2.2", "scripts": { "setup:environment": "npm i", - "build:unzipped": "copyfiles -e \"./node_modules/**/*.*\" -e \"./dist/**/*.*\" -e \"./package-lock.json\" -e \"./tsconfig.json\" -e \"./README.txt\" -e \"./mod.code-workspace\" \"./**/*.*\" ./dist", - "zip:files": "cd dist/ && bestzip ../mod.zip *", + "build:unzipped": "copyfiles -e \"./node_modules/**/*.*\" -e \"./types/**/*.*\" -e \"./%npm_package_name%-%npm_package_version%/**/*.*\" -e \"./package-lock.json\" -e \"./tsconfig.json\" -e \"./README.txt\" -e \"./mod.code-workspace\" \"./**/*.*\" ./%npm_package_name%-%npm_package_version%", + "zip:files": "bestzip %npm_package_name%-%npm_package_version%.zip %npm_package_name%-%npm_package_version%", "build:zip": "npm run clean:environment && npm run build:unzipped && npm run zip:files", - "clean:environment": "node -e \"require('fs').rm('mod.zip', ()=>{})\" && node -e \"require('fs').rmdir('./dist/',{recursive:true},()=>{})\"" + "clean:environment": "node -e \"require('fs').rm('%npm_package_name%-%npm_package_version%.zip', ()=>{})\" && node -e \"require('fs').rmdir('./dist/',{recursive:true},()=>{})\"" }, "devDependencies": { "@types/node": "^14.15.3", diff --git a/TypeScript/2EditDatabase/package.json b/TypeScript/2EditDatabase/package.json index b8a7ad1..79ea9d7 100644 --- a/TypeScript/2EditDatabase/package.json +++ b/TypeScript/2EditDatabase/package.json @@ -7,10 +7,10 @@ "akiVersion": "3.2.2", "scripts": { "setup:environment": "npm i", - "build:unzipped": "copyfiles -e \"./node_modules/**/*.*\" -e \"./dist/**/*.*\" -e \"./package-lock.json\" -e \"./tsconfig.json\" -e \"./README.txt\" -e \"./mod.code-workspace\" \"./**/*.*\" ./dist", - "zip:files": "cd dist/ && bestzip ../mod.zip *", + "build:unzipped": "copyfiles -e \"./node_modules/**/*.*\" -e \"./types/**/*.*\" -e \"./%npm_package_name%-%npm_package_version%/**/*.*\" -e \"./package-lock.json\" -e \"./tsconfig.json\" -e \"./README.txt\" -e \"./mod.code-workspace\" \"./**/*.*\" ./%npm_package_name%-%npm_package_version%", + "zip:files": "bestzip %npm_package_name%-%npm_package_version%.zip %npm_package_name%-%npm_package_version%", "build:zip": "npm run clean:environment && npm run build:unzipped && npm run zip:files", - "clean:environment": "node -e \"require('fs').rm('mod.zip', ()=>{})\" && node -e \"require('fs').rmdir('./dist/',{recursive:true},()=>{})\"" + "clean:environment": "node -e \"require('fs').rm('%npm_package_name%-%npm_package_version%.zip', ()=>{})\" && node -e \"require('fs').rmdir('./dist/',{recursive:true},()=>{})\"" }, "devDependencies": { "@types/node": "^14.15.3", diff --git a/TypeScript/3GetSptConfigFile/package.json b/TypeScript/3GetSptConfigFile/package.json index fe6575e..b342030 100644 --- a/TypeScript/3GetSptConfigFile/package.json +++ b/TypeScript/3GetSptConfigFile/package.json @@ -7,10 +7,10 @@ "akiVersion": "3.2.2", "scripts": { "setup:environment": "npm i", - "build:unzipped": "copyfiles -e \"./node_modules/**/*.*\" -e \"./dist/**/*.*\" -e \"./package-lock.json\" -e \"./tsconfig.json\" -e \"./README.txt\" -e \"./mod.code-workspace\" \"./**/*.*\" ./dist", - "zip:files": "cd dist/ && bestzip ../mod.zip *", + "build:unzipped": "copyfiles -e \"./node_modules/**/*.*\" -e \"./types/**/*.*\" -e \"./%npm_package_name%-%npm_package_version%/**/*.*\" -e \"./package-lock.json\" -e \"./tsconfig.json\" -e \"./README.txt\" -e \"./mod.code-workspace\" \"./**/*.*\" ./%npm_package_name%-%npm_package_version%", + "zip:files": "bestzip %npm_package_name%-%npm_package_version%.zip %npm_package_name%-%npm_package_version%", "build:zip": "npm run clean:environment && npm run build:unzipped && npm run zip:files", - "clean:environment": "node -e \"require('fs').rm('mod.zip', ()=>{})\" && node -e \"require('fs').rmdir('./dist/',{recursive:true},()=>{})\"" + "clean:environment": "node -e \"require('fs').rm('%npm_package_name%-%npm_package_version%.zip', ()=>{})\" && node -e \"require('fs').rmdir('./dist/',{recursive:true},()=>{})\"" }, "devDependencies": { "@types/node": "^14.15.3",