Skip to content

Commit

Permalink
Removed a redundant package.
Browse files Browse the repository at this point in the history
  • Loading branch information
benthepoet authored and devongovett committed Sep 24, 2018
1 parent a588ea8 commit 71358f4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -88,7 +88,6 @@
"cross-env": "^5.1.1",
"elm": "^0.19.0",
"eslint": "^4.13.0",
"find-elm-dependencies": "^2.0.0",
"glslify-bundle": "^5.0.0",
"glslify-deps": "^1.3.0",
"graphql": "^0.11.7",
Expand Down
11 changes: 3 additions & 8 deletions src/assets/ElmAsset.js
Expand Up @@ -11,21 +11,16 @@ class ElmAsset extends Asset {
}

async collectDependencies() {
const {findAllDependencies} = await localRequire(
'find-elm-dependencies',
this.name
);

await this.getConfig(['elm.json'], {load: false});
const dependencies = await findAllDependencies(this.name);
const dependencies = await this.elm.findAllDependencies(this.name);

dependencies.forEach(dependency => {
this.addDependency(dependency, {includedInParent: true});
});
}

async parse() {
const elm = await localRequire('node-elm-compiler', this.name);
this.elm = await localRequire('node-elm-compiler', this.name);

const options = {
cwd: process.cwd()
Expand All @@ -39,7 +34,7 @@ class ElmAsset extends Asset {
options.optimize = true;
}

const compiled = await elm.compileToString(this.name, options);
const compiled = await this.elm.compileToString(this.name, options);
this.contents = compiled.toString();
}

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -2702,9 +2702,9 @@ elliptic@^6.0.0:
minimalistic-assert "^1.0.0"
minimalistic-crypto-utils "^1.0.0"

elm@^0.19.0-bugfix2:
version "0.19.0-bugfix2"
resolved "https://registry.yarnpkg.com/elm/-/elm-0.19.0-bugfix2.tgz#b2b7ad4dbeb89edf997759330b3694f419f9f1b3"
elm@^0.19.0:
version "0.19.0"
resolved "https://registry.yarnpkg.com/elm/-/elm-0.19.0.tgz#c6ad86afea9e971424ebe75e36c9d03412a787fa"
dependencies:
binwrap "0.1.4"

Expand Down Expand Up @@ -3091,7 +3091,7 @@ find-cache-dir@^1.0.0:
make-dir "^1.0.0"
pkg-dir "^2.0.0"

find-elm-dependencies@2.0.0, find-elm-dependencies@^2.0.0:
find-elm-dependencies@2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/find-elm-dependencies/-/find-elm-dependencies-2.0.0.tgz#435aa05a6544a0ecf54c5d1ac85cc1ca1044e4e4"
dependencies:
Expand Down

0 comments on commit 71358f4

Please sign in to comment.