Skip to content

Commit

Permalink
utils: use the extracted stringify-package module (#21)
Browse files Browse the repository at this point in the history
PR-URL: #21
Credit: @dpogue
Reviewed-By: @zkat
  • Loading branch information
dpogue authored and zkat committed Jul 19, 2018
1 parent a67db56 commit a9ac871
Show file tree
Hide file tree
Showing 10 changed files with 155 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/install/save.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const moduleName = require('../utils/module-name.js')
const npm = require('../npm.js')
const parseJSON = require('../utils/parse-json.js')
const path = require('path')
const stringifyPackage = require('../utils/stringify-package')
const stringifyPackage = require('stringify-package')
const validate = require('aproba')
const without = require('lodash.without')
const writeFileAtomic = require('write-file-atomic')
Expand Down
2 changes: 1 addition & 1 deletion lib/shrinkwrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const npm = require('./npm.js')
const path = require('path')
const readPackageTree = BB.promisify(require('read-package-tree'))
const ssri = require('ssri')
const stringifyPackage = require('./utils/stringify-package')
const stringifyPackage = require('stringify-package')
const validate = require('aproba')
const writeFileAtomic = require('write-file-atomic')
const unixFormatPath = require('./utils/unix-format-path.js')
Expand Down
2 changes: 1 addition & 1 deletion lib/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const output = require('./utils/output.js')
const parseJSON = require('./utils/parse-json.js')
const path = require('path')
const semver = require('semver')
const stringifyPackage = require('./utils/stringify-package')
const stringifyPackage = require('stringify-package')
const writeFileAtomic = require('write-file-atomic')

version.usage = 'npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease | from-git]' +
Expand Down
6 changes: 6 additions & 0 deletions node_modules/stringify-package/CHANGELOG.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions node_modules/stringify-package/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 55 additions & 0 deletions node_modules/stringify-package/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
70 changes: 70 additions & 0 deletions node_modules/stringify-package/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
"sorted-object": "~2.0.1",
"sorted-union-stream": "~2.1.3",
"ssri": "^6.0.0",
"stringify-package": "^1.0.0",
"tar": "^4.4.4",
"text-table": "~0.2.0",
"tiny-relative-date": "^1.3.0",
Expand Down Expand Up @@ -259,7 +260,8 @@
"cli-columns",
"cli-table3",
"node-gyp",
"lock-verify"
"lock-verify",
"stringify-package"
],
"devDependencies": {
"deep-equal": "~1.0.1",
Expand Down

0 comments on commit a9ac871

Please sign in to comment.