Skip to content

Commit be0df3e

Browse files
committed
Update dependencies and dist files
1 parent 3434b1b commit be0df3e

9 files changed

+382
-353
lines changed

cli/asc.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ exports.main = function main(argv, options, callback) {
376376
*/
377377
if (sourceText == null) {
378378
if (args.traceResolution) {
379-
stderr.write("Looking for " + sourcePath + " imported by " + dependee + " " + EOL);
379+
stderr.write("Looking for '" + sourcePath + "' imported by '" + dependee + "'" + EOL);
380380
}
381381
paths = getPaths(path.join(baseDir, dependee));
382382
let _package = sourcePath.replace(/\~lib\/([^\/]*).*/, "$1");
@@ -412,7 +412,7 @@ exports.main = function main(argv, options, callback) {
412412
return path.join(_path, first, ascMain, second);
413413
}
414414
if (args.traceResolution) {
415-
stderr.write(" in " + realPath(sourcePath));
415+
stderr.write(" in '" + realPath(sourcePath) + "'");
416416
}
417417
const plainName = sourcePath;
418418
const indexName = sourcePath + "/index";
@@ -427,7 +427,7 @@ exports.main = function main(argv, options, callback) {
427427
}
428428
if (sourceText !== null) {
429429
if (args.traceResolution) {
430-
stderr.write("\nFound at " + realPath(sourcePath) + EOL);
430+
stderr.write(EOL + " -> '" + realPath(sourcePath) + "'" + EOL);
431431
}
432432
let newPath = path.join(_path, _package);
433433
sysPath = newPath;

cli/asc.json

+19-18
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,14 @@
141141
],
142142
"type": "s"
143143
},
144+
"path": {
145+
"description": [
146+
"Adds one or multiple paths to package resolution, similar",
147+
"to node_modules. Prefers an 'ascMain' entry in a package's",
148+
"package.json and falls back to an inner 'assembly/' folder."
149+
],
150+
"type": "S"
151+
},
144152
"use": {
145153
"description": [
146154
"Aliases a global object under another name, e.g., to switch",
@@ -185,6 +193,16 @@
185193
"description": "Specifies the path to a custom transform to 'require'.",
186194
"type": "S"
187195
},
196+
"traceResolution": {
197+
"description": "Enables tracing of package resolution.",
198+
"type": "b",
199+
"default": false
200+
},
201+
"listFiles": {
202+
"description": "Lists files to be compiled and exits.",
203+
"type": "b",
204+
"default": false
205+
},
188206
"measure": {
189207
"description": "Prints measuring information on I/O and compile times.",
190208
"type": "b",
@@ -216,22 +234,5 @@
216234
"-O0z": { "value": { "optimizeLevel": 0, "shrinkLevel": 2 } },
217235
"-O1z": { "value": { "optimizeLevel": 1, "shrinkLevel": 2 } },
218236
"-O2z": { "value": { "optimizeLevel": 2, "shrinkLevel": 2 } },
219-
"-O3z": { "value": { "optimizeLevel": 3, "shrinkLevel": 2 } },
220-
"path": {
221-
"description": [
222-
"Comma separated paths to look for dependencies.",
223-
"Looks for folders with package.json that includes a 'ascMain' field",
224-
"or defaults to having an '/assembly' folder."],
225-
"type": "S"
226-
},
227-
"traceResolution": {
228-
"description": "Enable tracing of package resolution.",
229-
"type": "b",
230-
"default": false
231-
},
232-
"listFiles": {
233-
"description": "List files to be compiled and exit.",
234-
"type": "b",
235-
"default": false
236-
}
237+
"-O3z": { "value": { "optimizeLevel": 3, "shrinkLevel": 2 } }
237238
}

dist/asc.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/asc.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)