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",