Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[now-client] Change npm publish to use files key #3181

Merged
merged 4 commits into from
Oct 22, 2019
Merged

Conversation

styfle
Copy link
Member

@styfle styfle commented Oct 21, 2019

  • remove .npmignore
  • use files key in package.json
  • update metadata in package.json
  • fix test harness to generate a token for each test deployment

This PR will prevent publishing tests to npm and any other unused files.

@styfle styfle requested a review from leo as a code owner October 21, 2019 22:03
@styfle styfle changed the title [now-client] Change npm publish [now-client] Change npm publish to use files key Oct 21, 2019
@kodiakhq kodiakhq bot merged commit cf65fab into canary Oct 22, 2019
@kodiakhq kodiakhq bot deleted the now-client-dist branch October 22, 2019 15:31
@codecov-io
Copy link

Codecov Report

Merging #3181 into canary will increase coverage by 0.21%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           canary    #3181      +/-   ##
==========================================
+ Coverage   13.33%   13.54%   +0.21%     
==========================================
  Files         268      268              
  Lines       10312    10335      +23     
  Branches     1211     1212       +1     
==========================================
+ Hits         1375     1400      +25     
+ Misses       8877     8873       -4     
- Partials       60       62       +2
Impacted Files Coverage Δ
src/util/dev/router.ts 82.35% <0%> (-0.34%) ⬇️
src/util/dev/server.ts 64.8% <0%> (+0.32%) ⬆️
src/util/dev/validate.ts 87.87% <0%> (+27.87%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dc9b9c2...4f3dbd3. Read the comment docs.

leo pushed a commit that referenced this pull request Oct 25, 2019
- remove `.npmignore`
- use [`files`](https://docs.npmjs.com/files/package.json#files) key in `package.json`
- update metadata in `package.json`
- fix test harness to generate a token for each test deployment

This PR will prevent publishing [tests](https://cdn.jsdelivr.net/npm/now-client@5.2.0/tests/) to npm and any other unused files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants