Skip to content

Commit 0af1e8a

Browse files
author
Jerry Green
committed
Transform glob entries into paths
- fix #1712
1 parent 8bb0d88 commit 0af1e8a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

NOTICE

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ under the licensing terms detailed in LICENSE:
3333
* Piotr Oleś <[email protected]>
3434
* Saúl Cabrera <[email protected]>
3535
* Chance Snow <[email protected]>
36+
* Jerry Green <[email protected]>
3637
* Peter Salomonsen <[email protected]>
3738

3839
Portions of this software are derived from third-party works licensed under
@@ -59,6 +60,6 @@ the following terms:
5960
The 3-Clause BSD License (https://opensource.org/licenses/BSD-3-Clause)
6061

6162
* Arm Optimized Routines: https://github.com/ARM-software/optimized-routines
62-
63+
6364
Copyright (c) Arm Limited
6465
The MIT License (https://opensource.org/licenses/MIT)

cli/asc.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
const fs = require("fs");
3434
const path = require("path");
3535
const process = require("process"); // ensure shim
36+
const globby = require("globby");
3637

3738
process.exit = ((exit) => function(code) {
3839
if (code) console.log(new Error("exit " + code.toString()).stack);
@@ -367,7 +368,8 @@ exports.main = function main(argv, options, callback) {
367368

368369
// Append entries
369370
if (asconfig.entries) {
370-
for (let entry of asconfig.entries) {
371+
const paths = globby.sync(asconfig.entries)
372+
for (let entry of paths) {
371373
argv.push(optionsUtil.resolvePath(entry, asconfigDir));
372374
}
373375
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
},
2323
"dependencies": {
2424
"binaryen": "100.0.0",
25+
"globby": "11.0.2",
2526
"long": "^4.0.0",
2627
"source-map-support": "^0.5.19",
2728
"ts-node": "^6.2.0"

0 commit comments

Comments
 (0)