Skip to content

Commit

Permalink
Define / use Npm dependencies for jade, StringScanner
Browse files Browse the repository at this point in the history
This makes the package usable with plain Meteor if installed with
Meteorite 0.6.0 or newer.
  • Loading branch information
kynan committed Sep 22, 2013
1 parent ce6332a commit 2098029
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.js
Expand Up @@ -8,5 +8,6 @@ Package._transitional_registerBuildPlugin({
sources: [
"plugin/html_scanner.js",
"plugin/compile-jade.js"
]
],
npmDependencies: {"jade": "0.27.7", "StringScanner": "0.0.3"}
});
4 changes: 2 additions & 2 deletions plugin/compile-jade.js
@@ -1,7 +1,7 @@
var fs = Npm.require('fs');
var path = Npm.require('path');
var jade = Npm.require(path.join(process.env.PACKAGE_DIRS, 'jade-handlebars', 'jade'));
var StringScanner = Npm.require(path.join(process.env.PACKAGE_DIRS, 'jade-handlebars', 'cjs-string-scanner', 'lib', "StringScanner"));
var jade = Npm.require('jade');
var StringScanner = Npm.require('StringScanner');

function jsonParser(json) {
// Number fo indentation
Expand Down

0 comments on commit 2098029

Please sign in to comment.