Permalink
Browse files

Add a package.json

Prepend the tools dir rather than appending it, so that it pulls in this specific version of js2c (as opposed to something else that might be sitting in the path.)
  • Loading branch information...
1 parent 2c3f9f5 commit 5ccc8d265d64f3db76de8014ab63f128f4970ab7 @isaacs isaacs committed with sprsquish Mar 5, 2010
Showing with 14 additions and 1 deletion.
  1. +2 −1 SConstruct
  2. +12 −0 package.json
View
@@ -4,7 +4,8 @@ import subprocess
from os.path import join, dirname, abspath
from types import DictType, StringTypes
root_dir = dirname(File('SConstruct').rfile().abspath)
-sys.path.append(join(root_dir, 'tools'))
+# prefer these tools to anything living in the system already.
+sys.path.insert(0, join(root_dir, 'tools'))
import js2c
if ARGUMENTS.get('debug', 0):
View
@@ -0,0 +1,12 @@
+{ "name" : "libxmljs"
+, "author" : "Jeff Smick <sprsquish@gmail.com>"
+, "description" : "libxml bindings for v8 javascript engine"
+, "version" : "0.0.1"
+, "scripts" :
+ { "preinstall" : "make node"
+ , "preuninstall" : "make clean"
+ , "test" : "make test"
+ }
+, "main" : "./libxml"
+, "engines" : { "node" : ">=0.1.30" }
+}

0 comments on commit 5ccc8d2

Please sign in to comment.