Skip to content

Running pbts on non-.js extensions fails #2088

@joshkel

Description

@joshkel

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