@tthr/vue 0.0.48 → 0.0.49

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/nuxt/module.js CHANGED
@@ -131,6 +131,8 @@ export default defineNuxtModule({
131
131
  nitroConfig.externals.inline = nitroConfig.externals.inline || [];
132
132
  nitroConfig.externals.inline.push('@tthr/vue');
133
133
  });
134
+ // Get the absolute path to user's tether/functions directory
135
+ const tetherFunctionsPath = `${nuxt.options.rootDir}/tether/functions`;
134
136
  // Generate a server plugin to auto-register cron handlers from tether/functions
135
137
  // This runs at build time and creates a plugin that imports user's functions
136
138
  // NOTE: Must be .js file (not .ts) to avoid Rollup parse errors during Nitro build
@@ -145,8 +147,8 @@ export default defineNuxtModule({
145
147
  import { defineNitroPlugin, registerCronHandler } from '@tthr/vue/nuxt/runtime/server/plugins/cron.js';
146
148
  import { useTetherServer } from '@tthr/vue/nuxt/runtime/server/utils/tether.js';
147
149
 
148
- // Import all functions from tether/functions (using ~~ for rootDir)
149
- import * as tetherFunctions from '~~/tether/functions';
150
+ // Import all functions from tether/functions
151
+ import * as tetherFunctions from '${tetherFunctionsPath}';
150
152
 
151
153
  /**
152
154
  * Create a simple logger for function execution
package/nuxt/module.ts CHANGED
@@ -156,6 +156,9 @@ export default defineNuxtModule<TetherModuleOptions>({
156
156
  nitroConfig.externals.inline.push('@tthr/vue');
157
157
  });
158
158
 
159
+ // Get the absolute path to user's tether/functions directory
160
+ const tetherFunctionsPath = `${nuxt.options.rootDir}/tether/functions`;
161
+
159
162
  // Generate a server plugin to auto-register cron handlers from tether/functions
160
163
  // This runs at build time and creates a plugin that imports user's functions
161
164
  // NOTE: Must be .js file (not .ts) to avoid Rollup parse errors during Nitro build
@@ -170,8 +173,8 @@ export default defineNuxtModule<TetherModuleOptions>({
170
173
  import { defineNitroPlugin, registerCronHandler } from '@tthr/vue/nuxt/runtime/server/plugins/cron.js';
171
174
  import { useTetherServer } from '@tthr/vue/nuxt/runtime/server/utils/tether.js';
172
175
 
173
- // Import all functions from tether/functions (using ~~ for rootDir)
174
- import * as tetherFunctions from '~~/tether/functions';
176
+ // Import all functions from tether/functions
177
+ import * as tetherFunctions from '${tetherFunctionsPath}';
175
178
 
176
179
  /**
177
180
  * Create a simple logger for function execution
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tthr/vue",
3
- "version": "0.0.48",
3
+ "version": "0.0.49",
4
4
  "description": "Tether Vue/Nuxt SDK",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",