@plugjs/plug 0.5.27 → 0.5.29

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/dist/cli.mjs CHANGED
@@ -15,7 +15,7 @@ var { TRACE, DEBUG, INFO, NOTICE, WARN, ERROR, OFF } = logLevels;
15
15
  var $bnd = (s) => $blu($und(s));
16
16
  var $gnd = (s) => $gry($und(s));
17
17
  var $wnd = (s) => $wht($und(s));
18
- var version = true ? "0.5.27" : "0.0.0-dev";
18
+ var version = true ? "0.5.29" : "0.0.0-dev";
19
19
  function help() {
20
20
  console.log(`${$bnd("Usage:")}
21
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plugjs/plug",
3
- "version": "0.5.27",
3
+ "version": "0.5.29",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -113,9 +113,9 @@
113
113
  "author": "Juit Developers <developers@juit.com>",
114
114
  "license": "Apache-2.0",
115
115
  "dependencies": {
116
- "@plugjs/tsrun": "^0.5.10",
116
+ "@plugjs/tsrun": "^0.5.12",
117
117
  "@types/node": "<19",
118
- "esbuild": "^0.20.1",
118
+ "esbuild": "^0.20.2",
119
119
  "jsonc-parser": "^3.2.1",
120
120
  "picomatch": "^4.0.1"
121
121
  },
package/src/build.ts CHANGED
@@ -290,7 +290,7 @@ export function hookBefore<B extends Build, T extends keyof B>(
290
290
  assert(isTaskCall(taskCall), `Task "${$t(taskName)}" not found in build`)
291
291
 
292
292
  for (const hook of hooks) {
293
- const beforeHook = build[hook]
293
+ const beforeHook = build[hook] as any
294
294
  assert(isTaskCall(beforeHook), `Task "${$t(hook)}" to hook before "${$t(taskName)}" not found in build`)
295
295
  if (taskCall.task.before.includes(beforeHook.task)) continue
296
296
  taskCall.task.before.push(beforeHook.task)
@@ -307,7 +307,7 @@ export function hookAfter<B extends Build, T extends keyof B>(
307
307
  assert(isTaskCall(taskCall), `Task "${$t(taskName)}" not found in build`)
308
308
 
309
309
  for (const hook of hooks) {
310
- const afterHook = build[hook]
310
+ const afterHook = build[hook] as any
311
311
  assert(isTaskCall(afterHook), `Task "${$t(hook)}" to hook after "${$t(taskName)}" not found in build`)
312
312
  if (taskCall.task.after.includes(afterHook.task)) continue
313
313
  taskCall.task.after.push(afterHook.task)