Comparing version 5.0.0 to 5.1.0
@@ -5,2 +5,13 @@ import {JsonObject} from 'type-fest'; | ||
/** | ||
The indentation to use for new files. | ||
Accepts `'\t'` for tab indentation or a number of spaces. | ||
If the file already exists, the existing indentation will be used. | ||
Default: Auto-detected or `'\t'` | ||
*/ | ||
readonly indent?: string | number; | ||
/** | ||
Remove empty `dependencies`, `devDependencies`, `optionalDependencies` and `peerDependencies` objects. | ||
@@ -7,0 +18,0 @@ |
{ | ||
"name": "write-pkg", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "Write a package.json file", | ||
@@ -36,12 +36,12 @@ "license": "MIT", | ||
"sort-keys": "^5.0.0", | ||
"type-fest": "^2.0.0", | ||
"type-fest": "^2.12.1", | ||
"write-json-file": "^5.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "^3.15.0", | ||
"read-pkg": "^7.0.0", | ||
"ava": "^4.1.0", | ||
"read-pkg": "^7.1.0", | ||
"tempfile": "^4.0.0", | ||
"tsd": "^0.17.0", | ||
"xo": "^0.44.0" | ||
"tsd": "^0.19.1", | ||
"xo": "^0.48.0" | ||
} | ||
} |
@@ -9,5 +9,5 @@ # write-pkg | ||
```sh | ||
npm install write-pkg | ||
``` | ||
$ npm install write-pkg | ||
``` | ||
@@ -46,2 +46,13 @@ ## Usage | ||
##### indent | ||
Type: `string | number`\ | ||
Default: Auto-detected or `'\t'` | ||
The indentation to use for new files. | ||
Accepts `'\t'` for tab indentation or a number of spaces. | ||
If the file already exists, the existing indentation will be used. | ||
##### normalize | ||
@@ -60,3 +71,2 @@ | ||
## Related | ||
@@ -63,0 +73,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
7177
97
74
Updatedtype-fest@^2.12.1