In our shared library, we have streamlined the bootstrapping code installation through Bootstrap for most users who utilize plain Javascript on the front end. However, there are also a few individuals who prefer to work with Typescript.
Could it be possible to incorporate a list of dependencies specific to Typescript in the package.json file? These could include modules like @types
and other components related to Typescript, which would only be installed if a certain flag is provided. For instance, running npm install
would solely install the standard packages, while executing npm install --some-flag
would trigger the installation of the supplementary packages as well.