Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Whitelist files in package #49

Merged
merged 2 commits into from
Jun 15, 2018
Merged

Whitelist files in package #49

merged 2 commits into from
Jun 15, 2018

Conversation

eliangcs
Copy link
Member

@eliangcs eliangcs requested a review from xavdid June 13, 2018 09:33
package.json Outdated
@@ -7,6 +7,10 @@
"author": "Bryan Helmig <bryan@zapier.com>",
"license": "UNLICENSED",
"main": "schema.js",
"files": [
"/exported-schema.json",
"/lib/**/*.js"
Copy link
Contributor

Choose a reason for hiding this comment

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

needs:

  • schema.js

also in lib/utils, 3/5 of those files are just for docs. If we're really trying to cut down on size, we'd either explicitly exclude those 3 or include the two (makeSchema and makeValidator) that we need

Copy link
Member Author

@eliangcs eliangcs Jun 14, 2018

Choose a reason for hiding this comment

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

Fixed in 58a8cb6.

I tested on my local. We actually need lib/utils/exportSchema.js and lib/utils/links.js because they're imported internally somewhere in zapier-platform-schema. By this rationale, I think it's better just to include all the files in /lib as other modules in zapier-platform-schema may want to use them.

@eliangcs
Copy link
Member Author

@xavdid updated the PR. Thanks!

@eliangcs eliangcs merged commit b9b6d82 into master Jun 15, 2018
@eliangcs eliangcs deleted the whitelist-files-in-package branch June 15, 2018 04:31
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.

2 participants