@hybridly/vite 0.7.4 → 0.7.6

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/index.cjs CHANGED
@@ -567,7 +567,7 @@ function getRunOptions(options) {
567
567
  return [
568
568
  {
569
569
  name: "Generate TypeScript types",
570
- run: [php, "artisan", "hybridly:types"],
570
+ run: [php, "artisan", "hybridly:types", options.allowTypeGenerationFailures !== false ? "--allow-failures" : ""].filter(Boolean),
571
571
  pattern: [
572
572
  "+(app|src)/**/*Data.php",
573
573
  "+(app|src)/**/Enums/*.php",
package/dist/index.d.cts CHANGED
@@ -67,6 +67,8 @@ interface ViteOptions {
67
67
  tsconfig?: TsConfigOptions;
68
68
  /** Warns when displaying local builds. */
69
69
  warnOnLocalBuilds?: boolean;
70
+ /** Type generation failures will return exit code zero if this option is `true`. */
71
+ allowTypeGenerationFailures?: boolean;
70
72
  }
71
73
  interface LayoutOptions {
72
74
  /** Custom RegExp for parsing the template string. */
package/dist/index.d.mts CHANGED
@@ -67,6 +67,8 @@ interface ViteOptions {
67
67
  tsconfig?: TsConfigOptions;
68
68
  /** Warns when displaying local builds. */
69
69
  warnOnLocalBuilds?: boolean;
70
+ /** Type generation failures will return exit code zero if this option is `true`. */
71
+ allowTypeGenerationFailures?: boolean;
70
72
  }
71
73
  interface LayoutOptions {
72
74
  /** Custom RegExp for parsing the template string. */
package/dist/index.d.ts CHANGED
@@ -67,6 +67,8 @@ interface ViteOptions {
67
67
  tsconfig?: TsConfigOptions;
68
68
  /** Warns when displaying local builds. */
69
69
  warnOnLocalBuilds?: boolean;
70
+ /** Type generation failures will return exit code zero if this option is `true`. */
71
+ allowTypeGenerationFailures?: boolean;
70
72
  }
71
73
  interface LayoutOptions {
72
74
  /** Custom RegExp for parsing the template string. */
package/dist/index.mjs CHANGED
@@ -548,7 +548,7 @@ function getRunOptions(options) {
548
548
  return [
549
549
  {
550
550
  name: "Generate TypeScript types",
551
- run: [php, "artisan", "hybridly:types"],
551
+ run: [php, "artisan", "hybridly:types", options.allowTypeGenerationFailures !== false ? "--allow-failures" : ""].filter(Boolean),
552
552
  pattern: [
553
553
  "+(app|src)/**/*Data.php",
554
554
  "+(app|src)/**/Enums/*.php",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hybridly/vite",
3
- "version": "0.7.4",
3
+ "version": "0.7.6",
4
4
  "description": "Vite plugin for Hybridly",
5
5
  "keywords": [
6
6
  "hybridly",
@@ -55,7 +55,7 @@
55
55
  "unplugin-icons": "^0.18.5",
56
56
  "unplugin-vue-components": "^0.26.0",
57
57
  "vite-plugin-run": "^0.5.1",
58
- "@hybridly/core": "0.7.4"
58
+ "@hybridly/core": "0.7.6"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@iconify/json": "^2.2.203",