Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
cadorn committed Feb 27, 2013
1 parent aa36e40 commit f2b9aff
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions plugin.js
@@ -1,4 +1,5 @@

const ASSERT = require("assert");
const PATH = require("path");
const FS = require("graceful-fs");
const SPAWN = require("child_process").spawn;
Expand Down Expand Up @@ -148,12 +149,18 @@ throw new Error("TODO: Resolve pinf-style uris (github.com/sourcemint/loader/~0.
"deploy"
], opts);
*/
var env = {
PWD: self.node.path
};
var pinf = plugin.API.PINF.forProgram(self.node.path)(self.node.path);
pinf.augmentEnv(env, {
inline: options.inline || false,
mode: options.mode || false
});
var command = API.HELPERS.makeNodeCommanFromString(self.node.summary.scripts.deploy);
return API.OS.spawnInline(command.split(" ").shift(), command.split(" ").slice(1), {
cwd: self.node.path,
env: {
PWD: self.node.path
}
cwd: env.PWD,
env: env
});
}

Expand Down

0 comments on commit f2b9aff

Please sign in to comment.