notform-nuxt 1.0.0-alpha.3 → 1.0.0-alpha.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/module.d.mts +1 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +6 -3
- package/dist/runtime/notform.d.ts +2 -0
- package/dist/runtime/notform.js +1 -0
- package/dist/types.d.mts +2 -0
- package/package.json +2 -2
package/dist/module.d.mts
CHANGED
package/dist/module.json
CHANGED
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:
|
|
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:
|
|
44
|
+
from: runtimeExports
|
|
42
45
|
});
|
|
43
46
|
});
|
|
44
47
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "notform";
|
package/dist/types.d.mts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "notform-nuxt",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -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"
|