notform-nuxt 1.0.3 → 1.0.5

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/module.d.mts CHANGED
@@ -3,8 +3,6 @@ export * from 'notform';
3
3
 
4
4
  /** Nuxt module options for `notform` */
5
5
  interface NotFormModuleOptions {
6
- /** Enable auto imports for components and composables */
7
- autoImport?: boolean;
8
6
  }
9
7
  declare const _default: NuxtModule<NotFormModuleOptions>;
10
8
 
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=4.0.0"
6
6
  },
7
- "version": "1.0.3",
7
+ "version": "1.0.5",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -1,5 +1,4 @@
1
1
  import { defineNuxtModule, createResolver, addComponent, addImports } from '@nuxt/kit';
2
- export * from 'notform';
3
2
 
4
3
  const components = [
5
4
  "NotForm",
@@ -18,33 +17,30 @@ const module$1 = defineNuxtModule({
18
17
  nuxt: ">=4.0.0"
19
18
  }
20
19
  },
21
- // Default configuration options of the Nuxt module
22
- defaults: {
23
- autoImport: true
24
- },
25
20
  // Module factory
26
- setup(options, nuxt) {
21
+ setup(_options, nuxt) {
27
22
  const { resolve } = createResolver(import.meta.url);
28
- const runtimeExports = resolve("./runtime/notform");
29
- nuxt.options.vite.optimizeDeps = nuxt.options.vite.optimizeDeps || {};
30
- nuxt.options.vite.optimizeDeps.exclude = nuxt.options.vite.optimizeDeps.exclude || [];
31
- nuxt.options.vite.optimizeDeps.exclude.push("notform");
32
- if (options.autoImport) {
33
- components.forEach((component) => {
34
- addComponent({
35
- name: component,
36
- export: component,
37
- filePath: runtimeExports
38
- });
23
+ const componentsRuntime = resolve("./runtime/components");
24
+ const composablesRuntime = resolve("./runtime/composables");
25
+ nuxt.options.vite.optimizeDeps = nuxt.options.vite.optimizeDeps ||= {};
26
+ nuxt.options.vite.optimizeDeps.exclude = nuxt.options.vite.optimizeDeps.exclude ||= [];
27
+ if (!nuxt.options.vite.optimizeDeps.exclude.includes("notform")) {
28
+ nuxt.options.vite.optimizeDeps.exclude.push("notform");
29
+ }
30
+ components.forEach((name) => {
31
+ addComponent({
32
+ name,
33
+ export: name,
34
+ filePath: componentsRuntime
39
35
  });
40
- composables.forEach((composable) => {
41
- addImports({
42
- name: composable,
43
- as: composable,
44
- from: runtimeExports
45
- });
36
+ });
37
+ composables.forEach((composable) => {
38
+ addImports({
39
+ name: composable,
40
+ as: composable,
41
+ from: composablesRuntime
46
42
  });
47
- }
43
+ });
48
44
  }
49
45
  });
50
46
 
@@ -0,0 +1 @@
1
+ export { NotForm, NotField, NotArrayField, NotMessage } from 'notform';
@@ -0,0 +1 @@
1
+ export { NotForm, NotField, NotArrayField, NotMessage } from "notform";
@@ -0,0 +1 @@
1
+ export { useNotForm } from 'notform';
@@ -0,0 +1 @@
1
+ export { useNotForm } from "notform";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notform-nuxt",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -37,7 +37,7 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "@nuxt/kit": "^4.3.0",
40
- "notform": "1.0.3"
40
+ "notform": "1.0.5"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@nuxt/devtools": "^3.1.1",
@@ -1,2 +0,0 @@
1
- export * from 'notform';
2
- export type * from 'notform';
@@ -1 +0,0 @@
1
- export * from "notform";