Repository navigation
@cloudflare/workers-utils@0.59.0
Minor Changes
-
#17164
7072797Thanks @petebacondarwin! - Create missing project files and install their tooling when autoconfig generatescloudflare.config.ts.Projects get a local manifest and TypeScript config where needed, along with default
cf devandcf buildscripts when those scripts are missing. Interactive setup asks before creating these files; non-interactive runs, such as CI, accept the additions without prompting. Existing scripts, compiler settings, and the project's choice of build tool are preserved, including Vite runners declared at the workspace root. New manifests set"type": "module"so Node loadscloudflare.config.tswithout a module-type warning. Existing manifests keep their module type. Autoconfig reports when an explicit CommonJS package setting prevents it from writing a usablecloudflare.config.ts.For static sites that serve the project root, autoconfig adds
node_modules,.cloudflare, and the new configuration and package-manager files to.assetsignore. Wrangler's asset watcher, local asset serving, and build output skip directories according to those rules, which you can edit to include paths you want to serve. Local dev still follows directory symlinks, but does not revisit ancestor directories.Builds do not support broken asset symlinks. A missing target fails the build unless
.assetsignoreexcludes the link regardless of whether it points to a file or a directory.writeAssetsaccepts an optional filter. It does not apply.assetsignorewhen no filter is provided. Wrangler uses the sharedcreateAssetsCopyFilterhelper to honor.assetsignoreand preserve asset metadata in build output. -
#17234
7217f26Thanks @petebacondarwin! - Share scaffolded asset ignore patterns and support fallback filtering for static Build Output.Consumers can pass the scaffolded rules as fallback patterns to
createAssetsCopyFilterand supply the resulting filter towriteAssets. Fallbacks apply only when.assetsignoreis missing, andwriteAssetscan report skipped entries throughonSkipwithout modifying the source tree.