Skip to content

Only publish required files - #45

Merged
medikoo merged 3 commits into
Gozala:masterfrom
willfarrell:patch-1
Jan 5, 2021
Merged

medikoo merged 3 commits into
Gozala:masterfrom
willfarrell:patch-1

Conversation

@willfarrell

Copy link
Copy Markdown
Contributor

See https://docs.npmjs.com/cli/v6/configuring-npm/package-json#files for details. Every little bit to improve cold start times.

@willfarrell willfarrell mentioned this pull request Jan 1, 2021
63 tasks done

@medikoo medikoo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@willfarrell great thanks for that.

Still, we'd prefer to go with .npmignore. From my experience using files can lead to errors (e.g. one may forget to add file to files while adding file to the package), and currently we do not have automated validation of npm packaging prior deployment, so such error if happens is not easily discoverable.

@willfarrell

Copy link
Copy Markdown
Contributor Author

No problem, I've updated to .npmignore.

PS there might be value in updating the license file to match LICENSE (a whitelisted value) and more likely to be caught by license scanners.

@medikoo medikoo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@willfarrell thanks for update! Please see my comments

PS there might be value in updating the license file to match LICENSE

It was just addressed with #47

Comment thread .npmignore Outdated
@@ -0,0 +1,4 @@
.travis.yml
History.md
Readme.md

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is unconditionally included in npm package, let's remove it from here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, although I it may need to be renamed to README.md. Like me to take care fo that?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's good idea, thanks!

Comment thread .npmignore Outdated
.travis.yml
History.md
Readme.md
test No newline at end of file

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's ensure EOL at EOF

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I"ll make it so

@medikoo medikoo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@medikoo
medikoo merged commit 76e7e69 into Gozala:master Jan 5, 2021
@willfarrell
willfarrell deleted the patch-1 branch January 5, 2021 20:10
@G-Rath

G-Rath commented Feb 13, 2021

Copy link
Copy Markdown

@medikoo would it be possible to publish a new version to release these and other changes?

The current version of querystring includes a number of tmp files as well as what's covered by .npmignore:

./querystring/.History.md.un~
./querystring/.package.json.un~
./querystring/.Readme.md.un~
./querystring/.travis.yml
./querystring/decode.js
./querystring/encode.js
./querystring/index.js
./querystring/package.json
./querystring/test/.index.js.un~
./querystring/test/common-index.js
./querystring/test/index.js
./querystring/test/tap-index.js

@medikoo

medikoo commented Feb 15, 2021

Copy link
Copy Markdown
Collaborator

@G-Rath just published v0.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants