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

Commit

Permalink
A test that limits the "files" array with .npmignore
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jan 5, 2011
1 parent f24f4d0 commit bc23a07
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/packages/files-array-npmignore/.npmignore
@@ -0,0 +1 @@
*/bar
1 change: 1 addition & 0 deletions test/packages/files-array-npmignore/foo/bar
@@ -0,0 +1 @@
bar
Empty file.
4 changes: 4 additions & 0 deletions test/packages/files-array-npmignore/package.json
@@ -0,0 +1,4 @@
{ "name" : "files-array-npmignore"
, "version" : "1.2.3"
, "files" : ["foo", "test.sh"]
, "scripts" : {"test":"./test.sh"}}
6 changes: 6 additions & 0 deletions test/packages/files-array-npmignore/test.sh
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

set -x
set -e

[ -f ./foo/baz ] && ! [ -f ./foo/bar ]

0 comments on commit bc23a07

Please sign in to comment.