create-kofi-stack 1.2.13 → 1.2.15

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/dist/index.js +92 -14
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1939,12 +1939,12 @@ export const getCurrentUser = query({
1939
1939
  }
1940
1940
  async function generateHttp(convexDir) {
1941
1941
  const content = `import { httpRouter } from 'convex/server'
1942
- import { authComponent } from './auth'
1942
+ import { authComponent, createAuth } from './auth'
1943
1943
 
1944
1944
  const http = httpRouter()
1945
1945
 
1946
- // Add Better Auth HTTP routes
1947
- authComponent.addHttpRoutes(http)
1946
+ // Register Better Auth HTTP routes
1947
+ authComponent.registerRoutes(http, createAuth)
1948
1948
 
1949
1949
  export default http
1950
1950
  `;
@@ -3200,14 +3200,26 @@ async function generateUIPackage(config, targetDir) {
3200
3200
  };
3201
3201
  await writeJSON(path14.join(uiDir, "package.json"), packageJson2);
3202
3202
  const tsConfig = {
3203
- extends: "@repo/config-typescript/base.json",
3204
3203
  compilerOptions: {
3204
+ target: "ES2020",
3205
+ lib: ["dom", "dom.iterable", "esnext"],
3206
+ allowJs: true,
3207
+ skipLibCheck: true,
3208
+ strict: true,
3209
+ noEmit: true,
3210
+ esModuleInterop: true,
3211
+ module: "esnext",
3212
+ moduleResolution: "bundler",
3213
+ resolveJsonModule: true,
3214
+ isolatedModules: true,
3205
3215
  jsx: "react-jsx",
3216
+ incremental: true,
3206
3217
  paths: {
3207
3218
  "@/*": ["./src/*"]
3208
3219
  }
3209
3220
  },
3210
- include: ["src/**/*"]
3221
+ include: ["src/**/*"],
3222
+ exclude: ["node_modules"]
3211
3223
  };
3212
3224
  await writeJSON(path14.join(uiDir, "tsconfig.json"), tsConfig);
3213
3225
  const style = `${config.shadcn.componentLibrary}-${config.shadcn.styleVariant}`;
@@ -4199,8 +4211,21 @@ export default withPayload(nextConfig)
4199
4211
  }
4200
4212
  async function generatePayloadTsConfig(marketingDir) {
4201
4213
  const tsConfig = {
4202
- extends: "@repo/config-typescript/nextjs.json",
4203
4214
  compilerOptions: {
4215
+ target: "ES2017",
4216
+ lib: ["dom", "dom.iterable", "esnext"],
4217
+ allowJs: true,
4218
+ skipLibCheck: true,
4219
+ strict: true,
4220
+ noEmit: true,
4221
+ esModuleInterop: true,
4222
+ module: "esnext",
4223
+ moduleResolution: "bundler",
4224
+ resolveJsonModule: true,
4225
+ isolatedModules: true,
4226
+ jsx: "preserve",
4227
+ incremental: true,
4228
+ plugins: [{ name: "next" }],
4204
4229
  paths: {
4205
4230
  "@/*": ["./src/*"]
4206
4231
  }
@@ -4300,10 +4325,24 @@ export default withMDX(config)
4300
4325
  }
4301
4326
  async function generateFumadocsTsConfig(docsDir) {
4302
4327
  const tsConfig = {
4303
- extends: "@repo/config-typescript/nextjs.json",
4304
4328
  compilerOptions: {
4329
+ target: "ES2020",
4330
+ lib: ["dom", "dom.iterable", "esnext"],
4331
+ allowJs: true,
4332
+ skipLibCheck: true,
4333
+ strict: true,
4334
+ noEmit: true,
4335
+ esModuleInterop: true,
4336
+ module: "esnext",
4337
+ moduleResolution: "bundler",
4338
+ resolveJsonModule: true,
4339
+ isolatedModules: true,
4340
+ jsx: "preserve",
4341
+ incremental: true,
4342
+ plugins: [{ name: "next" }],
4305
4343
  paths: {
4306
- "@/*": ["./src/*"]
4344
+ "@/*": ["./src/*"],
4345
+ "@/.source": ["./.source/index.ts"]
4307
4346
  }
4308
4347
  },
4309
4348
  include: [
@@ -4319,12 +4358,13 @@ async function generateFumadocsTsConfig(docsDir) {
4319
4358
  await writeJSON(path16.join(docsDir, "tsconfig.json"), tsConfig);
4320
4359
  }
4321
4360
  async function generateFumadocsSource(docsDir) {
4322
- const content = `import { docs } from 'fumadocs-mdx:collections/server'
4361
+ const content = `import { docs, meta } from '@/.source'
4323
4362
  import { loader } from 'fumadocs-core/source'
4363
+ import { createMDXSource } from 'fumadocs-mdx'
4324
4364
 
4325
4365
  export const source = loader({
4326
4366
  baseUrl: '/docs',
4327
- source: docs.toFumadocsSource(),
4367
+ source: createMDXSource(docs, meta),
4328
4368
  })
4329
4369
  `;
4330
4370
  await writeFile(path16.join(docsDir, "src/lib/source.ts"), content);
@@ -4447,7 +4487,7 @@ export default function HomePage() {
4447
4487
  await writeFile(path16.join(docsDir, "src/app/global.css"), globalCssContent);
4448
4488
  const sourceConfigContent = `import { defineDocs, defineConfig } from 'fumadocs-mdx/config'
4449
4489
 
4450
- export const docs = defineDocs({
4490
+ export const { docs, meta } = defineDocs({
4451
4491
  dir: 'content/docs',
4452
4492
  })
4453
4493
 
@@ -4865,9 +4905,21 @@ async function generatePackageJson2(config, appDir) {
4865
4905
  }
4866
4906
  async function generateTsConfig2(appDir) {
4867
4907
  const tsConfig = {
4868
- extends: "@repo/config-typescript/nextjs.json",
4869
4908
  compilerOptions: {
4909
+ target: "ES2017",
4910
+ lib: ["dom", "dom.iterable", "esnext"],
4911
+ allowJs: true,
4912
+ skipLibCheck: true,
4913
+ strict: true,
4914
+ noEmit: true,
4915
+ esModuleInterop: true,
4916
+ module: "esnext",
4917
+ moduleResolution: "bundler",
4918
+ resolveJsonModule: true,
4919
+ isolatedModules: true,
4870
4920
  jsx: "preserve",
4921
+ incremental: true,
4922
+ plugins: [{ name: "next" }],
4871
4923
  paths: {
4872
4924
  "@/*": ["./src/*"],
4873
4925
  "@repo/ui": ["../../packages/ui/src"],
@@ -7051,8 +7103,21 @@ async function generateHuskyHooks(targetDir) {
7051
7103
  }
7052
7104
  async function updateWebTsConfig(webDir) {
7053
7105
  const tsConfig = {
7054
- extends: "@repo/config-typescript/nextjs.json",
7055
7106
  compilerOptions: {
7107
+ target: "ES2017",
7108
+ lib: ["dom", "dom.iterable", "esnext"],
7109
+ allowJs: true,
7110
+ skipLibCheck: true,
7111
+ strict: true,
7112
+ noEmit: true,
7113
+ esModuleInterop: true,
7114
+ module: "esnext",
7115
+ moduleResolution: "bundler",
7116
+ resolveJsonModule: true,
7117
+ isolatedModules: true,
7118
+ jsx: "preserve",
7119
+ incremental: true,
7120
+ plugins: [{ name: "next" }],
7056
7121
  paths: {
7057
7122
  "@/*": ["./src/*"]
7058
7123
  }
@@ -7162,8 +7227,21 @@ export default function RootLayout({
7162
7227
  globalsCss
7163
7228
  );
7164
7229
  const tsConfig = {
7165
- extends: "@repo/config-typescript/nextjs.json",
7166
7230
  compilerOptions: {
7231
+ target: "ES2017",
7232
+ lib: ["dom", "dom.iterable", "esnext"],
7233
+ allowJs: true,
7234
+ skipLibCheck: true,
7235
+ strict: true,
7236
+ noEmit: true,
7237
+ esModuleInterop: true,
7238
+ module: "esnext",
7239
+ moduleResolution: "bundler",
7240
+ resolveJsonModule: true,
7241
+ isolatedModules: true,
7242
+ jsx: "preserve",
7243
+ incremental: true,
7244
+ plugins: [{ name: "next" }],
7167
7245
  paths: {
7168
7246
  "@/*": ["./src/*"]
7169
7247
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-kofi-stack",
3
- "version": "1.2.13",
3
+ "version": "1.2.15",
4
4
  "description": "Scaffold opinionated full-stack projects with Next.js, Convex, Better-Auth, and more",
5
5
  "type": "module",
6
6
  "bin": {