summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Matt Kane <ematipico@users.noreply.github.com> 2024-12-19 11:12:01 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2024-12-19 11:12:01 +0000
commit45005a581d356e2cab4939031f036262ff1d9b5c (patch)
treee182d332a7e332248ec7ac2dd2c5ddba783f984d
parent1ec5b44ce3999f3528e9fa3cf6ed7f0ddb93c418 (diff)
downloadastro-45005a581d356e2cab4939031f036262ff1d9b5c.tar.gz
astro-45005a581d356e2cab4939031f036262ff1d9b5c.tar.zst
astro-45005a581d356e2cab4939031f036262ff1d9b5c.zip
[ci] format
-rw-r--r--packages/astro/src/core/session.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/astro/src/core/session.ts b/packages/astro/src/core/session.ts
index 590a5e194..9ac7327c5 100644
--- a/packages/astro/src/core/session.ts
+++ b/packages/astro/src/core/session.ts
@@ -375,7 +375,11 @@ export class AstroSession<TDriver extends SessionDriverName = any> {
return this.#storage!;
}
// Use fs-lite rather than fs, because fs can't be bundled. Add a default base path if not provided.
- if (this.#config.driver === 'fs' || this.#config.driver === 'fsLite' || this.#config.driver === 'fs-lite') {
+ if (
+ this.#config.driver === 'fs' ||
+ this.#config.driver === 'fsLite' ||
+ this.#config.driver === 'fs-lite'
+ ) {
this.#config.options ??= {};
this.#config.driver = 'fs-lite';
(this.#config.options as BuiltinDriverOptions['fs-lite']).base ??= '.astro/session';