Skip to content

Commit ff01af5

Browse files
author
Willem Wyndham
committed
Merge remote-tracking branch 'AssemblyScript/issue-1404' into issue-1404
2 parents 3e1ba4d + 8821f7f commit ff01af5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/asc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ exports.main = function main(argv, options, callback) {
274274
}
275275

276276
// Set up base directory
277-
const baseDir = opts.baseDir || ".";
277+
const baseDir = path.normalize(opts.baseDir || ".");
278278

279279
// Load additional options from asconfig.json
280280
let asconfigPath = optionsUtil.resolvePath(opts.config || "asconfig.json", baseDir);
@@ -470,7 +470,7 @@ exports.main = function main(argv, options, callback) {
470470
let customLibDirs = [];
471471
if (opts.lib) {
472472
let lib = opts.lib;
473-
if (typeof lib === "string") lib = lib.split(/\s*,\s*/);
473+
if (typeof lib === "string") lib = lib.split(",");
474474
customLibDirs.push(...lib.map(p => p.trim()));
475475
customLibDirs = unique(customLibDirs); // `lib` and `customLibDirs` may include duplicates
476476
for (let i = 0, k = customLibDirs.length; i < k; ++i) { // custom

0 commit comments

Comments
 (0)