create-adapter
create-adapter copied to clipboard
Check for updates on startup
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