File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232 "tsx" : " npm:@cordiverse/tsx@4.19.3-fix.3" ,
3333 "typescript" : " ^5.9.3" ,
3434 "yakumo" : " ^3.1.1" ,
35- "yakumo-esbuild" : " ^3.0.1 " ,
35+ "yakumo-esbuild" : " ^3.0.2 " ,
3636 "yakumo-mocha" : " ^3.0.3" ,
3737 "yakumo-tsc" : " ^3.0.1" ,
3838 "yml-register" : " ^1.2.5"
Original file line number Diff line number Diff line change 11{
22 "name" : " @cordisjs/plugin-database-sqlite" ,
3- "version" : " 5.0.3 " ,
3+ "version" : " 5.0.4 " ,
44 "description" : " SQLite Driver for Minato" ,
55 "type" : " module" ,
66 "main" : " lib/index.js" ,
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ import enUS from './locales/en-US.yml'
88import zhCN from './locales/zh-CN.yml'
99import { SQLiteBuilder } from './builder'
1010import { fileURLToPath } from 'node:url'
11+ import { mkdirSync } from 'node:fs'
12+ import { dirname } from 'node:path'
1113import z from 'schemastery'
1214
1315function getTypeDef ( { deftype : type } : Field ) {
@@ -164,6 +166,7 @@ export class SQLiteDriver extends Driver<SQLiteDriver.Config> {
164166 this . path = this . config . path
165167 if ( this . path !== ':memory:' ) {
166168 this . path = fileURLToPath ( new URL ( this . path , this . ctx . baseUrl ) )
169+ mkdirSync ( dirname ( this . path ) , { recursive : true } )
167170 }
168171
169172 const { DatabaseSync } = await import ( 'node:sqlite' )
You can’t perform that action at this time.
0 commit comments