Skip to content

How do I upgrade my plugin to the newest state of homebridge-plugin-template #91

@jackjansen

Description

@jackjansen

Describe Your Problem:
I recently got back to continuing development of a Homebridge plugin on which I got started 3 years ago.
My plugin doesn't build anymore, npm run build gives all sorts of compilation errors in node modules that I have never heard of. They are all dependencies of some mode that I am using (I think in this case it is @abandonware/noble, but this isn't important).

The problem is that my dependencies in tsconfig.json are frozen in time from when I forked this repo.

But the dependencies in package.json (and not only in my package.json but also in those of my dependencies) are all of the "^version" form.

So somewhere in the update between @types/w3c-web-usb from 1.0.6 to 1.0.10 something broke in my tsconfig.json.

When I finally thought of looking at what had changed in this repo (homebridge-plugin-template) it was clear what I had to do. But even finding this repo needed some manual inspection of URLs in the readme. And there is no indication in the readme that it may be wise to use the template repo as an upstream (if that works) or another way of re-synchronizing your plugin repo to the current state of the template.

Logs:

Not relevant.

Plugin Config:

Not relevant.

Screenshots:

Not relevant.

Environment:

  • Plugin Version:
  • Homebridge Version: 1.11.1
  • Node.js Version: v22.18.0
  • NPM Version: 10.9.3
  • Operating System: macOS and raspbian.
  • homebridge-plugin-template: cloned on 14-Jan-2023

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions