Skip to content

Commit ab8bf8a

Browse files
committed
docs(options.ts): update default cache paths
The default cache paths in `options.ts` have been updated. The base directory for cache now uses `node_modules/.cache/unplugin_typia` (if exists) or `{TMP_DIR}/unplugin_typia` by default. This change improves cache handling and provides more flexibility for users.
1 parent e26e04e commit ab8bf8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/unplugin-typia/src/core/options.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export interface Options {
4343
* if `true`, it will enable cache with and will use node_modules/.cache/unplugin_typia (if exists) or {TMP_DIR}/unplugin_typia
4444
* if `false`, it will disable cache.
4545
* if object, it will enable cache with custom path.
46-
* @default { enable: true, base: /* TMP_DIR *\/ }
46+
* @default { enable: true, base: TMP_DIR }
4747
*/
4848
cache?: CacheOptions | true | false;
4949

@@ -66,7 +66,7 @@ export interface CacheOptions {
6666

6767
/**
6868
* The base directory for cache.
69-
* @default '/tmp/unplugin_typia'
69+
* @default will use node_modules/.cache/unplugin_typia (if exists) or {TMP_DIR}/unplugin_typia
7070
*/
7171
base?: string;
7272
};

0 commit comments

Comments
 (0)