KillahPotatoes / KP-Liberation

The work on GreuhZbugs Liberation Mission for Arma 3 continues...
MIT License
264 stars 298 forks source link

Blank workshop ID causes build tool error #912

Open Soyvolon opened 2 years ago

Soyvolon commented 2 years ago

Basic Information

When there is only a single map in the _presets.json file, a workshopId must be set otherwise gulp throws an assertion error when checking parameters. Setting the workshop ID to 0 is a workaround for this error.

As far as I can tell, having multiple configurations requires at least one to have a workshop ID value in order for all maps to build, even those that don't have workshop IDs. Leaving all workshop IDs blank, or in the case of a single map, the only workshop ID blank, will cause the following error when any command is run (including clean).

PS C:\Users\Soyvolon\source\repos\KP-Liberation\_tools> npx gulp clean
[18:57:08] Requiring external module ts-node/register

C:\Users\Soyvolon\source\repos\KP-Liberation\_tools\node_modules\undertaker\lib\helpers\normalizeArgs.js:20
  assert(flattenArgs.length, 'One or more tasks should be combined using series or parallel');
  ^
AssertionError [ERR_ASSERTION] [ERR_ASSERTION]: One or more tasks should be combined using series or parallel
    at normalizeArgs (C:\Users\Soyvolon\source\repos\KP-Liberation\_tools\node_modules\undertaker\lib\helpers\normalizeArgs.js:20:3)
    at Gulp.series (C:\Users\Soyvolon\source\repos\KP-Liberation\_tools\node_modules\undertaker\lib\series.js:13:14)
    at Object.<anonymous> (C:\Users\Soyvolon\source\repos\KP-Liberation\_tools\gulpfile.ts:171:28)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Module.m._compile (C:\Users\Soyvolon\source\repos\KP-Liberation\_tools\node_modules\ts-node\src\index.ts:422:23)
    at Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Object.require.extensions.<computed> [as .ts] (C:\Users\Soyvolon\source\repos\KP-Liberation\_tools\node_modules\ts-node\src\index.ts:425:12)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)