notform-nuxt 1.0.0-alpha.3 → 1.0.0-alpha.7

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
@@ -1,4 +1,5 @@
1
1
  import { NuxtModule } from '@nuxt/schema';
2
+ export * from 'notform';
2
3
 
3
4
  /** Nuxt module options for `notform` */
4
5
  interface NotFormModuleOptions {
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=4.0.0"
6
6
  },
7
- "version": "1.0.0-alpha.3",
7
+ "version": "1.0.0-alpha.7",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -1,4 +1,5 @@
1
- import { defineNuxtModule, addComponent, addImports } from '@nuxt/kit';
1
+ import { defineNuxtModule, createResolver, addComponent, addImports } from '@nuxt/kit';
2
+ export * from 'notform';
2
3
 
3
4
  const components = [
4
5
  "NotForm",
@@ -23,6 +24,8 @@ const module$1 = defineNuxtModule({
23
24
  },
24
25
  // Module factory
25
26
  setup(options, nuxt) {
27
+ const { resolve } = createResolver(import.meta.url);
28
+ const runtimeExports = resolve("./runtime/notform");
26
29
  nuxt.options.vite.optimizeDeps = nuxt.options.vite.optimizeDeps || {};
27
30
  nuxt.options.vite.optimizeDeps.exclude = nuxt.options.vite.optimizeDeps.exclude || [];
28
31
  nuxt.options.vite.optimizeDeps.exclude.push("notform");
@@ -31,14 +34,14 @@ const module$1 = defineNuxtModule({
31
34
  addComponent({
32
35
  name: component,
33
36
  export: component,
34
- filePath: "notform"
37
+ filePath: runtimeExports
35
38
  });
36
39
  });
37
40
  composables.forEach((composable) => {
38
41
  addImports({
39
42
  name: composable,
40
43
  as: composable,
41
- from: "notform"
44
+ from: runtimeExports
42
45
  });
43
46
  });
44
47
  }
@@ -0,0 +1,2 @@
1
+ export * from 'notform';
2
+ export type * from 'notform';
@@ -0,0 +1 @@
1
+ export * from "notform";
package/dist/types.d.mts CHANGED
@@ -7,3 +7,5 @@ export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<
7
7
  export { default } from './module.mjs'
8
8
 
9
9
  export { type NotFormModuleOptions } from './module.mjs'
10
+
11
+ export * from 'notform'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notform-nuxt",
3
- "version": "1.0.0-alpha.3",
3
+ "version": "1.0.0-alpha.7",
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.0-alpha.6"
40
+ "notform": "1.0.0-alpha.7"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@nuxt/devtools": "^3.1.1",
@@ -69,8 +69,8 @@
69
69
  "nuxt form validator"
70
70
  ],
71
71
  "scripts": {
72
- "build": "nuxt-module-build build",
73
72
  "dev": "nuxt-module-build build --stub && nuxt-module-build prepare",
73
+ "build": "nuxt-module-build build",
74
74
  "lint": "eslint . --fix",
75
75
  "typecheck": "vue-tsc --noEmit",
76
76
  "cleanup": "rm -rf dist node_modules .turbo .nuxt"