From 00db3100ed0178c8e578072c19e4e6fa1c1dd662 Mon Sep 17 00:00:00 2001 From: Andreas Lind Petersen Date: Sat, 7 Jan 2012 11:25:46 +0100 Subject: [PATCH] Reduced the number of gotchas when publishing a new CSSOM package: Added prepublish hook to make sure lib/index.js gets built and included when publishing the package. Added lib/index.js and /node_modules/ to .gitignore. --- .gitignore | 2 ++ package.json | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a7a5d76 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/lib/index.js +/node_modules/ diff --git a/package.json b/package.json index c9d6bb4..86c230c 100644 --- a/package.json +++ b/package.json @@ -27,5 +27,8 @@ "type": "MIT", "url": "http://creativecommons.org/licenses/MIT/" } - ] + ], + "scripts": { + "prepublish": "jake lib/index.js" + } }