Skip to content

Commit

Permalink
Reduce npm package size
Browse files Browse the repository at this point in the history
  • Loading branch information
dmerrill6 committed Jun 3, 2020
1 parent 1f83fc2 commit ed0af79
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 275 deletions.
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/src
/tests
/node_modules
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,17 @@ When submitting a pull request, please include tests for the code you are submit

4- Send the PR. When accepted, the maintainer will publish a new version to npm using the new `dist` folder.

#### Note to maintainer

Do not publish using yarn, as it doesn't publishes all dependencies. Use `npm publish`.

### Running the test suite

1- `cd tests/test-app`
1- `yarn link`

2- `cd tests/test-app`

3- `yarn link apollo-cursor-pagination`

2- `yarn install`

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apollo-cursor-pagination",
"version": "0.7.2",
"version": "0.7.4",
"description": "Relay's Connection implementation for Apollo Server GraphQL library",
"main": "dist/index.js",
"repository": "https://github.com/Terminal-Systems/apollo-cursor-pagination",
Expand Down
272 changes: 0 additions & 272 deletions tests/test-app/init.js

This file was deleted.

2 changes: 1 addition & 1 deletion tests/test-app/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ apollo-cache-control@^0.2.5:
graphql-extensions "^0.2.1"

"apollo-cursor-pagination@file:../..":
version "0.5.1"
version "0.7.4"
dependencies:
base-64 "^0.1.0"

Expand Down

0 comments on commit ed0af79

Please sign in to comment.