create-adapter icon indicating copy to clipboard operation
create-adapter copied to clipboard

Check for updates on startup

Open AlCalzone opened this issue 2 years ago • 0 comments

With npx it can happen that an old version is cached. We should detect that and warn the user. If that happens we need to tell him to use the npx command with @latest at the end of the package name. We should also update the docs to have have by default in. If the version does not match we should stop the process unless a parameter of "--ignore-outdated-version" is provided

Version check can be done like in dev-server: see https://github.com/ioBroker/dev-server/blob/93790110fa07cf60da42bfd97cbf51c6dc75b6f9/src/index.ts#L231-L259

AlCalzone avatar Mar 02 '23 09:03 AlCalzone