Skip to content

Commit

Permalink
fixup entry handling (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford authored and rauchg committed Nov 22, 2018
1 parent e562b6a commit 5cbca06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ switch (args._[0]) {
process.exit(1);
}

const ncc = require("./index.js")(require.resolve(args._[1] || "."), {
const ncc = require("./index.js")(require.resolve(resolve(args._[1] || ".")), {
minify: !args["--no-minify"],
externals: args["--external"]
});

ncc.then(({ code, assets }) => {
const outDir = args["--out"] || resolve(dist);
const outDir = args["--out"] || resolve("dist");
const fs = require("fs");
const mkdirp = require("mkdirp");
mkdirp.sync(outDir);
Expand Down

0 comments on commit 5cbca06

Please sign in to comment.