Skip to content

Commit ed53080

Browse files
Sync kit docs (#1494)
sync kit docs Co-authored-by: svelte-docs-bot[bot] <196124396+svelte-docs-bot[bot]@users.noreply.github.com>
1 parent 746e23d commit ed53080

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

apps/svelte.dev/content/docs/kit/25-build-and-deploy/60-adapter-cloudflare.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export default config;
238238
/// file: wrangler.toml
239239
---site.bucket = ".cloudflare/public"---
240240
+++assets.directory = ".cloudflare/public"
241-
assets.binding = "ASSETS"+++
241+
assets.binding = "ASSETS" # Exclude this if you don't have a `main` key configured.+++
242242
```
243243
244244
### wrangler.jsonc
@@ -251,7 +251,7 @@ assets.binding = "ASSETS"+++
251251
},---
252252
+++ "assets": {
253253
"directory": ".cloudflare/public",
254-
"binding": "ASSETS"
254+
"binding": "ASSETS" // Exclude this if you don't have a `main` key configured.
255255
}+++
256256
}
257257
```

apps/svelte.dev/content/docs/kit/30-advanced/70-packaging.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ You can create so-called declaration maps (`d.ts.map` files) by setting `"declar
243243
- `-w`/`--watch` — watch files in `src/lib` for changes and rebuild the package
244244
- `-i`/`--input` — the input directory which contains all the files of the package. Defaults to `src/lib`
245245
- `-o`/`--output` — the output directory where the processed files are written to. Your `package.json`'s `exports` should point to files inside there, and the `files` array should include that folder. Defaults to `dist`
246+
- `-p`/`--preserve-output` — prevent deletion of the output directory before packaging. Defaults to `false`, which means that the output directory will be emptied first
246247
- `-t`/`--types` — whether or not to create type definitions (`d.ts` files). We strongly recommend doing this as it fosters ecosystem library quality. Defaults to `true`
247248
- `--tsconfig` - the path to a tsconfig or jsconfig. When not provided, searches for the next upper tsconfig/jsconfig in the workspace path.
248249

0 commit comments

Comments
 (0)