nuclide-prebuilt-libs
This repo exists to build Nuclide's binary dependencies for various architectures.
Usage in application code
const ctags = require('nuclide-prebuilt-libs/ctags');
const fuzzyNative = require('nuclide-prebuilt-libs/fuzzy-native');
const keytar = require('nuclide-prebuilt-libs/keytar');
const ptyjs = require('nuclide-prebuilt-libs/pty');
Publishing nuclide-prebuilt-libs
- Bump the
version
in the sub-package you modified. (This is only for bookkeeping purposes). - Run
npm version patch
. - Push the base package version bump and release tag with
git push --follow-tags
. - Wait for travis to build and upload the release artifacts.
- To test your npm release: Run
./prepublish && npm pack
- Run
npm publish
.
Things to know about sub-packages
- They're semi independent in that you can run
npm install
inside any of them to do work on one of them. - The empty
.npmignore
in the sub-packages and the "files"
field in the root package are super important. - Be careful not to fall into https://github.com/atom/atom/blob/128f661/src/package.coffee#L486-L503.
- The
"dependencies"
in the sub-packages DO NOT get installed when someone installs nuclide-prebuilt-libs
.