metaowl 0.2.6 → 0.2.8

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/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { mountApp } from './modules/app-mounter.js'
2
- import { buildRoutes } from './modules/file-router.js'
2
+ import { buildRoutes, processRoutes } from './modules/file-router.js'
3
3
 
4
4
  export { default as Fetch } from './modules/fetch.js'
5
5
  export { default as Cache } from './modules/cache.js'
@@ -83,14 +83,6 @@ export {
83
83
  createSchema,
84
84
  fieldProps
85
85
  } from './modules/forms.js'
86
- export {
87
- generateComponentMap,
88
- generateImports,
89
- generateComponentsObject,
90
- createAutoImportPlugin,
91
- scanComponents,
92
- generateComponentDts
93
- } from './modules/auto-import.js'
94
86
  export {
95
87
  OdooService,
96
88
  configure,
@@ -31,8 +31,8 @@
31
31
  */
32
32
 
33
33
  import { useState, onMounted, onWillUnmount } from '@odoo/owl'
34
- import { Cache } from './cache.js'
35
- import { Fetch } from './fetch.js'
34
+ import Cache from './cache.js'
35
+ import Fetch from './fetch.js'
36
36
 
37
37
  /**
38
38
  * Authentication state composable.
@@ -38,7 +38,7 @@
38
38
  * }])
39
39
  */
40
40
 
41
- import { Fetch } from './fetch.js'
41
+ import Fetch from './fetch.js'
42
42
 
43
43
  /**
44
44
  * @typedef {Object} OdooConfig
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "metaowl",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "description": "Lightweight meta-framework for Odoo OWL — file-based routing, app mounting, Fetch helper, Cache, Meta tags, SSG generator, and a Vite plugin.",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/vite/plugin.js CHANGED
@@ -134,7 +134,7 @@ export async function metaowlPlugin(options = {}) {
134
134
  'process.env': safeEnv
135
135
  }
136
136
 
137
- cfg.root = cfg.root ?? resolve(process.cwd(), root)
137
+ cfg.root = cfg.root ?? root
138
138
  cfg.publicDir = cfg.publicDir ?? publicDir
139
139
  cfg.appType = cfg.appType ?? 'spa'
140
140
 
@@ -154,7 +154,7 @@ export async function metaowlPlugin(options = {}) {
154
154
  chunkSizeWarningLimit: 1024,
155
155
  target: 'esnext',
156
156
  rollupOptions: {
157
- input: resolve(process.cwd(), root, 'index.html'),
157
+ input: resolve(root, 'index.html'),
158
158
  output: {
159
159
  manualChunks: {
160
160
  vendor: vendorPackages,
@@ -229,6 +229,8 @@ export async function metaowlPlugin(options = {}) {
229
229
  }
230
230
  }
231
231
  ]
232
+
233
+ return plugins
232
234
  }
233
235
 
234
236
  /**