Add a "prepublish" script to ensure we do a build as part of publish #40

merged 12 commits into from Feb 16, 2017


None yet

1 participant

wincent commented Feb 16, 2017

No description provided.

wincent added some commits Feb 15, 2017
@wincent wincent types: add "prepublish" script to ensure we do a build as part of pub…

Eventually we will want to do Travis-powered publishes, but while we're
getting everything sorted out want to do a few manual ones. This commit
ensures we do a build as part of every publish. Some hoop-jumping is
required because we only want to run as a result of `npm publish` and
not `npm install`.
@wincent wincent types: Bump to v0.0.2 so that we can do a test release
Let's verify that the new "prepublish" script is working.
@wincent wincent Tweak distributed files
Explicit distribute everything in "dist/" and exclude everything else.
@wincent wincent type: Bump to v0.0.3 so I can do another test release e170282
@wincent wincent types: Correct path to "main" file
This allows `require` of the module to work, although it returns a
useless empty module (by design, this package is only a vehicle for
@wincent wincent types: Explicitly distribute Flow files 015f8af
@wincent wincent Remove unnecessary bundling of package.json inside dist dir 4dcf2e3
@wincent wincent types: bump version again (to v0.0.4) to do another test release 7dc9772
@wincent wincent types: Use explicit path names in files list
Trying to get flow file included in the published package.
@wincent wincent types: bump version to v0.0.5 so that I can do another test publish 60fafa3
@wincent wincent types: Don't let .gitignore suppress .flow files
I think NPM is not packaging the .flow file here because it would be
.gitignore'd. This is confusing, because it *is* packaging the .js file
(which is similarly .gitignore'd).

NPM will defer to an .npmignore though, in the presence of a .gitignore,
so I think this might be the fix to the missing file in the package.
@wincent wincent types: bump version to v0.0.6 (another test publish) 79b7e7f
wincent commented Feb 16, 2017

Ugh. Sorry for the clown-townery as I tried to figure all that out.

@wincent wincent merged commit 4dca3ea into graphql:master Feb 16, 2017

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
@wincent wincent deleted the wincent:glh/add-prepublish branch Feb 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment