Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: 16.0.2 #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions fix.mjs
Original file line number Diff line number Diff line change
@@ -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();
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-alain-plugin-theme",
"version": "16.0.1",
"version": "16.0.2",
"description": "NG-ALAIN theme plugin",
"keywords": [
"delon",
Expand Down
Loading