@lenne.tech/nuxt-extensions 1.2.1 → 1.2.2

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.
Files changed (2) hide show
  1. package/README.md +4 -2
  2. package/package.json +8 -1
package/README.md CHANGED
@@ -137,7 +137,7 @@ Create a Nuxt plugin to register plugins before the auth client is initialized:
137
137
 
138
138
  ```typescript
139
139
  // plugins/auth-plugins.client.ts
140
- import { registerLtAuthPlugins } from '@lenne.tech/nuxt-extensions';
140
+ import { registerLtAuthPlugins } from '@lenne.tech/nuxt-extensions/lib';
141
141
  import { organizationClient, magicLinkClient } from 'better-auth/client/plugins';
142
142
 
143
143
  export default defineNuxtPlugin(() => {
@@ -148,12 +148,14 @@ export default defineNuxtPlugin(() => {
148
148
  });
149
149
  ```
150
150
 
151
+ > **Note:** In Vue components, `registerLtAuthPlugins` is auto-imported. In `.ts` files (like Nuxt plugins), import from `@lenne.tech/nuxt-extensions/lib`.
152
+
151
153
  **Option 2: Direct Factory Usage**
152
154
 
153
155
  For full control, create the auth client directly with your plugins:
154
156
 
155
157
  ```typescript
156
- import { createLtAuthClient } from '@lenne.tech/nuxt-extensions';
158
+ import { createLtAuthClient } from '@lenne.tech/nuxt-extensions/lib';
157
159
  import { organizationClient } from 'better-auth/client/plugins';
158
160
 
159
161
  const authClient = createLtAuthClient({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lenne.tech/nuxt-extensions",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Reusable Nuxt 4 composables, components, and Better-Auth integration for lenne.tech projects",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,6 +18,10 @@
18
18
  "types": "./dist/types.d.mts",
19
19
  "import": "./dist/module.mjs"
20
20
  },
21
+ "./lib": {
22
+ "types": "./dist/runtime/lib/index.d.ts",
23
+ "import": "./dist/runtime/lib/index.js"
24
+ },
21
25
  "./testing": {
22
26
  "types": "./dist/runtime/testing/index.d.ts",
23
27
  "import": "./dist/runtime/testing/index.js"
@@ -29,6 +33,9 @@
29
33
  ".": [
30
34
  "./dist/types.d.mts"
31
35
  ],
36
+ "lib": [
37
+ "./dist/runtime/lib/index.d.ts"
38
+ ],
32
39
  "testing": [
33
40
  "./dist/runtime/testing/index.d.ts"
34
41
  ]