zarro 1.210.0 → 1.210.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index-modules/gather-args.js +8 -0
- package/index.js +5 -2
- package/package.json +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
(function () {
|
|
3
|
+
const debug = requireModule("debug")(__filename);
|
|
3
4
|
module.exports = async function gatherArgs(potentialEntryPoints, overrideArgv // for testing only
|
|
4
5
|
) {
|
|
5
6
|
const argv = overrideArgv || process.argv;
|
|
@@ -12,6 +13,13 @@
|
|
|
12
13
|
return argv.slice(entryPointIndex + 1);
|
|
13
14
|
}
|
|
14
15
|
}
|
|
16
|
+
for (let i = 0; i < argv.length; i++) {
|
|
17
|
+
const arg = argv[i];
|
|
18
|
+
if (arg.match(/node_modules\/zarro\/index.js/)) {
|
|
19
|
+
debug(`using entrypoint from argv: ${arg}`);
|
|
20
|
+
return argv.slice(i + 1);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
15
23
|
throw new Error(`Can't figure out args: unable to find entry point in args list:\n${JSON.stringify({
|
|
16
24
|
potentialEntryPoints,
|
|
17
25
|
overrideArgv,
|
package/index.js
CHANGED
|
@@ -13,7 +13,7 @@ const
|
|
|
13
13
|
fileExists,
|
|
14
14
|
readTextFileLines,
|
|
15
15
|
writeTextFile,
|
|
16
|
-
rm
|
|
16
|
+
rm, lsSync
|
|
17
17
|
} = require("yafs"),
|
|
18
18
|
log = require("./gulp-tasks/modules/log"),
|
|
19
19
|
path = require("path"),
|
|
@@ -257,7 +257,10 @@ async function transpileTasksUnder(folder) {
|
|
|
257
257
|
);
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
function importTypeScript() {
|
|
260
|
+
function importTypeScript(toTranspile) {
|
|
261
|
+
if (!toTranspile || toTranspile.length === 0) {
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
261
264
|
try {
|
|
262
265
|
require("typescript");
|
|
263
266
|
} catch (e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zarro",
|
|
3
|
-
"version": "1.210.
|
|
3
|
+
"version": "1.210.2",
|
|
4
4
|
"description": "Some glue to make gulp easier, perhaps even zero- or close-to-zero-conf",
|
|
5
5
|
"bin": {
|
|
6
6
|
"zarro": "index.js"
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"vinyl": "^2.2.1",
|
|
96
96
|
"which": "^2.0.2",
|
|
97
97
|
"xml2js": "^0.6.2",
|
|
98
|
-
"yafs": "^1.
|
|
98
|
+
"yafs": "^1.48.0",
|
|
99
99
|
"zarro": "^1.183.0"
|
|
100
100
|
},
|
|
101
101
|
"files": [
|