Strapi doesn't call lifecycle plugin methods when dependency is in "devDependencies"

I built a custom plugin with strapi generate:plugin my-plugin and deployed it in npm.

The thing is that when I add the dependency as a devDependencies, config/functions/bootstrap.js is never called.

Is this normal or I did something wrong?


I am facing a very similar issue:
When adding the strapi-plugin-content-type-builder as a dev dependency, the plugin is not loaded into strapi (it doesn’t appear on in the admin menu or the plugins section).
It works just fine when added as a regular dependency.
Are devDependencies excluded from build ?
It would be great to be able to have some plugins available on the dev environment but excluded from the production one.