powerlines 0.42.25 → 0.42.26

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.
Files changed (40) hide show
  1. package/dist/{api-D71tN_80.cjs → api-CvAosB7E.cjs} +10 -5
  2. package/dist/{api-D71tN_80.cjs.map → api-CvAosB7E.cjs.map} +1 -1
  3. package/dist/{api-CpVy0jQR.mjs → api-Dtr_u8iv.mjs} +9 -4
  4. package/dist/api-Dtr_u8iv.mjs.map +1 -0
  5. package/dist/context/index.cjs +1 -1
  6. package/dist/context/index.mjs +1 -1
  7. package/dist/esbuild.cjs +1 -1
  8. package/dist/esbuild.mjs +1 -1
  9. package/dist/farm.cjs +1 -1
  10. package/dist/farm.mjs +1 -1
  11. package/dist/index.cjs +1 -1
  12. package/dist/index.d.cts +1 -1
  13. package/dist/index.d.cts.map +1 -1
  14. package/dist/index.d.mts +1 -1
  15. package/dist/index.d.mts.map +1 -1
  16. package/dist/index.mjs +1 -1
  17. package/dist/nuxt.cjs +1 -1
  18. package/dist/nuxt.mjs +1 -1
  19. package/dist/rolldown.cjs +1 -1
  20. package/dist/rolldown.mjs +1 -1
  21. package/dist/rollup.cjs +1 -1
  22. package/dist/rollup.mjs +1 -1
  23. package/dist/rspack.cjs +1 -1
  24. package/dist/rspack.mjs +1 -1
  25. package/dist/{tsconfig-l-UmDdrR.cjs → tsconfig-BC3TZxD4.cjs} +2 -2
  26. package/dist/{tsconfig-l-UmDdrR.cjs.map → tsconfig-BC3TZxD4.cjs.map} +1 -1
  27. package/dist/{tsconfig-DcW7-RGh.mjs → tsconfig-CXwGIrfR.mjs} +2 -2
  28. package/dist/{tsconfig-DcW7-RGh.mjs.map → tsconfig-CXwGIrfR.mjs.map} +1 -1
  29. package/dist/typescript/index.cjs +1 -1
  30. package/dist/typescript/index.mjs +1 -1
  31. package/dist/unloader.cjs +1 -1
  32. package/dist/unloader.mjs +1 -1
  33. package/dist/unplugin.cjs +1 -1
  34. package/dist/unplugin.mjs +1 -1
  35. package/dist/vite.cjs +1 -1
  36. package/dist/vite.mjs +1 -1
  37. package/dist/webpack.cjs +1 -1
  38. package/dist/webpack.mjs +1 -1
  39. package/package.json +16 -16
  40. package/dist/api-CpVy0jQR.mjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require('./chunk-AIJqnxB6.cjs');
2
- const require_tsconfig = require('./tsconfig-l-UmDdrR.cjs');
2
+ const require_tsconfig = require('./tsconfig-BC3TZxD4.cjs');
3
3
  const require_plugin_utils = require('./plugin-utils.cjs');
4
4
  const require_constants = require('./constants.cjs');
5
5
  const require_config = require('./config.cjs');
@@ -33,12 +33,12 @@ let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-stri
33
33
  let _stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
34
34
  let chalk = require("chalk");
35
35
  chalk = require_chunk.__toESM(chalk);
36
+ let defu = require("defu");
37
+ defu = require_chunk.__toESM(defu);
36
38
  let handlebars = require("handlebars");
37
39
  handlebars = require_chunk.__toESM(handlebars);
38
40
  let _stryke_string_format_pretty_bytes = require("@stryke/string-format/pretty-bytes");
39
41
  let ts_morph = require("ts-morph");
40
- let defu = require("defu");
41
- defu = require_chunk.__toESM(defu);
42
42
  let _stryke_string_format_package = require("@stryke/string-format/package");
43
43
  let _stryke_fs_json = require("@stryke/fs/json");
44
44
  require("@stryke/fs/remove-file");
@@ -77,7 +77,7 @@ let unplugin = require("unplugin");
77
77
 
78
78
  //#region package.json
79
79
  var name = "powerlines";
80
- var version = "0.42.25";
80
+ var version = "0.42.26";
81
81
 
82
82
  //#endregion
83
83
  //#region src/_internal/helpers/generate-types.ts
@@ -3346,6 +3346,11 @@ var PowerlinesAPI = class PowerlinesAPI {
3346
3346
  })}`);
3347
3347
  if (!context.fs.existsSync(context.cachePath)) await (0, _stryke_fs_helpers.createDirectory)(context.cachePath);
3348
3348
  if (!context.fs.existsSync(context.dataPath)) await (0, _stryke_fs_helpers.createDirectory)(context.dataPath);
3349
+ if (context.config.skipCache === true || context.persistedMeta?.checksum !== context.meta.checksum) context.debug(`Using previously prepared files as the meta checksum has not changed.`);
3350
+ else {
3351
+ context.info(`Running \`prepare\` command as the meta checksum has changed since the last run.`);
3352
+ await this.prepare((0, defu.default)({ output: { types: false } }, inlineConfig));
3353
+ }
3349
3354
  await this.#types(context);
3350
3355
  this.context.debug("Formatting files generated during the types step.");
3351
3356
  await (0, require_utils.utils_exports.format)(context, context.typesPath, await context.fs.read(context.typesPath) ?? "");
@@ -3958,4 +3963,4 @@ Object.defineProperty(exports, 'version', {
3958
3963
  return version;
3959
3964
  }
3960
3965
  });
3961
- //# sourceMappingURL=api-D71tN_80.cjs.map
3966
+ //# sourceMappingURL=api-CvAosB7E.cjs.map