node-elm-compiler
Advanced tools
Comparing version 2.1.0 to 2.2.0
'use strict'; | ||
var childProcess = require("child_process"); | ||
var spawn = require("cross-spawn"); | ||
var _ = require("lodash"); | ||
@@ -11,3 +11,4 @@ var compilerBinaryName = "elm-make"; | ||
warn: console.warn, | ||
spawn: childProcess.spawn, | ||
spawn: spawn, | ||
cwd: undefined, | ||
pathToMake: undefined, | ||
@@ -40,3 +41,3 @@ yes: undefined, | ||
var env = _.merge({LANG: 'en_US.UTF-8'}, process.env); | ||
var processOpts = {env: env, stdio: "inherit"}; | ||
var processOpts = _.merge({env: env, stdio: "inherit", cwd: options.cwd}); | ||
var pathToMake = options.pathToMake || compilerBinaryName; | ||
@@ -43,0 +44,0 @@ var verbose = options.verbose; |
{ | ||
"name": "node-elm-compiler", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "A Node.js interface to the Elm compiler binaries. Supports Elm versions 0.15 - 0.16.", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "mocha test/dependencies.js" | ||
"test": "cd test/fixtures && elm-package install --yes && cd ../.. && mocha test/*.js" | ||
}, | ||
@@ -28,2 +28,3 @@ "repository": { | ||
"dependencies": { | ||
"cross-spawn": "2.1.0", | ||
"lodash": "3.10.1" | ||
@@ -30,0 +31,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
# node-elm-compiler [![Travis build Status](https://travis-ci.org/rtfeldman/node-elm-compiler.svg?branch=master)](http://travis-ci.org/rtfeldman/node-elm-compiler) [![AppVeyor build status](https://ci.appveyor.com/api/projects/status/xv83jcomgb81i1iu/branch/master?svg=true)](https://ci.appveyor.com/project/rtfeldman/node-elm-compiler/branch/master) | ||
# node-elm-compiler [![Version](https://img.shields.io/npm/v/node-elm-compiler.svg)](https://www.npmjs.com/package/node-elm-compiler) [![Travis build Status](https://travis-ci.org/rtfeldman/node-elm-compiler.svg?branch=master)](http://travis-ci.org/rtfeldman/node-elm-compiler) [![AppVeyor build status](https://ci.appveyor.com/api/projects/status/xv83jcomgb81i1iu/branch/master?svg=true)](https://ci.appveyor.com/project/rtfeldman/node-elm-compiler/branch/master) | ||
@@ -3,0 +3,0 @@ Wraps [Elm](https://elm-lang.org) and exposes a [Node](https://nodejs.org) API to compile Elm sources. |
@@ -16,3 +16,3 @@ var assert = require("chai").assert; | ||
results, | ||
[ "ChildA.elm", "ChildB.elm", "NativeChild.js" ].map(prependFixturesDir) | ||
[ "ChildA.elm", "ChildB.elm", "Native/Child.js" ].map(prependFixturesDir) | ||
); | ||
@@ -26,3 +26,3 @@ }); | ||
results, | ||
[ "ChildA.elm", "NestedChild.elm", "ChildB.elm", "NativeChild.js" ].map(prependFixturesDir) | ||
[ "ChildA.elm", "NestedChild.elm", "ChildB.elm", "Native/Child.js" ].map(prependFixturesDir) | ||
); | ||
@@ -29,0 +29,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15320
21
244
2
4
+ Addedcross-spawn@2.1.0
+ Addedbuffer-from@1.1.2(transitive)
+ Addedconcat-stream@1.6.2(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedcross-spawn@2.1.0(transitive)
+ Addedcross-spawn-async@2.2.5(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedlru-cache@4.1.5(transitive)
+ Addedos-shim@0.1.3(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedpseudomap@1.0.2(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedspawn-sync@1.0.13(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedtypedarray@0.0.6(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedwhich@1.3.1(transitive)
+ Addedyallist@2.1.2(transitive)