clean-publish
Advanced tools
Comparing version 1.0.6 to 1.0.7
# Change Log | ||
## 1.0.2 | ||
* Remove fields from package.json | ||
* Publish after clean | ||
## 1.0.7 | ||
* Remove empty fields from package.json | ||
* Fix README | ||
## 1.0.6 | ||
* Fix regexp indexOf func | ||
* Write test | ||
* Add without-publish arguments | ||
## 1.0.5 | ||
* Fix publish | ||
## 1.0.4 | ||
* Test release | ||
## 1.0.3 | ||
@@ -13,11 +24,7 @@ * Add files and fields arguments for command | ||
## 1.0.4 | ||
* Test release | ||
## 1.0.2 | ||
* Remove fields from package.json | ||
* Publish after clean | ||
## 1.0.5 | ||
* Fix publish | ||
## 1.0.6 | ||
* Fix regexp indexOf func | ||
* Write test | ||
* Add without-publish arguments | ||
## 1.0.1 | ||
* Remove config files and copy right file to tmp directory |
@@ -69,2 +69,9 @@ #!/usr/bin/env node | ||
) | ||
for (const i in modifiedPackageJSON) { | ||
if (typeof modifiedPackageJSON[i] === 'object') { | ||
if (Object.keys(modifiedPackageJSON[i]).length === 0) { | ||
delete modifiedPackageJSON[i] | ||
} | ||
} | ||
} | ||
fse.writeJson( | ||
@@ -71,0 +78,0 @@ `./${ tmpDir }/${ packageJSON }`, |
{ | ||
"name": "clean-publish", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Clean your package before publish", | ||
@@ -25,4 +25,3 @@ "keywords": [ | ||
"yargs": "^12.0.1" | ||
}, | ||
"scripts": {} | ||
} | ||
} |
@@ -46,6 +46,5 @@ # Clean Publish | ||
`.eslintrc`, `.prettierrc`, `lint` script and `devDependecies` field was removed. | ||
`node_modules`, `.eslintrc`, `.prettierrc`, `lint` script and `devDependecies` field was removed (empty objects will also be deleted). | ||
``` | ||
node_modules | ||
src | ||
@@ -57,5 +56,2 @@ package.json | ||
"name": "author", | ||
"scripts": { | ||
}, | ||
"dependencies": {}, | ||
} | ||
@@ -62,0 +58,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16272
177
320