Skip to content

Commit

Permalink
fix: do not remove publishConfig in package.json (#1069)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClarkXia authored May 15, 2023
1 parent f60af70 commit 4b85223
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/generate-project/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# `@iceworks/generate-project`

## 2.0.4

- [fix] do not remove publishConfig in package.json

## 2.0.3

- [fix] remove unnecessary package.json format
Expand Down
2 changes: 1 addition & 1 deletion packages/generate-project/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@iceworks/generate-project",
"version": "2.0.3",
"version": "2.0.4",
"description": "Generator project",
"files": [
"lib/"
Expand Down
1 change: 0 additions & 1 deletion packages/generate-project/src/formatPkgJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export default async function formatPkgJson(projectDir: string) {

function deleteFields(pkgJsonContent: Record<string, any>) {
delete pkgJsonContent.files;
delete pkgJsonContent.publishConfig;

return pkgJsonContent;
}

0 comments on commit 4b85223

Please sign in to comment.