@hybridly/vite 0.4.0 → 0.4.1

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
@@ -86,6 +86,7 @@ function generateTsConfig(options, config) {
86
86
  include: [
87
87
  ...config.components.views.map(({ path: path2 }) => `../${path2}`),
88
88
  ...config.components.layouts.map(({ path: path2 }) => `../${path2}`),
89
+ ...config.components.components.map(({ path: path2 }) => `../${path2}`),
89
90
  `../${config.architecture.root}/**/*`,
90
91
  "./*"
91
92
  ],
@@ -221,7 +222,7 @@ const initialize = (options, config) => {
221
222
  if (file.endsWith("config/hybridly.php")) {
222
223
  return await forceRestart("Configuration file changed");
223
224
  }
224
- if (/routes\/.*\.php/.test(file)) {
225
+ if (/routes\/.*\.php/.test(file) || /routes\.php/.test(file)) {
225
226
  return await forceRestart("Routing changed");
226
227
  }
227
228
  if (/.*\.vue$/.test(file)) {
package/dist/index.mjs CHANGED
@@ -69,6 +69,7 @@ function generateTsConfig(options, config) {
69
69
  include: [
70
70
  ...config.components.views.map(({ path: path2 }) => `../${path2}`),
71
71
  ...config.components.layouts.map(({ path: path2 }) => `../${path2}`),
72
+ ...config.components.components.map(({ path: path2 }) => `../${path2}`),
72
73
  `../${config.architecture.root}/**/*`,
73
74
  "./*"
74
75
  ],
@@ -204,7 +205,7 @@ const initialize = (options, config) => {
204
205
  if (file.endsWith("config/hybridly.php")) {
205
206
  return await forceRestart("Configuration file changed");
206
207
  }
207
- if (/routes\/.*\.php/.test(file)) {
208
+ if (/routes\/.*\.php/.test(file) || /routes\.php/.test(file)) {
208
209
  return await forceRestart("Routing changed");
209
210
  }
210
211
  if (/.*\.vue$/.test(file)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hybridly/vite",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Vite plugin for Hybridly",
5
5
  "keywords": [
6
6
  "hybridly",
@@ -48,7 +48,7 @@
48
48
  "unplugin-icons": "^0.16.2",
49
49
  "unplugin-vue-components": "^0.25.1",
50
50
  "vite-plugin-run": "^0.4.1",
51
- "@hybridly/core": "0.4.0"
51
+ "@hybridly/core": "0.4.1"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@iconify/json": "^2.2.74",