Bit: Using components without node_modules and dist folders

Created on 17 Jan 2019  路  1Comment  路  Source: teambit/bit

Expected Behavior

Using components without node_modules and dist folders.

Actual Behavior

Let' s assume that I import LoginPage component from scope to project.
Folder structure look like this after import :

 --LoginPage
   --dist
   --index.js
   --node_modules
   --package.json 

陌s there any way to use imported components without including node_modules and dist in LoginPage folder ?

Should I have to delete the node_modules and dist manually every time if I don't want to have it in LoginPage folder ?

Specifications

  • Platform: react-typescript
  • Bit compiler (include version): bit.envs/compilers/[email protected]

Most helpful comment

there are a few flags you should use to do just that:

bit import <component id> --skip-npm-install --ignore-dist

>All comments

there are a few flags you should use to do just that:

bit import <component id> --skip-npm-install --ignore-dist

Was this page helpful?
0 / 5 - 0 ratings

Related issues

seed-of-apricot picture seed-of-apricot  路  21Comments

KutnerUri picture KutnerUri  路  12Comments

ranm8 picture ranm8  路  16Comments

AlexanderKaran picture AlexanderKaran  路  10Comments

FredyC picture FredyC  路  20Comments