@driveflux/fab 2.3.0 → 2.3.2

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/bin/fab.js CHANGED
@@ -17,6 +17,7 @@ function makeCleanCommand() {
17
17
  .option('-c, --cwd <cwd>', 'The current working directory', process.cwd())
18
18
  .option('-d, --dest <destination>', 'The destination path for the package, example: dist', 'dist')
19
19
  .option('--clean-ts', 'Clean typescript files')
20
+ .option('--dry', 'Dry run')
20
21
  .option('-a, --all', 'Removes everything built by fab')
21
22
  .action(async (options) => {
22
23
  const cwd = path.resolve(process.cwd(), options.cwd)
@@ -34,7 +35,7 @@ function makeBuildCommand() {
34
35
  return new Command('build')
35
36
  .description('Build the package')
36
37
  .option('-c, --cwd <cwd>', 'The current working directory', process.cwd())
37
- .option('-d, --dest <destination>', 'The destination path for the package, example: dist', 'dist')
38
+ .option('-d, --dest <destination>', 'The destination path for the package, example: dist')
38
39
  .option('-s, --src <source>', 'The source path for the package, example: dist', 'src')
39
40
  .option('-r, --reset', 'Clean up everything and build again')
40
41
  .addOption(
@@ -43,7 +44,7 @@ function makeBuildCommand() {
43
44
  .default('all')
44
45
  )
45
46
  .action(async (options) => {
46
- const { target } = options
47
+ const { target, dest: destination, src, ...rest } = options
47
48
  const cwd = path.resolve(process.cwd(), options.cwd)
48
49
 
49
50
  const config = await parseConfig({ cwd })
@@ -53,9 +54,11 @@ function makeBuildCommand() {
53
54
  }
54
55
 
55
56
  const finalOptions = {
56
- ...options,
57
+ ...rest,
57
58
  cwd,
58
- ...config
59
+ ...config,
60
+ source: src || config.source,
61
+ destination: destination || config.destination,
59
62
  }
60
63
 
61
64
  switch (target) {
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,KAAK,EACX,WAAW,EACX,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,MAAM,YAAY,CAAA;AAGnB,eAAO,MAAM,KAAK,gBACJ,UAAU,GAAG,YAAY,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,kBAiBxD,CAAA;AAED,eAAO,MAAM,YAAY,gBAAuB,mBAAmB,kBAmClE,CAAA;AAED,eAAO,MAAM,UAAU,gBAAuB,WAAW,kBAWxD,CAAA;AAED,eAAO,MAAM,QAAQ,gBAAuB,eAAe,kBA4B1D,CAAA"}
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,KAAK,EACX,WAAW,EACX,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,MAAM,YAAY,CAAA;AAGnB,eAAO,MAAM,KAAK,gBACJ,UAAU,GAAG,YAAY,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,kBAiBxD,CAAA;AAED,eAAO,MAAM,YAAY,gBAAuB,mBAAmB,kBAmClE,CAAA;AAED,eAAO,MAAM,UAAU,gBAAuB,WAAW,kBAYxD,CAAA;AAED,eAAO,MAAM,QAAQ,gBAAuB,eAAe,kBA4B1D,CAAA"}
package/dist/build.js CHANGED
@@ -182,10 +182,11 @@ function _ts_generator(thisArg, body) {
182
182
  }
183
183
  import fs from 'node:fs/promises';
184
184
  import path from 'node:path';
185
+ import { performance } from 'node:perf_hooks';
185
186
  import merge from 'lodash.merge';
186
187
  import { clean } from './clean.js';
187
188
  import { ensureDir, getDefaultOptions, runBin, runCommand } from './utils.js';
188
- export var build = function() {
189
+ export var build = /*#__PURE__*/ function() {
189
190
  var _ref = _async_to_generator(function(rawOptions) {
190
191
  var options, promises;
191
192
  return _ts_generator(this, function(_state) {
@@ -222,7 +223,7 @@ export var build = function() {
222
223
  return _ref.apply(this, arguments);
223
224
  };
224
225
  }();
225
- export var copyVerbatim = function() {
226
+ export var copyVerbatim = /*#__PURE__*/ function() {
226
227
  var _ref = _async_to_generator(function(rawOptions) {
227
228
  var _options_copyVerbatim, options, destination, guessTarget;
228
229
  return _ts_generator(this, function(_state) {
@@ -244,7 +245,7 @@ export var copyVerbatim = function() {
244
245
  };
245
246
  return [
246
247
  4,
247
- Promise.all(options.copyVerbatim.map(function() {
248
+ Promise.all(options.copyVerbatim.map(/*#__PURE__*/ function() {
248
249
  var _ref = _async_to_generator(function(fileOrFolderRaw) {
249
250
  var source, target, tagetBasedir;
250
251
  return _ts_generator(this, function(_state) {
@@ -292,26 +293,27 @@ export var copyVerbatim = function() {
292
293
  return _ref.apply(this, arguments);
293
294
  };
294
295
  }();
295
- export var buildTypes = function() {
296
+ export var buildTypes = /*#__PURE__*/ function() {
296
297
  var _ref = _async_to_generator(function(rawOptions) {
297
- var options, tsProject;
298
+ var options, now;
298
299
  return _ts_generator(this, function(_state) {
299
300
  switch(_state.label){
300
301
  case 0:
301
302
  options = merge({}, getDefaultOptions(), rawOptions);
302
- tsProject = path.resolve(options.cwd, 'tsconfig.json');
303
+ now = performance.now();
303
304
  return [
304
305
  4,
305
306
  runCommand('pnpm', [
306
307
  'tsc',
307
- '--project',
308
- tsProject,
309
308
  '--emitDeclarationOnly',
310
309
  '--declarationMap'
311
- ])
310
+ ], {
311
+ cwd: options.cwd
312
+ })
312
313
  ];
313
314
  case 1:
314
315
  _state.sent();
316
+ console.log("Types built in ".concat((performance.now() - now).toFixed(2), "ms"));
315
317
  return [
316
318
  2
317
319
  ];
@@ -322,7 +324,7 @@ export var buildTypes = function() {
322
324
  return _ref.apply(this, arguments);
323
325
  };
324
326
  }();
325
- export var buildEsm = function() {
327
+ export var buildEsm = /*#__PURE__*/ function() {
326
328
  var _ref = _async_to_generator(function(rawOptions) {
327
329
  var options, finalOptions, swcrc, e, isValid, compilerOptions;
328
330
  return _ts_generator(this, function(_state) {
@@ -1 +1 @@
1
- {"version":3,"file":"clean.d.ts","sourceRoot":"","sources":["../src/clean.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAG9C,eAAO,MAAM,KAAK,eAAsB,YAAY,kBAgBnD,CAAA"}
1
+ {"version":3,"file":"clean.d.ts","sourceRoot":"","sources":["../src/clean.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAG9C,eAAO,MAAM,KAAK,eAAsB,YAAY,kBAyBnD,CAAA"}
package/dist/clean.js CHANGED
@@ -1,3 +1,11 @@
1
+ function _array_like_to_array(arr, len) {
2
+ if (len == null || len > arr.length) len = arr.length;
3
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
4
+ return arr2;
5
+ }
6
+ function _array_without_holes(arr) {
7
+ if (Array.isArray(arr)) return _array_like_to_array(arr);
8
+ }
1
9
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
2
10
  try {
3
11
  var info = gen[key](arg);
@@ -27,6 +35,23 @@ function _async_to_generator(fn) {
27
35
  });
28
36
  };
29
37
  }
38
+ function _iterable_to_array(iter) {
39
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
40
+ }
41
+ function _non_iterable_spread() {
42
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
43
+ }
44
+ function _to_consumable_array(arr) {
45
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
46
+ }
47
+ function _unsupported_iterable_to_array(o, minLen) {
48
+ if (!o) return;
49
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
50
+ var n = Object.prototype.toString.call(o).slice(8, -1);
51
+ if (n === "Object" && o.constructor) n = o.constructor.name;
52
+ if (n === "Map" || n === "Set") return Array.from(n);
53
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
54
+ }
30
55
  function _ts_generator(thisArg, body) {
31
56
  var f, y, t, g, _ = {
32
57
  label: 0,
@@ -126,28 +151,36 @@ import path from 'node:path';
126
151
  import { deleteAsync } from 'del';
127
152
  import merge from 'lodash.merge';
128
153
  import { getDefaultOptions } from './utils.js';
129
- export var clean = function() {
154
+ export var clean = /*#__PURE__*/ function() {
130
155
  var _ref = _async_to_generator(function(rawOptions) {
131
- var _merge, destination, all, commandOptions;
156
+ var _merge, destination, cleanTs, all, cleanJsGlobs, cleanTsGlobs, cwd, dry, globs, _globs, result;
132
157
  return _ts_generator(this, function(_state) {
133
158
  switch(_state.label){
134
159
  case 0:
135
- _merge = merge({}, getDefaultOptions(), rawOptions), destination = _merge.destination, all = _merge.cleanTs;
136
- commandOptions = [
160
+ _merge = merge({}, getDefaultOptions(), rawOptions), destination = _merge.destination, cleanTs = _merge.cleanTs, all = _merge.all, cleanJsGlobs = _merge.cleanJsGlobs, cleanTsGlobs = _merge.cleanTsGlobs, cwd = _merge.cwd, dry = _merge.dry;
161
+ globs = cleanJsGlobs ? cleanJsGlobs : [
137
162
  path.resolve(destination, '**/*.js')
138
163
  ];
139
- if (all) {
140
- commandOptions.push(path.resolve(destination, '**/*.d.ts'));
141
- commandOptions.push(path.resolve(destination, 'tsconfig.tsbuildinfo'));
164
+ if (cleanTs || all) {
165
+ if (cleanTsGlobs) {
166
+ ;
167
+ (_globs = globs).push.apply(_globs, _to_consumable_array(cleanTsGlobs));
168
+ } else {
169
+ globs.push(path.resolve(destination, '**/*.d.ts'));
170
+ }
142
171
  }
172
+ globs.push(path.resolve(cwd || '.', 'tsconfig.tsbuildinfo'));
143
173
  return [
144
174
  4,
145
- Promise.all(commandOptions.map(function() {
146
- return deleteAsync(path.resolve(destination, '**/*.js'));
147
- }))
175
+ deleteAsync(globs, {
176
+ dryRun: dry
177
+ })
148
178
  ];
149
179
  case 1:
150
- _state.sent();
180
+ result = _state.sent();
181
+ if (dry) {
182
+ console.log('Files and directories that would be deleted:\n', result.join('\n'));
183
+ }
151
184
  return [
152
185
  2
153
186
  ];
package/dist/config.d.ts CHANGED
@@ -15,16 +15,22 @@ declare const ConfigValidation: z.ZodObject<{
15
15
  * or an array of 2 paths [source, destination].
16
16
  */
17
17
  copyVerbatim: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, "many">;
18
+ cleanJsGlobs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
19
+ cleanTsGlobs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
18
20
  }, "strip", z.ZodTypeAny, {
19
21
  source: string;
20
22
  destination: string;
21
23
  noTypes: boolean;
22
24
  copyVerbatim: (string | string[])[];
25
+ cleanJsGlobs?: string[] | undefined;
26
+ cleanTsGlobs?: string[] | undefined;
23
27
  }, {
24
28
  source: string;
25
29
  destination: string;
26
30
  noTypes: boolean;
27
31
  copyVerbatim: (string | string[])[];
32
+ cleanJsGlobs?: string[] | undefined;
33
+ cleanTsGlobs?: string[] | undefined;
28
34
  }>;
29
35
  export declare const parseConfig: (options?: ParseConfigOptions) => Promise<FullConfig>;
30
36
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,MAAM,MAAM,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;AACxC,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEzD,UAAU,kBAAkB;IAC3B,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,GAAG,CAAC,EAAE,MAAM,CAAA;CACZ;AAED,QAAA,MAAM,gBAAgB;;;;IAIrB;;;OAGG;;;;;;;;;;;;EAEF,CAAA;AAEF,eAAO,MAAM,WAAW,aACb,kBAAkB,KAC1B,OAAO,CAAC,UAAU,CAmBpB,CAAA"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,MAAM,MAAM,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;AACxC,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEzD,UAAU,kBAAkB;IAC3B,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,GAAG,CAAC,EAAE,MAAM,CAAA;CACZ;AAED,QAAA,MAAM,gBAAgB;;;;IAIrB;;;OAGG;;;;;;;;;;;;;;;;;;EAIF,CAAA;AAEF,eAAO,MAAM,WAAW,aACb,kBAAkB,KAC1B,OAAO,CAAC,UAAU,CAmBpB,CAAA"}
package/dist/config.js CHANGED
@@ -134,9 +134,11 @@ var ConfigValidation = z.object({
134
134
  /**
135
135
  * The files to copy verbatim. It can be a single source path, it is moved as it is to the destination folder
136
136
  * or an array of 2 paths [source, destination].
137
- */ copyVerbatim: z.array(z.string().or(z.array(z.string()).length(2)))
137
+ */ copyVerbatim: z.array(z.string().or(z.array(z.string()).length(2))),
138
+ cleanJsGlobs: z.array(z.string()).optional(),
139
+ cleanTsGlobs: z.array(z.string()).optional()
138
140
  });
139
- export var parseConfig = function() {
141
+ export var parseConfig = /*#__PURE__*/ function() {
140
142
  var _ref = _async_to_generator(function(options) {
141
143
  var cwd, config, parsed;
142
144
  return _ts_generator(this, function(_state) {
@@ -194,7 +196,7 @@ export var parseConfig = function() {
194
196
  return _ref.apply(this, arguments);
195
197
  };
196
198
  }();
197
- var findConfigFile = function() {
199
+ var findConfigFile = /*#__PURE__*/ function() {
198
200
  var _ref = _async_to_generator(function() {
199
201
  var cwd, files, configFile, _tmp;
200
202
  var _arguments = arguments;
@@ -241,7 +243,7 @@ var findConfigFile = function() {
241
243
  return _ref.apply(this, arguments);
242
244
  };
243
245
  }();
244
- var readConfigFile = function() {
246
+ var readConfigFile = /*#__PURE__*/ function() {
245
247
  var _ref = _async_to_generator(function(configPath) {
246
248
  var _;
247
249
  return _ts_generator(this, function(_state) {
package/dist/create.js CHANGED
@@ -152,7 +152,7 @@ import path from 'node:path';
152
152
  import { deleteAsync } from 'del';
153
153
  import { DEV_DEPS_TO_INSTALL } from './create-package-config.js';
154
154
  import { ensureDir, getBaseDir, runCommand } from './utils.js';
155
- export var create = function() {
155
+ export var create = /*#__PURE__*/ function() {
156
156
  var _ref = _async_to_generator(function(param) {
157
157
  var template, name, providedDestination, providedCwd, dangerouslyRewrite, cwd, destination, finalDestination, e, templatePath;
158
158
  return _ts_generator(this, function(_state) {
@@ -265,7 +265,7 @@ export var create = function() {
265
265
  return _ref.apply(this, arguments);
266
266
  };
267
267
  }();
268
- var replaceInFile = function() {
268
+ var replaceInFile = /*#__PURE__*/ function() {
269
269
  var _ref = _async_to_generator(function(filePath, replacements) {
270
270
  var content, newContent;
271
271
  return _ts_generator(this, function(_state) {
package/dist/types.d.ts CHANGED
@@ -11,5 +11,10 @@ export interface CopyVerbatimOptions extends BaseOptions {
11
11
  }
12
12
  export interface CleanOptions extends Pick<BaseOptions, 'destination'> {
13
13
  cleanTs?: boolean;
14
+ cwd?: string;
15
+ all?: boolean;
16
+ cleanJsGlobs?: Config['cleanJsGlobs'];
17
+ cleanTsGlobs?: Config['cleanTsGlobs'];
18
+ dry?: boolean;
14
19
  }
15
20
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEzC,MAAM,WAAW,WAAW;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,eAAgB,SAAQ,WAAW;CAAG;AAEvD,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACvD,YAAY,CAAC,EAAE,MAAM,CAAC,cAAc,CAAC,CAAA;CACrC;AAED,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,WAAW,EAAE,aAAa,CAAC;IACrE,OAAO,CAAC,EAAE,OAAO,CAAA;CACjB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEzC,MAAM,WAAW,WAAW;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,eAAgB,SAAQ,WAAW;CAAG;AAEvD,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACvD,YAAY,CAAC,EAAE,MAAM,CAAC,cAAc,CAAC,CAAA;CACrC;AAED,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,WAAW,EAAE,aAAa,CAAC;IACrE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,YAAY,CAAC,EAAE,MAAM,CAAC,cAAc,CAAC,CAAA;IACrC,YAAY,CAAC,EAAE,MAAM,CAAC,cAAc,CAAC,CAAA;IACrC,GAAG,CAAC,EAAE,OAAO,CAAA;CACb"}
package/dist/utils.d.ts CHANGED
@@ -1,8 +1,12 @@
1
1
  import { type SpawnOptions } from 'node:child_process';
2
- import type { FullConfig } from './config.js';
3
2
  export declare const ensureDir: (dir: string) => Promise<void>;
4
3
  export declare const runBin: (bin: string, args: string[], options?: SpawnOptions) => Promise<unknown>;
5
4
  export declare const runCommand: (cmd: string, args: string[], options?: SpawnOptions) => Promise<unknown>;
6
5
  export declare const getBaseDir: () => string;
7
- export declare const getDefaultOptions: () => FullConfig;
6
+ export declare const getDefaultOptions: () => {
7
+ source: string;
8
+ destination: string;
9
+ noTypes: boolean;
10
+ copyVerbatim: never[];
11
+ };
8
12
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAS,MAAM,oBAAoB,CAAA;AAG7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE7C,eAAO,MAAM,SAAS,QAAe,MAAM,kBAS1C,CAAA;AAED,eAAO,MAAM,MAAM,QACb,MAAM,QACL,MAAM,EAAE,YACJ,YAAY,qBAmBtB,CAAA;AAED,eAAO,MAAM,UAAU,QACjB,MAAM,QACL,MAAM,EAAE,YACJ,YAAY,qBAiBtB,CAAA;AAED,eAAO,MAAM,UAAU,cAMtB,CAAA;AAED,eAAO,MAAM,iBAAiB,QAAO,UAKnC,CAAA"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAS,MAAM,oBAAoB,CAAA;AAI7D,eAAO,MAAM,SAAS,QAAe,MAAM,kBAS1C,CAAA;AAED,eAAO,MAAM,MAAM,QACb,MAAM,QACL,MAAM,EAAE,YACJ,YAAY,qBAmBtB,CAAA;AAED,eAAO,MAAM,UAAU,QACjB,MAAM,QACL,MAAM,EAAE,YACJ,YAAY,qBAiBtB,CAAA;AAED,eAAO,MAAM,UAAU,cAMtB,CAAA;AAED,eAAO,MAAM,iBAAiB;;;;;CAK5B,CAAA"}
package/dist/utils.js CHANGED
@@ -153,7 +153,7 @@ function _ts_generator(thisArg, body) {
153
153
  import { spawn } from 'node:child_process';
154
154
  import fs from 'node:fs/promises';
155
155
  import path from 'node:path';
156
- export var ensureDir = function() {
156
+ export var ensureDir = /*#__PURE__*/ function() {
157
157
  var _ref = _async_to_generator(function(dir) {
158
158
  var stat, e;
159
159
  return _ts_generator(this, function(_state) {
@@ -203,7 +203,7 @@ export var ensureDir = function() {
203
203
  return _ref.apply(this, arguments);
204
204
  };
205
205
  }();
206
- export var runBin = function() {
206
+ export var runBin = /*#__PURE__*/ function() {
207
207
  var _ref = _async_to_generator(function(bin, args, options) {
208
208
  var basePath, binPath, c;
209
209
  return _ts_generator(this, function(_state) {
@@ -234,7 +234,7 @@ export var runBin = function() {
234
234
  return _ref.apply(this, arguments);
235
235
  };
236
236
  }();
237
- export var runCommand = function() {
237
+ export var runCommand = /*#__PURE__*/ function() {
238
238
  var _ref = _async_to_generator(function(cmd, args, options) {
239
239
  var c;
240
240
  return _ts_generator(this, function(_state) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@driveflux/fab",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -15,20 +15,20 @@
15
15
  "tsconfig.json"
16
16
  ],
17
17
  "dependencies": {
18
- "@swc/cli": "^0.4.0",
19
- "@swc/core": "1.7.2",
18
+ "@swc/cli": "0.4.1-nightly.20240914",
19
+ "@swc/core": "1.7.39",
20
20
  "commander": "^12.1.0",
21
- "del": "^7.1.0",
21
+ "del": "^8.0.0",
22
22
  "lodash.merge": "^4.6.2",
23
23
  "zod": "^3.23.8"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@driveflux/tsconfig": "1.3.0",
27
27
  "@types/lodash.merge": "^4.6.9",
28
- "@types/node": "^20.14.12",
29
- "del-cli": "^5.1.0",
30
- "type-fest": "^4.23.0",
31
- "typescript": "^5.5.4"
28
+ "@types/node": "^22.7.8",
29
+ "del-cli": "^6.0.0",
30
+ "type-fest": "^4.26.1",
31
+ "typescript": "^5.6.3"
32
32
  },
33
33
  "bin": {
34
34
  "fab": "./bin/fab.js"