Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Package: Explicitly list dist/ in files to include it when publishing #224

Closed
wants to merge 1 commit into from

Conversation

jzaefferer
Copy link
Contributor

Fixes #223

The dist/ folder is listed in .gitignore, which npm applies for npm-publish. Adding a files array to package.json overrides that. It also removes everything else except LICENSE.txt, README.md and package.json, which should be fine.

Tested with npm install @jzaefferer/pepjs@0.3.3-pre

@arschmitz
Copy link
Contributor

@jzaefferer this would preclude other projects from using the individual files and force use of the built version. There has been talk of hammer.js using individual parts of pep ( like the touch-action handling )

@jzaefferer
Copy link
Contributor Author

I can add "src" to the list. Do we also want pointerevents.js? Why is that not in src/?

Anything else?

@scottgonzalez
Copy link
Contributor

I'd like to do a release as soon as this lands so we can get people using it.

@scottgonzalez
Copy link
Contributor

We should probably include pointerevents.js as well. I'm not sure why it's not in src/, that's a leftover from before it was PEP. I don't see any reason we couldn't move it.

The entry in .gitignore tells npm to also ignore the dist/ folder,
adding it to files overrides that. It also excludes everything else,
so we add some more useful files explicitly.

Fixes jquery-archive#223
@jzaefferer
Copy link
Contributor Author

Updated. Added source files and the samples folder.

@QuentinRoy
Copy link

What is the status on this issue?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants