File tree 4 files changed +21
-0
lines changed
4 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,13 @@ import type { ArgsDef } from 'citty'
2
2
import { CWDArg } from './cwd.mjs'
3
3
import { DebugArg } from './debug.mjs'
4
4
import { EnvironmentArg } from './environment.mjs'
5
+ import { JitiArgs } from './jiti.mjs'
5
6
import { NoOutdatedCheckArg } from './no-outdated-notice.mjs'
6
7
7
8
export const CommonArgs = {
8
9
...CWDArg ,
9
10
...DebugArg ,
10
11
...EnvironmentArg ,
12
+ ...JitiArgs ,
11
13
...NoOutdatedCheckArg ,
12
14
} satisfies ArgsDef
Original file line number Diff line number Diff line change
1
+ import type { ArgsDef } from 'citty'
2
+
3
+ const NoFilesystemCachingArg = {
4
+ 'no-filesystem-caching' : {
5
+ default : false ,
6
+ description :
7
+ 'Will not write cache files to disk. See https://github.com/unjs/jiti#fscache for more information.' ,
8
+ type : 'boolean' ,
9
+ } ,
10
+ } satisfies ArgsDef
11
+
12
+ export const JitiArgs = {
13
+ ...NoFilesystemCachingArg ,
14
+ } satisfies ArgsDef
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import type { ArgsDef } from 'citty'
2
2
3
3
export const NoOutdatedCheckArg = {
4
4
'no-outdated-check' : {
5
+ default : false ,
5
6
description :
6
7
'Will not check for latest kysely/kysely-ctl versions and notice newer versions exist.' ,
7
8
type : 'boolean' ,
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import type {
10
10
export interface ArgsLike {
11
11
cwd ?: string
12
12
environment ?: string
13
+ 'filesystem-caching' ?: boolean
13
14
}
14
15
15
16
export async function getConfig (
@@ -21,6 +22,9 @@ export async function getConfig(
21
22
cwd,
22
23
dotenv : true ,
23
24
envName : args . environment ,
25
+ jitiOptions : {
26
+ fsCache : Boolean ( args [ 'filesystem-caching' ] ) ,
27
+ } ,
24
28
globalRc : false ,
25
29
name : 'kysely' ,
26
30
packageJson : false ,
You can’t perform that action at this time.
0 commit comments