From bbff7403fbf46f9ad92240ac213df8d30ef31b64 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 Sep 2018 02:56:13 +0200 Subject: update packages --- node_modules/write-pkg/readme.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'node_modules/write-pkg/readme.md') diff --git a/node_modules/write-pkg/readme.md b/node_modules/write-pkg/readme.md index a10a8b6d9..ad3ed1cd5 100644 --- a/node_modules/write-pkg/readme.md +++ b/node_modules/write-pkg/readme.md @@ -34,11 +34,11 @@ writePkg(path.join('unicorn', 'package.json'), {foo: true}).then(() => { ## API -### writePkg([path], data) +### writePkg([path], data, [options]) Returns a `Promise`. -### writePkg.sync([path], data) +### writePkg.sync([path], data, [options]) #### path @@ -47,6 +47,16 @@ Default: `process.cwd()` Path to where the `package.json` file should be written or its directory. +#### options + +Type: `Object` + +##### normalize + +Type: `boolean`
+Default: `true` + +Remove empty `dependencies`, `devDependencies`, `optionalDependencies` and `peerDependencies` objects. ## Related -- cgit v1.2.3