@pi-r/gulp 0.10.0 → 0.10.1
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.js +3 -3
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -7,8 +7,8 @@ const node_util_1 = require("node:util");
|
|
|
7
7
|
const types_1 = require("@e-mc/types");
|
|
8
8
|
const Task = require('@e-mc/task');
|
|
9
9
|
const kGulp = Symbol.for('gulp:constructor');
|
|
10
|
-
const BIN_NPX =
|
|
11
|
-
const BIN_GULP =
|
|
10
|
+
const BIN_NPX = which.sync('npx', { nothrow: true }) || 'npx';
|
|
11
|
+
const BIN_GULP = which.sync("gulp", { nothrow: true }) || '';
|
|
12
12
|
const REGEXP_TIMESTAMP = /^\[\d+:\d+:\d+\]$/;
|
|
13
13
|
async function executeTasks(instance, assets, preceding, host) {
|
|
14
14
|
if (instance.aborted) {
|
|
@@ -271,7 +271,7 @@ class Gulp extends Task {
|
|
|
271
271
|
timeStamp = '';
|
|
272
272
|
}
|
|
273
273
|
};
|
|
274
|
-
const { stdout, stderr } = child_process.spawn(BIN_GULP || BIN_NPX, args, { cwd: process.cwd(), shell: true, stdio: Task.hasLogType(32768) && !broadcastId ? 'inherit' : undefined, signal: this.signal, uid, gid })
|
|
274
|
+
const { stdout, stderr } = child_process.spawn((0, types_1.sanitizeCmd)(BIN_GULP || BIN_NPX, args), { cwd: process.cwd(), shell: true, stdio: Task.hasLogType(32768) && !broadcastId ? 'inherit' : undefined, signal: this.signal, uid, gid })
|
|
275
275
|
.on('exit', code => {
|
|
276
276
|
if (!code) {
|
|
277
277
|
this.addLog(types_1.STATUS_TYPE.INFO, out);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-r/gulp",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "Gulp task constructor for E-mc.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"homepage": "https://github.com/anpham6/pi-r#readme",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@e-mc/task": "^0.12.
|
|
23
|
-
"@e-mc/types": "^0.12.
|
|
22
|
+
"@e-mc/task": "^0.12.3",
|
|
23
|
+
"@e-mc/types": "^0.12.3",
|
|
24
24
|
"gulp": "^5.0.0",
|
|
25
25
|
"gulp-cli": "^3.0.0",
|
|
26
26
|
"which": "^4.0.0"
|