zarro 1.166.2 → 1.167.0
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/gulp-tasks/modules/testutil-finder.js +2 -2
- package/index.js +13 -10
- package/package.json +2 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
(function () {
|
|
3
|
-
console.
|
|
4
|
-
|
|
3
|
+
console.error("testutil-finder has been renamed to test-util-finder and will be removed in a future release");
|
|
4
|
+
module.exports = require("./test-util-finder");
|
|
5
5
|
})();
|
package/index.js
CHANGED
|
@@ -192,11 +192,7 @@ async function transpileTypeScriptFiles(
|
|
|
192
192
|
return;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
|
|
196
|
-
require("typescript");
|
|
197
|
-
} catch (e) {
|
|
198
|
-
throw new ZarroError(`TypeScript not installed, unable to transpile local tasks: \n- ${ toTranspile.join("\n -") }`);
|
|
199
|
-
}
|
|
195
|
+
importTypeScript();
|
|
200
196
|
|
|
201
197
|
try {
|
|
202
198
|
const
|
|
@@ -254,6 +250,17 @@ async function transpileTasksUnder(folder) {
|
|
|
254
250
|
);
|
|
255
251
|
}
|
|
256
252
|
|
|
253
|
+
function importTypeScript() {
|
|
254
|
+
try {
|
|
255
|
+
require("typescript");
|
|
256
|
+
} catch (e) {
|
|
257
|
+
const message = `TypeScript not installed, unable to transpile local tasks: \n- ${ toTranspile.join("\n -") }`;
|
|
258
|
+
console.error(message);
|
|
259
|
+
process.exit(2);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
|
|
257
264
|
async function transpileTasksUnder_(folder) {
|
|
258
265
|
const toTranspile = [];
|
|
259
266
|
const fullPath = path.isAbsolute(folder)
|
|
@@ -274,11 +281,7 @@ async function transpileTasksUnder_(folder) {
|
|
|
274
281
|
return;
|
|
275
282
|
}
|
|
276
283
|
|
|
277
|
-
|
|
278
|
-
require("typescript");
|
|
279
|
-
} catch (e) {
|
|
280
|
-
throw new ZarroError(`TypeScript not installed, unable to transpile local tasks: \n- ${ toTranspile.join("\n -") }`);
|
|
281
|
-
}
|
|
284
|
+
importTypeScript();
|
|
282
285
|
|
|
283
286
|
try {
|
|
284
287
|
const
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zarro",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.167.0",
|
|
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"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"build-fetch-github-release": "tsc -p gulp-tasks/modules/fetch-github-release/tsconfig.json",
|
|
42
42
|
"postbuild-fetch-github-release": "run-s delete-fetch-github-release-dist-shadow shadow-fetch-github-release-dist",
|
|
43
43
|
"delete-fetch-github-release-dist-shadow": "rimraf gulp-tasks/modules/fetch-github-release/dist-copy",
|
|
44
|
-
"shadow-fetch-github-release-dist": "
|
|
44
|
+
"shadow-fetch-github-release-dist": "node index.js shadow-fetch-github-release-dist",
|
|
45
45
|
"gulp": "gulp",
|
|
46
46
|
"test-npm-gulp-task": "echo \"this is a test\"",
|
|
47
47
|
"verify-up-to-date": "run-s \"zarro -- verify-up-to-date\"",
|
|
@@ -124,7 +124,6 @@
|
|
|
124
124
|
"@types/xml2js": "^0.4.8",
|
|
125
125
|
"@types/yargs": "^15.0.13",
|
|
126
126
|
"console-cls": "^1.2.2",
|
|
127
|
-
"cpy-cli": "^5.0.0",
|
|
128
127
|
"debugger-is-attached": "^1.2.0",
|
|
129
128
|
"expect-even-more-jest": "^1.15.0",
|
|
130
129
|
"filesystem-sandbox": "^1.20.0",
|