Skip to content

fix: move Bases engine files to filesToModify so updates reach existing gardens - #406

Merged
oleeskild merged 1 commit into
mainfrom
fix/bases-files-to-modify
Aug 17, 2026
Merged

fix: move Bases engine files to filesToModify so updates reach existing gardens#406
oleeskild merged 1 commit into
mainfrom
fix/bases-files-to-modify

Conversation

@oleeskild

Copy link
Copy Markdown
Owner

Fixes the template-update gap reported in #816 (comment).

TemplateManager.getFilesToAdd in the plugin skips any filesToAdd entry that already exists in the user's repo, so gardens that adopted Bases support at 1.82.0 never received the 1.83.x fixes to exprEval.js and friends — users had to copy the files by hand.

This moves all Bases-related files (the eight bases-engine/ modules, basesPlugin.js, basesScript.njk, obsidian-bases.scss) from filesToAdd to filesToModify. This is safe for gardens that don't have them yet: getPathsToModify queues missing files with an undefined sha, and addOrUpdateFiles creates a file when no sha is passed.

These files are engine code, not user-customizable (unlike custom-style.scss/userSetup.js, which stay in filesToAdd), so overwriting on update is the intended behavior.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EDQTKUG4XFSGLwoJLcdk74

…ng gardens

Files under filesToAdd are skipped by the plugin's template updater when
they already exist in a user's garden, so gardens that adopted Bases at
1.82.0 never received fixes to exprEval.js, linkUtils usage, etc. in
later releases. filesToModify both creates missing files and updates
changed ones, so the Bases engine, plugin, script, and stylesheet
belong there.

Reported in #816.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EDQTKUG4XFSGLwoJLcdk74
@oleeskild
oleeskild merged commit e23fe77 into main Aug 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant