Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sindresorhus/np
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: eafd3a0cda405c9471a1c41e5aa67132524c2570
Choose a base ref
...
head repository: sindresorhus/np
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c1135391b64c64d91056bb947fb4eeca7d4f68e9
Choose a head ref

Commits on Dec 15, 2018

  1. Require Node.js 8

    sindresorhus committed Dec 15, 2018
    Copy the full SHA
    223ba6b View commit details

Commits on Dec 20, 2018

  1. Copy the full SHA
    cec8e00 View commit details

Commits on Jan 3, 2019

  1. Remove npm version check (#315)

    sonicdoe authored and sindresorhus committed Jan 3, 2019
    Copy the full SHA
    08a8066 View commit details
  2. Use $ npm ci if there is a lockfile (#310)

    Fixes #285 
    
    
    Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
    yaodingyd and sindresorhus committed Jan 3, 2019
    Copy the full SHA
    e60f8f4 View commit details
  3. Default to not publishing scoped packages publicly (#313)

    Co-authored-by: Mårten Persson <marten.persson@hdsydsvenskan.se>
    2 people authored and sindresorhus committed Jan 3, 2019
    Copy the full SHA
    4ffe2a7 View commit details

Commits on Jan 11, 2019

  1. Copy the full SHA
    f041588 View commit details

Commits on Jan 12, 2019

  1. Copy the full SHA
    535e190 View commit details
  2. Handle no previous Git tags (#322)

    Fixes #316
    itaisteinherz authored and sindresorhus committed Jan 12, 2019
    Copy the full SHA
    966d08d View commit details
  3. Copy the full SHA
    305ae9c View commit details

Commits on Jan 13, 2019

  1. Copy the full SHA
    1db6269 View commit details
  2. Copy the full SHA
    ecfa930 View commit details
  3. Copy the full SHA
    ba5723c View commit details

Commits on Jan 14, 2019

  1. Copy the full SHA
    bb2bbb7 View commit details
  2. Copy the full SHA
    71d7b2e View commit details
  3. Copy the full SHA
    b3692af View commit details
  4. Copy the full SHA
    166763b View commit details
  5. Reorganize filenames

    sindresorhus committed Jan 14, 2019
    Copy the full SHA
    d63feed View commit details

Commits on Jan 22, 2019

  1. Fix throws on yarn test with no test script (#336)

    Fixes #275
    dflupu authored and sindresorhus committed Jan 22, 2019
    Copy the full SHA
    3c4cca0 View commit details
  2. Fix readme typo (#332)

    fregante authored and sindresorhus committed Jan 22, 2019
    Copy the full SHA
    b8814b6 View commit details
  3. Copy the full SHA
    304030e View commit details
  4. Bump dependencies

    sindresorhus committed Jan 22, 2019
    Copy the full SHA
    785c0d9 View commit details
  5. 4.0.0

    sindresorhus committed Jan 22, 2019
    Copy the full SHA
    7f98bef View commit details
  6. Copy the full SHA
    0d335dd View commit details
  7. Copy the full SHA
    94e31f3 View commit details
  8. 4.0.1

    sindresorhus committed Jan 22, 2019
    Copy the full SHA
    97f017a View commit details

Commits on Jan 24, 2019

  1. Vendor new-github-release-url

    Fixes #340
    sindresorhus committed Jan 24, 2019
    Copy the full SHA
    4b43c2f View commit details
  2. 4.0.2

    sindresorhus committed Jan 24, 2019
    Copy the full SHA
    acb2ea4 View commit details

Commits on Jan 27, 2019

  1. Copy the full SHA
    508dec2 View commit details

Commits on Feb 18, 2019

  1. Copy the full SHA
    97922b1 View commit details
  2. Add Prerequisite section to the readme

    Closes #345
    sindresorhus committed Feb 18, 2019
    Copy the full SHA
    37188eb View commit details

Commits on Feb 21, 2019

  1. 1
    Copy the full SHA
    9cd374a View commit details
  2. Copy the full SHA
    6df47b9 View commit details

Commits on Feb 22, 2019

  1. Copy the full SHA
    d10ffcf View commit details

Commits on Feb 27, 2019

  1. Copy the full SHA
    cc56c0c View commit details

Commits on Mar 15, 2019

  1. Copy the full SHA
    72ebf7d View commit details
  2. Fix name check for private registries (#356)

    This fixes the name check when publishing to a private registry by skipping it.
    
    Fixes #350
    Fixes #317
    Closes #318
    itaisteinherz authored and sindresorhus committed Mar 15, 2019
    Copy the full SHA
    e8a3a7d View commit details
  3. Add issue and PR templates (#353)

    Fixes #352
    
    Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
    itaisteinherz and sindresorhus committed Mar 15, 2019
    Copy the full SHA
    70fd0c1 View commit details

Commits on Mar 16, 2019

  1. Copy the full SHA
    537aa8e View commit details

Commits on Mar 21, 2019

  1. Copy the full SHA
    a880f84 View commit details

Commits on Mar 23, 2019

  1. Copy the full SHA
    3c436cf View commit details
  2. Copy the full SHA
    a02e169 View commit details

Commits on Mar 31, 2019

  1. Copy the full SHA
    c7d4cd0 View commit details
  2. Support setting flags globally and locally using cosmiconfig (#354)

    Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
    itaisteinherz and sindresorhus committed Mar 31, 2019
    Copy the full SHA
    9dac7aa View commit details

Commits on Apr 6, 2019

  1. Copy the full SHA
    45cea18 View commit details

Commits on Apr 16, 2019

  1. Copy the full SHA
    ce7e550 View commit details

Commits on Apr 18, 2019

  1. Copy the full SHA
    fed7766 View commit details
  2. Copy the full SHA
    3601af5 View commit details
  3. Update dependencies

    sindresorhus committed Apr 18, 2019
    Copy the full SHA
    e7b9426 View commit details
  4. 5.0.0

    sindresorhus committed Apr 18, 2019
    Copy the full SHA
    3727b22 View commit details

Commits on Apr 21, 2019

  1. Copy the full SHA
    380e4fa View commit details
Showing with 3,396 additions and 899 deletions.
  1. +1 −2 .gitattributes
  2. +32 −0 .github/ISSUE_TEMPLATE/bug_report.md
  3. +22 −0 .github/ISSUE_TEMPLATE/feature_request.md
  4. +9 −0 .github/pull_request_template.md
  5. +24 −0 .github/workflows/main.yml
  6. +0 −4 .travis.yml
  7. +0 −101 cli.js
  8. +0 −149 index.js
  9. +0 −38 lib/git.js
  10. +0 −114 lib/prerequisite.js
  11. +0 −57 lib/publish.js
  12. +0 −185 lib/ui.js
  13. +0 −46 lib/util.js
  14. +0 −37 lib/version.js
  15. BIN { → media}/private-packages.png
  16. BIN { → media}/screenshot-ui.png
  17. BIN { → media}/screenshot.gif
  18. +62 −30 package.json
  19. +198 −30 readme.md
  20. +160 −0 source/cli-implementation.js
  21. +17 −0 source/cli.js
  22. +31 −0 source/config.js
  23. +27 −0 source/git-tasks.js
  24. +287 −0 source/git-util.js
  25. +306 −0 source/index.js
  26. +26 −0 source/npm/enable-2fa.js
  27. +36 −0 source/npm/handle-npm-error.js
  28. +39 −0 source/npm/publish.js
  29. +156 −0 source/npm/util.js
  30. +88 −0 source/prerequisite-tasks.js
  31. +26 −0 source/pretty-version-diff.js
  32. +24 −0 source/release-task-helper.js
  33. +303 −0 source/ui.js
  34. +123 −0 source/util.js
  35. +76 −0 source/version.js
  36. +58 −0 test/_utils.js
  37. +98 −0 test/config.js
  38. +3 −0 test/fixtures/config/homedir1/.np-config.json
  39. +3 −0 test/fixtures/config/homedir2/.np-config.js
  40. +3 −0 test/fixtures/config/homedir3/.np-config.cjs
  41. +3 −0 test/fixtures/config/homedir4/.np-config.js
  42. +3 −0 test/fixtures/config/homedir5/.np-config.mjs
  43. +3 −0 test/fixtures/config/local1/.np-config.json
  44. +3 −0 test/fixtures/config/local2/.np-config.js
  45. +3 −0 test/fixtures/config/local3/.np-config.cjs
  46. +3 −0 test/fixtures/config/local4/.np-config.js
  47. +4 −0 test/fixtures/config/local4/package.json
  48. +3 −0 test/fixtures/config/local5/.np-config.mjs
  49. +3 −0 test/fixtures/config/package.json
  50. +6 −0 test/fixtures/config/pkg-dir/package.json
  51. +9 −0 test/fixtures/files/dot-github/.github/pull_request_template.md
  52. +1 −0 test/fixtures/files/dot-github/index.js
  53. +5 −0 test/fixtures/files/dot-github/package.json
  54. +5 −0 test/fixtures/files/files-and-npmignore/package.json
  55. +1 −0 test/fixtures/files/files-and-npmignore/readme.md
  56. +1 −0 test/fixtures/files/files-and-npmignore/source/.npmignore
  57. +1 −0 test/fixtures/files/files-and-npmignore/source/bar.js
  58. +1 −0 test/fixtures/files/files-and-npmignore/source/foo.js
  59. +2 −0 test/fixtures/files/files-and-npmignore/source/index.d.ts
  60. +5 −0 test/fixtures/files/files-and-npmignore/source/index.test-d.ts
  61. +1 −0 test/fixtures/files/files-slash/index.js
  62. +5 −0 test/fixtures/files/files-slash/package.json
  63. +2 −0 test/fixtures/files/gitignore/dist/index.js
  64. +3 −0 test/fixtures/files/gitignore/gitignore
  65. +1 −0 test/fixtures/files/gitignore/index.d.ts
  66. +3 −0 test/fixtures/files/gitignore/index.js
  67. +4 −0 test/fixtures/files/gitignore/index.test-d.ts
  68. +5 −0 test/fixtures/files/gitignore/package.json
  69. +1 −0 test/fixtures/files/gitignore/readme.md
  70. +1 −0 test/fixtures/files/has-readme-and-license/index.js
  71. +1 −0 test/fixtures/files/has-readme-and-license/license.md
  72. +5 −0 test/fixtures/files/has-readme-and-license/package.json
  73. +1 −0 test/fixtures/files/has-readme-and-license/readme.md
  74. +1 −0 test/fixtures/files/main/bar.js
  75. +1 −0 test/fixtures/files/main/foo.js
  76. +6 −0 test/fixtures/files/main/package.json
  77. +2 −0 test/fixtures/files/npmignore-and-gitignore/.npmignore
  78. +2 −0 test/fixtures/files/npmignore-and-gitignore/dist/index.js
  79. +3 −0 test/fixtures/files/npmignore-and-gitignore/gitignore
  80. +4 −0 test/fixtures/files/npmignore-and-gitignore/package.json
  81. +1 −0 test/fixtures/files/npmignore-and-gitignore/readme.md
  82. +2 −0 test/fixtures/files/npmignore-and-gitignore/script/build.js
  83. +3 −0 test/fixtures/files/npmignore-and-gitignore/source/index.ts
  84. +1 −0 test/fixtures/files/npmignore/.npmignore
  85. +1 −0 test/fixtures/files/npmignore/index.d.ts
  86. +3 −0 test/fixtures/files/npmignore/index.js
  87. +4 −0 test/fixtures/files/npmignore/index.test-d.ts
  88. +4 −0 test/fixtures/files/npmignore/package.json
  89. +1 −0 test/fixtures/files/npmignore/readme.md
  90. +1 −0 test/fixtures/files/one-file/index.js
  91. +5 −0 test/fixtures/files/one-file/package.json
  92. +2 −0 test/fixtures/files/source-and-dist-dir/dist/index.js
  93. +5 −0 test/fixtures/files/source-and-dist-dir/package.json
  94. +1 −0 test/fixtures/files/source-and-dist-dir/source/bar.js
  95. +1 −0 test/fixtures/files/source-and-dist-dir/source/foo.js
  96. +5 −0 test/fixtures/files/source-dir/package.json
  97. +1 −0 test/fixtures/files/source-dir/source/bar.js
  98. +1 −0 test/fixtures/files/source-dir/source/foo.js
  99. +23 −0 test/fixtures/listr-renderer.js
  100. +2 −0 test/fixtures/readme.md
  101. +204 −0 test/git-tasks.js
  102. +51 −7 test/hyperlinks.js
  103. +89 −16 test/index.js
  104. +105 −0 test/integration.js
  105. +83 −0 test/packed-files.js
  106. +25 −0 test/prefix.js
  107. +16 −0 test/preid.js
  108. +295 −0 test/prerequisite-tasks.js
  109. +106 −83 test/version.js
3 changes: 1 addition & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
* text=auto
*.js text eol=lf
* text=auto eol=lf
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Bug report
about: Create a report to help us improve np
---

<!--- Provide a short summary of the issue in the title above -->

## Description

<!-- Write a clear and concise description of what the issue is -->

## Steps to reproduce

<!--- Let us how how we can reproduce the issue on our end -->

1.
2.
3.

## Expected behavior

<!--- Tell us what you expected to happen -->

## Environment

<!-- Mention which versions of np, Node.js, npm and Git you're using, as well as your OS and version -->

np - x.x.x
Node.js - x.x.x
npm - x.x.x
Git - x.x.x
OS - XXX x.x.x
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Feature request
about: Suggest an idea
---

<!--- Provide a short summary of the request in the title above -->

## Description

<!-- Write a clear and concise description of the feature -->

**Is the feature request related to a problem?**

<!-- Describe what the problem is (e.g. I'm always frustrated when […]) -->

## Possible implementation

<!-- If possible, let us know how you think the feature should be implemented -->

## Alternatives

<!-- Include any alternative solutions and features you've considered -->
9 changes: 9 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!--
Thanks for submitting a pull request 🙌
**Note:** Please don't create a pull request which has significant changes (i.e. adds new functionality or modifies existing one in a non-trivial way) without creating an issue first.
Try to limit the scope of your pull request and provide a general description of the changes. If this fixes an open issue, link to it in the following way: `Fixes #321`. New features and bug fixes should come with tests.
-->
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI
on:
- push
- pull_request
jobs:
test:
name: Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version:
- 19
- 18
- 16
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: git config --global user.name "Github Actions"
- run: git config --global user.email "actions@users.noreply.github.com"
- run: npm install
- run: npm test
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

101 changes: 0 additions & 101 deletions cli.js

This file was deleted.

149 changes: 0 additions & 149 deletions index.js

This file was deleted.

38 changes: 0 additions & 38 deletions lib/git.js

This file was deleted.

Loading