Skip to content

build(deps): take @taskgenius/calendar from npm instead of the submodule - #726

Merged
Quorafind merged 1 commit into
masterfrom
build/calendar-from-npm
Nov 29, 2026
Merged

Quorafind merged 1 commit into
masterfrom
build/calendar-from-npm

Conversation

@Quorafind

Copy link
Copy Markdown
Member

Fixes the community directory's "Build verification failed" warning.

Cause

The directory clones the repo without submodules. @taskgenius/calendar was workspace:* → packages/calendar, which is empty in that clone, so tsc failed with Cannot find module '@taskgenius/calendar'. I reproduced this by building a fresh clone of master without submodules.

Change

  • Depend on @taskgenius/calendar@^0.16.3 from npm. 0.16.3 was released from taskgenius/calendar main, i.e. the commit the submodule pinned (314d5ee) plus the version bump.
    • npm's previous 0.16.2 lacked the review fixes and the DateFnsAdapter, drag and renderer changes.
  • Point the submodule at the release commit eeda06e.
  • CI and the Obsidian review workflow no longer init the submodule, so they build the same way the directory does.
  • The lockfile only adds the calendar entries. Running pnpm install would also have re-resolved the git-hosted @codemirror/language and obsidian dependencies, so I edited it by hand; the integrity hash matches the registry.

Verification

A fresh clone of this branch without submodules passes pnpm install --frozen-lockfile and pnpm run build (tsc + esbuild). styles.css is byte-identical in size to the 10.1.2 asset.

Local development note

The plugin no longer builds against packages/calendar automatically. To try local calendar changes in the plugin, link it with pnpm link ./packages/calendar or point the dependency at the workspace temporarily, then publish a calendar release before shipping the plugin.

The community directory clones the repo without submodules, so the workspace:* link to packages/calendar resolved to nothing and its build check failed with "Cannot find module '@taskgenius/calendar'". Depend on the published package (0.16.3, cut from the commit the submodule pinned), and point the submodule at that release commit.

CI and the Obsidian review workflow no longer init the submodule, so they build the way the directory does. The lockfile change adds only the calendar entries; nothing else is re-resolved.
@Quorafind
Quorafind merged commit cb49ba4 into master Nov 29, 2026
3 checks passed
@Quorafind
Quorafind deleted the build/calendar-from-npm branch November 29, 2026 03:46
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant