@xk2800/nextjs-template 0.7.2-beta.10 → 0.7.2-beta.11

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.
@@ -6,6 +6,9 @@ require('server-only');
6
6
  var server = require('next/server');
7
7
  var headers = require('next/headers');
8
8
  var zod = require('zod');
9
+ var child_process = require('child_process');
10
+ var fs = require('fs');
11
+ var path = require('path');
9
12
  var betterAuth = require('better-auth');
10
13
  var drizzle = require('better-auth/adapters/drizzle');
11
14
  var cuid2 = require('@paralleldrive/cuid2');
@@ -1162,6 +1165,21 @@ async function getResend() {
1162
1165
  config.RESEND_BROADCAST_API_KEY || config.RESEND_API_KEY;
1163
1166
 
1164
1167
  // server/auth.ts
1168
+ function checkDepsOnce() {
1169
+ const flag = globalThis;
1170
+ if (process.env.NODE_ENV !== "development" || flag.__xkDepsChecked) return;
1171
+ flag.__xkDepsChecked = true;
1172
+ const script = path.join(
1173
+ /*turbopackIgnore: true*/
1174
+ process.cwd(),
1175
+ "node_modules/@xk2800/nextjs-template/scripts/check-deps.mjs"
1176
+ );
1177
+ if (!fs.existsSync(script)) return;
1178
+ child_process.execFile(process.execPath, [script], (_err, stdout) => {
1179
+ if (stdout == null ? void 0 : stdout.trim()) console.log(stdout);
1180
+ });
1181
+ }
1182
+ checkDepsOnce();
1165
1183
  async function logFailedLogin(ctx, log) {
1166
1184
  var _a, _b, _c;
1167
1185
  try {