@pi-r/gulp 0.8.2 → 0.8.3

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/README.md CHANGED
@@ -1,7 +1,7 @@
1
- ### @pi-r/gulp
2
-
3
- https://e-mc.readthedocs.io/en/latest/task
4
-
5
- ### LICENSE
6
-
1
+ ### @pi-r/gulp
2
+
3
+ https://e-mc.readthedocs.io/en/latest/task
4
+
5
+ ### LICENSE
6
+
7
7
  MIT
package/index.js CHANGED
@@ -195,7 +195,7 @@ class Gulp extends Task {
195
195
  this.writeFail([value, hint || (this.moduleName + ': ' + task)], err, { type, startTime });
196
196
  }
197
197
  if (hint !== false) {
198
- queueMicrotask(() => {
198
+ setImmediate(() => {
199
199
  Task.removeDir(tempDir);
200
200
  });
201
201
  callback();
@@ -316,7 +316,7 @@ class Gulp extends Task {
316
316
  (added ||= []).push(value);
317
317
  }
318
318
  }
319
- queueMicrotask(() => {
319
+ setImmediate(() => {
320
320
  Task.removeDir(tempDir);
321
321
  });
322
322
  callback({ added, deleted });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-r/gulp",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "Gulp task constructor for E-mc.",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -20,8 +20,8 @@
20
20
  "license": "MIT",
21
21
  "homepage": "https://github.com/anpham6/pi-r#readme",
22
22
  "dependencies": {
23
- "@e-mc/task": "^0.10.2",
24
- "@e-mc/types": "^0.10.2",
23
+ "@e-mc/task": "^0.10.3",
24
+ "@e-mc/types": "^0.10.3",
25
25
  "gulp": "^5.0.0",
26
26
  "gulp-cli": "^3.0.0",
27
27
  "strip-ansi": "6.0.1",
package/types/index.d.ts CHANGED
@@ -1,25 +1,25 @@
1
- import type { IHost, ITask, TaskConstructor } from '@e-mc/types/lib';
2
- import type { ExecAction, TaskModule } from '@e-mc/types/lib/settings';
3
-
4
- export interface GulpCommand {
5
- path?: string;
6
- tasks?: ArrayOf<string>;
7
- opts?: ArrayOf<string>;
8
- }
9
-
10
- export interface GulpData extends GulpCommand {
11
- items: string[];
12
- }
13
-
14
- export interface GulpSettings extends PlainObject {
15
- exec?: ExecAction;
16
- users?: GulpUsers;
17
- }
18
-
19
- export type GulpTask = string | GulpCommand;
20
- export type GulpUsers = GulpTask | AnyObject;
21
-
22
- export interface GulpTaskConstructor<T extends IHost, U extends TaskModule = TaskModule<GulpSettings>> extends ConstructorDerived<TaskConstructor<T, U>> {
23
- readonly prototype: ITask<T, U>;
24
- new(module?: U, ...args: unknown[]): ITask<T, U>;
1
+ import type { IHost, ITask, TaskConstructor } from '@e-mc/types/lib';
2
+ import type { ExecAction, TaskModule } from '@e-mc/types/lib/settings';
3
+
4
+ export interface GulpCommand {
5
+ path?: string;
6
+ tasks?: ArrayOf<string>;
7
+ opts?: ArrayOf<string>;
8
+ }
9
+
10
+ export interface GulpData extends GulpCommand {
11
+ items: string[];
12
+ }
13
+
14
+ export interface GulpSettings extends PlainObject {
15
+ exec?: ExecAction;
16
+ users?: GulpUsers;
17
+ }
18
+
19
+ export type GulpTask = string | GulpCommand;
20
+ export type GulpUsers = GulpTask | AnyObject;
21
+
22
+ export interface GulpTaskConstructor<T extends IHost, U extends TaskModule = TaskModule<GulpSettings>> extends ConstructorDerived<TaskConstructor<T, U>> {
23
+ readonly prototype: ITask<T, U>;
24
+ new(module?: U, ...args: unknown[]): ITask<T, U>;
25
25
  }