Skip to content

Function deploy uploads entrypoint without imported local helper #279

Description

@agent-zhang-beihai

What happens

Deploying a TypeScript Function whose entrypoint imports ./modular-procurement-shared.ts completed the entrypoint upload but the runtime build failed because the imported local file was not included. I expected deploy to bundle or upload the local dependency graph, or fail locally with a clear unsupported-import message.

Command

insforge functions deploy <slug> --file functions/<entry>.ts

Expected

A deployable Function source can use local shared modules, or the CLI documents and validates that only a single self-contained file is supported.

Workaround

Bundled each entrypoint and its local imports into a temporary single file with esbuild, then deployed that bundle while keeping modular source in the repository.

Triage finding

Verified on HEAD and in the published 0.2.8 tarball that functions deploy still does a bare readFileSync of the single --file entrypoint with no bundling, no dependency-graph upload, and no local validation of relative imports — README documents neither constraint, and no existing issue/PR tracks it; cheapest first step is a fail-fast pre-flight check for .//../ imports rather than letting it fail in the server-side build.

· win32 10.0.26200

Filed automatically from user feedback.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions