Skip to content

source/ cannot be type-checked or built: sync relocates packages/* to source/shared/* without rewriting relative imports #6

Description

@Shyboy0499

Summary

source/ cannot be type-checked or built from a clean checkout of this repository. The sync from iPolloWork relocates the shared packages from packages/* to source/shared/* but does not rewrite the relative imports that point at them, so every path traverses out of the mirror and lands on something that does not exist.

This affects all three plugins, which means a contributor cannot validate a source/ change locally before opening the pull request that source/README.md invites.

Reproduce

git clone https://github.com/Devin-AXIS/deepseek-design.git
cd deepseek-design/source/plugins/deepseek-ivideo
pnpm install --frozen-lockfile
pnpm run check

Result: 13 errors, 6 of them TS2307: Cannot find module. Working tree is clean (git status --porcelain is empty).

src/client.tsx(9,8):  error TS2307: Cannot find module '../../../../packages/video-studio/src/bridge'
src/index.ts(13,8):   error TS2307: Cannot find module '../../../../packages/types/src/templates'
src/index.ts(26,8):   error TS2307: Cannot find module '../../studio-host/src/http'
src/runtime.ts(13,8): error TS2307: Cannot find module '../../../../packages/video-studio/src/project'
...

Path mapping

From source/plugins/deepseek-ivideo/src/:

Import as written Resolves to Actually present at
../../../../packages/video-studio/src/project <repo>/packages/video-studio/… (missing) source/shared/video-studio/src/project.ts
../../../../packages/types/src/templates <repo>/packages/types/… (missing) source/shared/types/templates.ts — note the src/ segment is also dropped in the mirror
../../studio-host/src/http source/plugins/studio-host/… (missing) source/shared/studio-host/src/http.ts

<repo>/packages/ in this mirror holds the three built npm packages, not the shared sources, so the first two can never resolve here.

Also affected

  • source/plugins/deepseek-idesign/src/ — same pattern (../../../../packages/design-studio/src/bridge, ../../../../packages/types/src/templates, ../../studio-host/…).
  • source/plugins/deepseek-ippt/src/../../design-studio/src/client and ../../design-studio/src/index; design-studio is at source/shared/design-studio, and src/client.ts is not mirrored at all.
  • source/plugins/deepseek-ivideo/tsdown.config.ts — the contract entry points at ../../../packages/video-studio/src/index.ts, which is missing; the file exists at source/shared/video-studio/src/index.ts.

Separately, pnpm test cannot run either

test chains build, whose build:runtime step runs stage-hyperframes-runtime.mjs. That script expects <repo>/vendor/hyperframes and invokes bun. Neither the vendor tree nor a bun requirement is present in this mirror, so it exits before the tests are reached.

Suggested direction

Either rewrite the relative specifiers during sync to match the source/shared/* layout, or add paths mappings in the mirrored tsconfig.json files so the upstream specifiers resolve here. Documenting in source/README.md which checks are expected to pass in the mirror would also help — right now package.json advertises check and test scripts that cannot succeed.

Context

Found while preparing #5. That pull request touches only source/plugins/deepseek-ivideo, and I verified it behaviourally because neither check nor test can produce a clean baseline here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions