From a0da6fb439b7db60758ebf26653c8e9f124bab73 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 10 Feb 2022 12:25:04 -0500 Subject: [PATCH] expose trailingSlash to adapters --- packages/kit/src/core/adapt/builder.js | 1 + packages/kit/types/config.d.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/kit/src/core/adapt/builder.js b/packages/kit/src/core/adapt/builder.js index e127d8816ba5..28ece10289a3 100644 --- a/packages/kit/src/core/adapt/builder.js +++ b/packages/kit/src/core/adapt/builder.js @@ -33,6 +33,7 @@ export function create_builder({ cwd, config, build_data, log }) { copy, appDir: config.kit.appDir, + trailingSlash: config.kit.trailingSlash, createEntries(fn) { generated_manifest = true; diff --git a/packages/kit/types/config.d.ts b/packages/kit/types/config.d.ts index 18cb8e32d507..f28a4efb707e 100644 --- a/packages/kit/types/config.d.ts +++ b/packages/kit/types/config.d.ts @@ -41,6 +41,7 @@ export interface Builder { mkdirp(dir: string): void; appDir: string; + trailingSlash: 'always' | 'never' | 'ignore'; /** * Create entry points that map to individual functions