Skip to content
Permalink
Browse files

.gitignore compiled files, build them on prepublish

Following up on #182 (comment),
this change removes `lib/`, `xregexp-all.js`, and `bower.json` from the
repository.

It also adds a `prepublish` [script] that builds/tests the files before
publishing to npm, to ensure they are included. You can run [npm pack]
to see the `prepublish` script in action, then you can take a look at
the generated tarball with `tar tvf xregexp-3.2.0.tgz` and verify that
`lib/` and `xregexp-all.js` are still there.

[script]: https://docs.npmjs.com/misc/scripts
[npm pack]: https://docs.npmjs.com/cli/pack
  • Loading branch information
josephfrazier authored and slevithan committed Apr 26, 2017
1 parent aaf50c5 commit 4db669465727f4e20f15d84668a951be7ff218f0
@@ -1,3 +1,6 @@
lib
xregexp-all.js

# Compiled Python files
*.pyc

This file was deleted.

This file was deleted.

0 comments on commit 4db6694

Please sign in to comment.
You can’t perform that action at this time.