Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Running pbts on non-.js extensions fails #2088

Open
@joshkel

Description

I'm experimenting with using .cjs and .d.cts instead of the default .js and .d.js for my protobuf-cli-generated files, as a workaround for ESM module issues reported elsewhere in the issue tracker. However, when I invoke pbts, I get a nearly empty .d.ts file with the message, "There are no input files to process."

Sample commands:

pbjs -t static-module test/TrendData.proto > test.cjs
pbts test.cjs

Sample output:

import * as $protobuf from "protobufjs";
import Long = require("long");
There are no input files to process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /