From 02fa798502bfd5ea8fb79c81b734767f14deb040 Mon Sep 17 00:00:00 2001 From: cipchk Date: Sun, 12 Nov 2023 21:09:04 +0800 Subject: [PATCH] release: 16.0.2 --- build.sh | 1 + fix.mjs | 11 +++++++++++ package.json | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 fix.mjs diff --git a/build.sh b/build.sh index 89dba82..94d714e 100644 --- a/build.sh +++ b/build.sh @@ -18,6 +18,7 @@ npx tsc -d cp LICENSE dist/LICENSE cp package.json dist/package.json cp README.md dist/README.md +node ./fix.mjs if [[ ${TEST} == true ]]; then cp -fr dist/* ../ng-alain/node_modules/ng-alain-plugin-theme diff --git a/fix.mjs b/fix.mjs new file mode 100644 index 0000000..0c8131d --- /dev/null +++ b/fix.mjs @@ -0,0 +1,11 @@ +import { readFileSync, writeFileSync } from "fs"; + +function main() { + const filePath = "./dist/package.json" + const content = JSON.parse(readFileSync(filePath).toString('utf8')); + delete content.scripts; + delete content.devDependencies; + writeFileSync(filePath, JSON.stringify(content, null, 2)); +} + +main(); diff --git a/package.json b/package.json index 1cd55d4..412a14a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ng-alain-plugin-theme", - "version": "16.0.1", + "version": "16.0.2", "description": "NG-ALAIN theme plugin", "keywords": [ "delon",