From 614d92584f0e11760d0ebeb7940acce18da4aa69 Mon Sep 17 00:00:00 2001 From: Quorafind Date: Sun, 29 Nov 2026 11:26:31 +0800 Subject: [PATCH] build(deps): take @taskgenius/calendar from npm instead of the submodule 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. --- .github/workflows/ci.yml | 6 ++---- .github/workflows/obsidian-review.yml | 6 ++---- package.json | 2 +- packages/calendar | 2 +- pnpm-lock.yaml | 20 ++++++++++++++++++-- 5 files changed, 24 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d5895662..ef9d10c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,10 +14,8 @@ jobs: - name: Checkout uses: actions/checkout@v4 - # Only the calendar submodule is needed to build; the docs submodule - # is not, so avoid `submodules: true` on checkout. - - name: Checkout calendar submodule - run: git submodule update --init packages/calendar + # No submodules: @taskgenius/calendar comes from npm, and building + # without them matches the community directory's build check. - name: Setup Node.js uses: actions/setup-node@v4 diff --git a/.github/workflows/obsidian-review.yml b/.github/workflows/obsidian-review.yml index d7f9e320..3e17291f 100644 --- a/.github/workflows/obsidian-review.yml +++ b/.github/workflows/obsidian-review.yml @@ -21,10 +21,8 @@ jobs: - name: Checkout uses: actions/checkout@v4 - # The build needs the calendar workspace package; the docs - # submodule is not needed. - - name: Checkout calendar submodule - run: git submodule update --init packages/calendar + # No submodules: the community directory scanner builds without + # them, and @taskgenius/calendar comes from npm. # Version comes from "packageManager" in package.json (see ci.yml). # pnpm-lock.yaml makes the action install with pnpm. diff --git a/package.json b/package.json index 08896789..c644016c 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ }, "dependencies": { "@popperjs/core": "^2.11.8", - "@taskgenius/calendar": "workspace:*", + "@taskgenius/calendar": "^0.16.3", "@types/sortablejs": "^1.15.8", "chrono-node": "^2.7.6", "date-fns": "^4.1.0", diff --git a/packages/calendar b/packages/calendar index 314d5eec..eeda06e4 160000 --- a/packages/calendar +++ b/packages/calendar @@ -1 +1 @@ -Subproject commit 314d5eec5505056b31e4e81e44b14e27ce5298e0 +Subproject commit eeda06e45b1d1ef8d6a9e579980de24011421e9f diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 677a09d6..85ac321b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,8 +12,8 @@ importers: specifier: ^2.11.8 version: 2.11.8 '@taskgenius/calendar': - specifier: workspace:* - version: link:packages/calendar + specifier: ^0.16.3 + version: 0.16.3(date-fns@4.1.0)(dayjs@1.11.19) '@types/sortablejs': specifier: ^1.15.8 version: 1.15.9 @@ -1703,6 +1703,17 @@ packages: '@speed-highlight/core@1.2.12': resolution: {integrity: sha512-uilwrK0Ygyri5dToHYdZSjcvpS2ZwX0w5aSt3GCEN9hrjxWCoeV4Z2DTXuxjwbntaLQIEEAlCeNQss5SoHvAEA==} + '@taskgenius/calendar@0.16.3': + resolution: {integrity: sha512-ccpXIJP1KgfPkE4N9X3cIrKa3RsDJr7uYlAFYVcIQof+P+r9RGAEw3Nqf1tCFNAvZlE3ox90yzhG3XmR/yB30g==} + peerDependencies: + date-fns: ^2.30.0 || ^3.0.0 || ^4.0.0 + dayjs: ^1.11.0 + peerDependenciesMeta: + date-fns: + optional: true + dayjs: + optional: true + '@tootallnate/once@2.0.0': resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==} engines: {node: '>= 10'} @@ -6353,6 +6364,11 @@ snapshots: '@speed-highlight/core@1.2.12': {} + '@taskgenius/calendar@0.16.3(date-fns@4.1.0)(dayjs@1.11.19)': + optionalDependencies: + date-fns: 4.1.0 + dayjs: 1.11.19 + '@tootallnate/once@2.0.0': {} '@tootallnate/quickjs-emscripten@0.23.0': {}