create-sonamu 0.1.15 → 0.1.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-sonamu",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "description": "Create a new Sonamu project",
5
5
  "keywords": [
6
6
  "sonamu",
@@ -39,7 +39,7 @@
39
39
  "knex": "^3.1.0",
40
40
  "pg": "^8.16.3",
41
41
  "radashi": "^12.2.0",
42
- "sonamu": "^0.8.12",
42
+ "sonamu": "^0.8.13",
43
43
  "zod": "^4.3.6"
44
44
  },
45
45
  "devDependencies": {
@@ -2,7 +2,7 @@ import { getConsoleSink } from "@logtape/logtape";
2
2
  import { getPrettyFormatter } from "@logtape/pretty";
3
3
  import dotenv from "dotenv";
4
4
  import path from "path";
5
- import { CachePresets, defineConfig, passkey, twoFactor } from "sonamu";
5
+ import { CachePresets, defineConfig } from "sonamu";
6
6
  import { drivers as cacheDrivers, store } from "sonamu/cache";
7
7
  import { drivers } from "sonamu/storage";
8
8
 
@@ -114,27 +114,27 @@ export default defineConfig({
114
114
  },
115
115
  },
116
116
 
117
- auth: {
118
- appName: "Sonamu Project",
119
- plugins: [twoFactor(), passkey()],
120
- emailAndPassword: { enabled: true },
121
- baseURL: process.env.BETTER_AUTH_URL ?? `http://${host}:${port}`,
122
- secret: process.env.BETTER_AUTH_SECRET ?? "miomock-secret-key-change-this-in-production",
123
- trustedOrigins: ["http://localhost:5173"],
124
- session: {
125
- expiresIn: 60 * 60 * 24 * 365,
126
- },
127
- user: {
128
- fields: {
129
- name: "username",
130
- emailVerified: "is_verified",
131
- },
132
- additionalFields: {
133
- role: { type: "string", sonamuType: "UserRole" },
134
- created_at: { type: "date" },
135
- },
136
- },
137
- },
117
+ // auth: {
118
+ // appName: "Sonamu Project",
119
+ // plugins: [twoFactor(), passkey()],
120
+ // emailAndPassword: { enabled: true },
121
+ // baseURL: process.env.BETTER_AUTH_URL ?? `http://${host}:${port}`,
122
+ // secret: process.env.BETTER_AUTH_SECRET ?? "miomock-secret-key-change-this-in-production",
123
+ // trustedOrigins: ["http://localhost:5173"],
124
+ // session: {
125
+ // expiresIn: 60 * 60 * 24 * 365,
126
+ // },
127
+ // user: {
128
+ // fields: {
129
+ // name: "username",
130
+ // emailVerified: "is_verified",
131
+ // },
132
+ // additionalFields: {
133
+ // role: { type: "string", sonamuType: "UserRole" },
134
+ // created_at: { type: "date" },
135
+ // },
136
+ // },
137
+ // },
138
138
 
139
139
  apiConfig: {
140
140
  contextProvider: (defaultContext, request) => {
@@ -1,5 +1,4 @@
1
- import type { MakeDirectoryOptions, Mode, PathLike, RmOptions } from "fs";
2
- import type { FileHandle } from "fs/promises";
1
+ import type { PathLike } from "fs";
3
2
  // import { Naite } from "sonamu";
4
3
  import { vi } from "vitest";
5
4
 
@@ -1,6 +1,5 @@
1
1
  import { SidebarProvider } from "@sonamu-kit/react-components/components";
2
2
  import { useRouterState } from "@tanstack/react-router";
3
- import { TanStackRouterDevtools } from "@tanstack/react-router-devtools";
4
3
  import { type ReactNode, Suspense, useEffect } from "react";
5
4
  import Sidebar from "./components/Sidebar";
6
5
  import { SUPPORTED_LOCALES, setLocale } from "./i18n/sd.generated";
@@ -35,7 +34,6 @@ function App({ children }: AppProps) {
35
34
  </div>
36
35
  </div>
37
36
  </SidebarProvider>
38
- {import.meta.env.DEV && <TanStackRouterDevtools initialIsOpen={false} />}
39
37
  </>
40
38
  );
41
39
  }