@teambit/isolator 1.0.310 → 1.0.311
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifacts/__bit_junit.xml +1 -1
- package/artifacts/preview/teambit_component_isolator-preview.js +1 -1
- package/artifacts/schema.json +117 -62
- package/dist/capsule/container-exec.d.ts +0 -1
- package/dist/capsule/container.d.ts +0 -1
- package/dist/{preview-1718853656395.js → preview-1719137078208.js} +2 -2
- package/package.json +9 -9
@@ -1,4 +1,4 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<testsuites tests="0" failures="0" errors="0" skipped="0">
|
3
|
-
<testsuite name="teambit.component/isolator@1.0.
|
3
|
+
<testsuite name="teambit.component/isolator@1.0.311" tests="0" failures="0" errors="0" skipped="0"/>
|
4
4
|
</testsuites>
|
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.component/isolator-preview"]=t():e["teambit.component/isolator-preview"]=t()}(self,(()=>(()=>{"use strict";var e={
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.component/isolator-preview"]=t():e["teambit.component/isolator-preview"]=t()}(self,(()=>(()=>{"use strict";var e={84794:(e,t,o)=>{var n={id:"teambit.component/isolator@1.0.311",homepage:"https://bit.cloud/teambit/component/isolator",exported:!0};function r(){const e=a(o(41594));return r=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,a.__bit_component=n;const s=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/isolator.svg"}));s.__bit_component=n,t.Logo=s},41594:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,o),a.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};o.r(n),o.d(n,{compositions:()=>m,compositions_metadata:()=>h,overview:()=>f});var r={};o.r(r),o.d(r,{default:()=>u});var a=o(84794);o(41594);const s=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var l=["components"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},p.apply(null,arguments)}var c={},d="wrapper";function u(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;o[n]=e[n]}return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)o=a[n],t.indexOf(o)>=0||{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,l);return(0,s.mdx)(d,p({},c,o,{components:t,mdxType:"MDXLayout"}),(0,s.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,s.mdx)("h2",null,"Isolate a component"),(0,s.mdx)("pre",null,(0,s.mdx)("code",{parentName:"pre",className:"language-bash"},"bit create-capsule ui/button\n")),(0,s.mdx)("h2",null,"Entities"),(0,s.mdx)("h3",null,"Capsule"),(0,s.mdx)("p",null,"Bit implements a filesystem capsule, which is an isolated folder containing the component files.\nCapsules include the component files and links to other capsules that include the component's dependencies."),(0,s.mdx)("h3",null,"Network"),(0,s.mdx)("p",null,"A network is a group of capsules, related to one another by their dependencies.\nA network includes a graph of all seed components given to it, as well as a list of the capsules."),(0,s.mdx)("p",null,"Example:"),(0,s.mdx)("pre",null,(0,s.mdx)("code",{parentName:"pre",className:"language-javascript"},"const Network = {\n graph: Graph,\n capsules: CapsuleList,\n};\n")),(0,s.mdx)("h2",null,"API"),(0,s.mdx)("p",null,"The exact particularities of this API are beyond the scope of this readme. Instead, this document opts to\nprovide a general description of the methods of this API and their purpose."),(0,s.mdx)("h3",null,"Isolator.isolateComponents"),(0,s.mdx)("p",null,"This method receives a list of components, create capsule for the components and write the components data into the capsule.\nIt returns a list of capsules.")))}u.isMDXComponent=!0;const m=[a],f=[r],h={compositions:[{displayName:"Logo",identifier:"Logo"}]};return n})()));
|
package/artifacts/schema.json
CHANGED
@@ -66,7 +66,8 @@
|
|
66
66
|
"character": 1
|
67
67
|
},
|
68
68
|
"raw": "/**\n * collection of isolated components (capsules).\n * normally, \"seeders\" are the components that this network was created for.\n * \"graphCapsules\" is the graph created from the seeders and it includes also the dependencies.\n *\n * however, during \"bit build\"/\"bit tag\"/\"bit snap\", things are more complex because there is one more variable in the\n * picture, which is the \"env\". the Network is created per env.\n * in practice, for \"build-task\", a task is called per env, and the network passed to the task is relevant to that env.\n * the \"originalSeeders\" are the ones the network was created for, but only for this env.\n * the \"seeders\" are similar to the \"graphCapsules\" above, which contains also the dependencies, but only for this env.\n * the \"graphCapsules\" is the entire graph, including capsules from other envs.\n *\n * for example:\n * comp1 depends on comp2. comp1 env is \"react\". comp2 env is \"aspect\".\n *\n * when the user is running \"bit build comp1\", two `Network` instances will be created with the following:\n * Network for \"react\" env: originalSeeders: ['comp1'], seeders: ['comp1'], graphCapsules: ['comp1', 'comp2'].\n * Network for \"aspect\" env: originalSeeders: [], seeders: ['comp2'], graphCapsules: ['comp2'].\n *\n * on the other hand, when the user is running \"bit capsule create comp1\", only one `Network` instance is created:\n * Network: originalSeeders: ['comp1'], seeders: ['comp1'], graphCapsules: ['comp1', 'comp2'].\n *\n * (as a side note, another implementation was attempt to have the \"seeders\" as the original-seeders for build,\n * however, it's failed. see https://github.com/teambit/bit/pull/5407 for more details).\n *\n *\n * A more detailed explanation about the \"seeders\" vs \"originalSeeders\" vs \"graphCapsules\" is provided below:\n * an example: comp1 -> comp2 -> comp3 (as in comp1 uses comp2, comp2 uses comp3).\n * I changed only comp2.\n * From comp2 perspective, comp1 is a “dependent”, comp3 is a “dependency”.\n *\n * When I run bit build with no args, it finds only one modified component: comp2, however, it doesn’t stop here. It also look for the dependents, in this case, comp1. So the seeders of this bit-build command are two: “comp1” and “comp2\".\n * The reason why the dependents are included is because you modified comp2, it’s possible you broke comp1. We want to build comp1 as well to make sure it’s still okay.\n * (btw, bit test command also include dependents when it provided with no args).\n *\n * Keep in mind that also bit tag normally runs on the dependents as well (when it runs the build pipeline), because these are the “auto-tag”.\n * With these two seeders it builds the graph. The graph calculates all the dependencies of the given seeders recursively. Eventually, it puts them in an instance of Network class.\n * In our case, if all components use the same env, the Network consist of:\n * seedersCapsules: [comp1, comp2]\n * originalSeedersCapsules: [comp1, comp2]\n * graphCapsules: [comp1, comp2, comp3].\n *\n * It gets more complex when multiple envs involved.\n * Imagine that comp1 uses env1, comp2 uses env2 and comp3 uses env3.\n * Because bit build runs the tasks per env, it needs to create 3 networks. Each per env.\n * The “seeders” refer to the seeders of the same env and includes only components from the same env.\n * The “originalSeeders” refer to the ones that originally started the build command and are from the same env.\n * Network1:\n * seedersCapsules: [comp1]\n * originalSeedersCapsules: [comp1]\n * graphCapsules: [comp1, comp2, comp3].\n * Network2:\n * seedersCapsules: [comp2]\n * originalSeedersCapsules: [comp2]\n * graphCapsules: [comp2, comp3].\n * Network3:\n * seedersCapsules: [comp3]\n * originalSeedersCapsules: []\n * graphCapsules: [comp3].\n * As you can see, in network3, the originalSeeders is empty, because comp3 wasn’t part of the original seeders.\n * These 3 networks are created for build-pipeline. This pipeline asks for all components in the graph and then create the network per env.\n * Snap/Tag pipelines are different. They ask only for the components about to tag/snap, which are the original-seeders, and create the network per env. For them, we end up with 2 network instances only. network1 and network2. Also, the seedersCapsules and originalSeedersCapsules are the same because we create the network instances out of the seeders only, without the dependencies.\n * A build-task provides context with a network instance to the execute() method. (it also provide Component[] which are the “seeders”. not “originalSeeders”).\n *\n * Each build-task can decide on what components to operate. It has 3 options:\n * run on graphCapsules. If you do that, you risk running your task multiple times on the same components. In the example above, a task of build-pipeline, will run 3 times on comp3, because this component is part of the graphCapsules in each one of the network instance. So this is probably not recommended for most tasks.\n * run on seedersCapsules. With this option you make sure that your task is running for each one of the capsules and it runs only once. This is good for example for the compiler task. It needs to make sure all capsules are built. Otherwise, if it’s running only on originalSeedersCapsules, the comp3 won’t be compiled, the dists will be missing and comp2 won’t be able to run its tests.\n * run on originalSeedersCapsules . With this option you ensure that your task runs only on the ids you started with and you don’t run them on the dependencies. This is the option that most tasks probably need. An example is the test task, it should test only the seeders, no need to test the dependencies.\n *\n * Again, the distinction between seedersCapsules and originalSeedersCapsules is relevant for build-pipeline only. For tag-pipeline and snap-pipeline, these two are the same. You can see for example that Publisher task runs on seedersCapsules and that’s fine, it won’t be running on dependencies unexpectedly, only on the components it’s now tagging.\n */",
|
69
|
-
"comment": "collection of isolated components (capsules).\nnormally, \"seeders\" are the components that this network was created for.\n\"graphCapsules\" is the graph created from the seeders and it includes also the dependencies.\n\nhowever, during \"bit build\"/\"bit tag\"/\"bit snap\", things are more complex because there is one more variable in the\npicture, which is the \"env\". the Network is created per env.\nin practice, for \"build-task\", a task is called per env, and the network passed to the task is relevant to that env.\nthe \"originalSeeders\" are the ones the network was created for, but only for this env.\nthe \"seeders\" are similar to the \"graphCapsules\" above, which contains also the dependencies, but only for this env.\nthe \"graphCapsules\" is the entire graph, including capsules from other envs.\n\nfor example:\ncomp1 depends on comp2. comp1 env is \"react\". comp2 env is \"aspect\".\n\nwhen the user is running \"bit build comp1\", two `Network` instances will be created with the following:\nNetwork for \"react\" env: originalSeeders: ['comp1'], seeders: ['comp1'], graphCapsules: ['comp1', 'comp2'].\nNetwork for \"aspect\" env: originalSeeders: [], seeders: ['comp2'], graphCapsules: ['comp2'].\n\non the other hand, when the user is running \"bit capsule create comp1\", only one `Network` instance is created:\nNetwork: originalSeeders: ['comp1'], seeders: ['comp1'], graphCapsules: ['comp1', 'comp2'].\n\n(as a side note, another implementation was attempt to have the \"seeders\" as the original-seeders for build,\nhowever, it's failed. see https://github.com/teambit/bit/pull/5407 for more details).\n\n\nA more detailed explanation about the \"seeders\" vs \"originalSeeders\" vs \"graphCapsules\" is provided below:\nan example: comp1 -> comp2 -> comp3 (as in comp1 uses comp2, comp2 uses comp3).\nI changed only comp2.\nFrom comp2 perspective, comp1 is a “dependent”, comp3 is a “dependency”.\n\nWhen I run bit build with no args, it finds only one modified component: comp2, however, it doesn’t stop here. It also look for the dependents, in this case, comp1. So the seeders of this bit-build command are two: “comp1” and “comp2\".\nThe reason why the dependents are included is because you modified comp2, it’s possible you broke comp1. We want to build comp1 as well to make sure it’s still okay.\n(btw, bit test command also include dependents when it provided with no args).\n\nKeep in mind that also bit tag normally runs on the dependents as well (when it runs the build pipeline), because these are the “auto-tag”.\nWith these two seeders it builds the graph. The graph calculates all the dependencies of the given seeders recursively. Eventually, it puts them in an instance of Network class.\nIn our case, if all components use the same env, the Network consist of:\nseedersCapsules: [comp1, comp2]\noriginalSeedersCapsules: [comp1, comp2]\ngraphCapsules: [comp1, comp2, comp3].\n\nIt gets more complex when multiple envs involved.\nImagine that comp1 uses env1, comp2 uses env2 and comp3 uses env3.\nBecause bit build runs the tasks per env, it needs to create 3 networks. Each per env.\nThe “seeders” refer to the seeders of the same env and includes only components from the same env.\nThe “originalSeeders” refer to the ones that originally started the build command and are from the same env.\nNetwork1:\nseedersCapsules: [comp1]\noriginalSeedersCapsules: [comp1]\ngraphCapsules: [comp1, comp2, comp3].\nNetwork2:\nseedersCapsules: [comp2]\noriginalSeedersCapsules: [comp2]\ngraphCapsules: [comp2, comp3].\nNetwork3:\nseedersCapsules: [comp3]\noriginalSeedersCapsules: []\ngraphCapsules: [comp3].\nAs you can see, in network3, the originalSeeders is empty, because comp3 wasn’t part of the original seeders.\nThese 3 networks are created for build-pipeline. This pipeline asks for all components in the graph and then create the network per env.\nSnap/Tag pipelines are different. They ask only for the components about to tag/snap, which are the original-seeders, and create the network per env. For them, we end up with 2 network instances only. network1 and network2. Also, the seedersCapsules and originalSeedersCapsules are the same because we create the network instances out of the seeders only, without the dependencies.\nA build-task provides context with a network instance to the execute() method. (it also provide Component[] which are the “seeders”. not “originalSeeders”).\n\nEach build-task can decide on what components to operate. It has 3 options:\nrun on graphCapsules. If you do that, you risk running your task multiple times on the same components. In the example above, a task of build-pipeline, will run 3 times on comp3, because this component is part of the graphCapsules in each one of the network instance. So this is probably not recommended for most tasks.\nrun on seedersCapsules. With this option you make sure that your task is running for each one of the capsules and it runs only once. This is good for example for the compiler task. It needs to make sure all capsules are built. Otherwise, if it’s running only on originalSeedersCapsules, the comp3 won’t be compiled, the dists will be missing and comp2 won’t be able to run its tests.\nrun on originalSeedersCapsules . With this option you ensure that your task runs only on the ids you started with and you don’t run them on the dependencies. This is the option that most tasks probably need. An example is the test task, it should test only the seeders, no need to test the dependencies.\n\nAgain, the distinction between seedersCapsules and originalSeedersCapsules is relevant for build-pipeline only. For tag-pipeline and snap-pipeline, these two are the same. You can see for example that Publisher task runs on seedersCapsules and that’s fine, it won’t be running on dependencies unexpectedly, only on the components it’s now tagging."
|
69
|
+
"comment": "collection of isolated components (capsules).\nnormally, \"seeders\" are the components that this network was created for.\n\"graphCapsules\" is the graph created from the seeders and it includes also the dependencies.\n\nhowever, during \"bit build\"/\"bit tag\"/\"bit snap\", things are more complex because there is one more variable in the\npicture, which is the \"env\". the Network is created per env.\nin practice, for \"build-task\", a task is called per env, and the network passed to the task is relevant to that env.\nthe \"originalSeeders\" are the ones the network was created for, but only for this env.\nthe \"seeders\" are similar to the \"graphCapsules\" above, which contains also the dependencies, but only for this env.\nthe \"graphCapsules\" is the entire graph, including capsules from other envs.\n\nfor example:\ncomp1 depends on comp2. comp1 env is \"react\". comp2 env is \"aspect\".\n\nwhen the user is running \"bit build comp1\", two `Network` instances will be created with the following:\nNetwork for \"react\" env: originalSeeders: ['comp1'], seeders: ['comp1'], graphCapsules: ['comp1', 'comp2'].\nNetwork for \"aspect\" env: originalSeeders: [], seeders: ['comp2'], graphCapsules: ['comp2'].\n\non the other hand, when the user is running \"bit capsule create comp1\", only one `Network` instance is created:\nNetwork: originalSeeders: ['comp1'], seeders: ['comp1'], graphCapsules: ['comp1', 'comp2'].\n\n(as a side note, another implementation was attempt to have the \"seeders\" as the original-seeders for build,\nhowever, it's failed. see https://github.com/teambit/bit/pull/5407 for more details).\n\n\nA more detailed explanation about the \"seeders\" vs \"originalSeeders\" vs \"graphCapsules\" is provided below:\nan example: comp1 -> comp2 -> comp3 (as in comp1 uses comp2, comp2 uses comp3).\nI changed only comp2.\nFrom comp2 perspective, comp1 is a “dependent”, comp3 is a “dependency”.\n\nWhen I run bit build with no args, it finds only one modified component: comp2, however, it doesn’t stop here. It also look for the dependents, in this case, comp1. So the seeders of this bit-build command are two: “comp1” and “comp2\".\nThe reason why the dependents are included is because you modified comp2, it’s possible you broke comp1. We want to build comp1 as well to make sure it’s still okay.\n(btw, bit test command also include dependents when it provided with no args).\n\nKeep in mind that also bit tag normally runs on the dependents as well (when it runs the build pipeline), because these are the “auto-tag”.\nWith these two seeders it builds the graph. The graph calculates all the dependencies of the given seeders recursively. Eventually, it puts them in an instance of Network class.\nIn our case, if all components use the same env, the Network consist of:\nseedersCapsules: [comp1, comp2]\noriginalSeedersCapsules: [comp1, comp2]\ngraphCapsules: [comp1, comp2, comp3].\n\nIt gets more complex when multiple envs involved.\nImagine that comp1 uses env1, comp2 uses env2 and comp3 uses env3.\nBecause bit build runs the tasks per env, it needs to create 3 networks. Each per env.\nThe “seeders” refer to the seeders of the same env and includes only components from the same env.\nThe “originalSeeders” refer to the ones that originally started the build command and are from the same env.\nNetwork1:\nseedersCapsules: [comp1]\noriginalSeedersCapsules: [comp1]\ngraphCapsules: [comp1, comp2, comp3].\nNetwork2:\nseedersCapsules: [comp2]\noriginalSeedersCapsules: [comp2]\ngraphCapsules: [comp2, comp3].\nNetwork3:\nseedersCapsules: [comp3]\noriginalSeedersCapsules: []\ngraphCapsules: [comp3].\nAs you can see, in network3, the originalSeeders is empty, because comp3 wasn’t part of the original seeders.\nThese 3 networks are created for build-pipeline. This pipeline asks for all components in the graph and then create the network per env.\nSnap/Tag pipelines are different. They ask only for the components about to tag/snap, which are the original-seeders, and create the network per env. For them, we end up with 2 network instances only. network1 and network2. Also, the seedersCapsules and originalSeedersCapsules are the same because we create the network instances out of the seeders only, without the dependencies.\nA build-task provides context with a network instance to the execute() method. (it also provide Component[] which are the “seeders”. not “originalSeeders”).\n\nEach build-task can decide on what components to operate. It has 3 options:\nrun on graphCapsules. If you do that, you risk running your task multiple times on the same components. In the example above, a task of build-pipeline, will run 3 times on comp3, because this component is part of the graphCapsules in each one of the network instance. So this is probably not recommended for most tasks.\nrun on seedersCapsules. With this option you make sure that your task is running for each one of the capsules and it runs only once. This is good for example for the compiler task. It needs to make sure all capsules are built. Otherwise, if it’s running only on originalSeedersCapsules, the comp3 won’t be compiled, the dists will be missing and comp2 won’t be able to run its tests.\nrun on originalSeedersCapsules . With this option you ensure that your task runs only on the ids you started with and you don’t run them on the dependencies. This is the option that most tasks probably need. An example is the test task, it should test only the seeders, no need to test the dependencies.\n\nAgain, the distinction between seedersCapsules and originalSeedersCapsules is relevant for build-pipeline only. For tag-pipeline and snap-pipeline, these two are the same. You can see for example that Publisher task runs on seedersCapsules and that’s fine, it won’t be running on dependencies unexpectedly, only on the components it’s now tagging.",
|
70
|
+
"tags": []
|
70
71
|
},
|
71
72
|
"signature": "class Network",
|
72
73
|
"name": "Network",
|
@@ -272,7 +273,8 @@
|
|
272
273
|
"character": 3
|
273
274
|
},
|
274
275
|
"raw": "/**\n * some of the capsules (non-modified) are written already with the dists files, so no need to re-compile them.\n * this method helps optimizing compilers that are running on the capsules.\n */",
|
275
|
-
"comment": "some of the capsules (non-modified) are written already with the dists files, so no need to re-compile them.\nthis method helps optimizing compilers that are running on the capsules."
|
276
|
+
"comment": "some of the capsules (non-modified) are written already with the dists files, so no need to re-compile them.\nthis method helps optimizing compilers that are running on the capsules.",
|
277
|
+
"tags": []
|
276
278
|
},
|
277
279
|
"signature": "(method) Network.getCapsulesToCompile(): Promise<CapsuleList>",
|
278
280
|
"name": "getCapsulesToCompile",
|
@@ -1241,7 +1243,7 @@
|
|
1241
1243
|
"_legacy": {
|
1242
1244
|
"scope": "teambit.component",
|
1243
1245
|
"name": "isolator",
|
1244
|
-
"version": "1.0.
|
1246
|
+
"version": "1.0.311"
|
1245
1247
|
},
|
1246
1248
|
"_scope": "teambit.component"
|
1247
1249
|
}
|
@@ -1964,6 +1966,7 @@
|
|
1964
1966
|
"character": 3
|
1965
1967
|
},
|
1966
1968
|
"raw": "/**\n * @todo: fix.\n * it skips the capsule fs because for some reason `capsule.fs.promises.readdir` doesn't work\n * the same as `capsule.fs.readdir` and it doesn't have the capsule dir as pwd.\n *\n * returns the paths inside the capsule\n */",
|
1969
|
+
"comment": "",
|
1967
1970
|
"tags": [
|
1968
1971
|
{
|
1969
1972
|
"__schema": "TagSchema",
|
@@ -2469,7 +2472,7 @@
|
|
2469
2472
|
"_legacy": {
|
2470
2473
|
"scope": "teambit.component",
|
2471
2474
|
"name": "isolator",
|
2472
|
-
"version": "1.0.
|
2475
|
+
"version": "1.0.311"
|
2473
2476
|
},
|
2474
2477
|
"_scope": "teambit.component"
|
2475
2478
|
}
|
@@ -2755,7 +2758,7 @@
|
|
2755
2758
|
"_legacy": {
|
2756
2759
|
"scope": "teambit.component",
|
2757
2760
|
"name": "isolator",
|
2758
|
-
"version": "1.0.
|
2761
|
+
"version": "1.0.311"
|
2759
2762
|
},
|
2760
2763
|
"_scope": "teambit.component"
|
2761
2764
|
}
|
@@ -2784,7 +2787,7 @@
|
|
2784
2787
|
"_legacy": {
|
2785
2788
|
"scope": "teambit.component",
|
2786
2789
|
"name": "isolator",
|
2787
|
-
"version": "1.0.
|
2790
|
+
"version": "1.0.311"
|
2788
2791
|
},
|
2789
2792
|
"_scope": "teambit.component"
|
2790
2793
|
}
|
@@ -3530,6 +3533,7 @@
|
|
3530
3533
|
"character": 3
|
3531
3534
|
},
|
3532
3535
|
"raw": "/**\n *\n * @param originalCapsule the capsule that contains the original component\n * @param newBaseDir relative path. (it will be saved inside `this.getRootDirOfAllCapsules()`. the final path of the capsule will be getRootDirOfAllCapsules() + newBaseDir + filenameify(component.id))\n * @returns a new capsule with the same content of the original capsule but with a new baseDir and all packages\n * installed in the newBaseDir.\n */",
|
3536
|
+
"comment": "",
|
3533
3537
|
"tags": [
|
3534
3538
|
{
|
3535
3539
|
"__schema": "PropertyLikeTagSchema",
|
@@ -3747,6 +3751,7 @@
|
|
3747
3751
|
"character": 3
|
3748
3752
|
},
|
3749
3753
|
"raw": "/** @deprecated use the new function signature with an object parameter instead */",
|
3754
|
+
"comment": "",
|
3750
3755
|
"tags": [
|
3751
3756
|
{
|
3752
3757
|
"__schema": "TagSchema",
|
@@ -4289,7 +4294,8 @@
|
|
4289
4294
|
"character": 3
|
4290
4295
|
},
|
4291
4296
|
"raw": "/**\n * absolute path to put all the capsules dirs inside.\n */",
|
4292
|
-
"comment": "absolute path to put all the capsules dirs inside."
|
4297
|
+
"comment": "absolute path to put all the capsules dirs inside.",
|
4298
|
+
"tags": []
|
4293
4299
|
},
|
4294
4300
|
"signature": "(property) rootBaseDir?: string | undefined",
|
4295
4301
|
"name": "rootBaseDir",
|
@@ -4319,7 +4325,8 @@
|
|
4319
4325
|
"character": 3
|
4320
4326
|
},
|
4321
4327
|
"raw": "/**\n * the capsule root-dir based on a *hash* of this baseDir, not on the baseDir itself.\n * A folder with this hash as its name will be created in the rootBaseDir\n * By default this value will be the host path\n */",
|
4322
|
-
"comment": "the capsule root-dir based on a *hash* of this baseDir, not on the baseDir itself.\nA folder with this hash as its name will be created in the rootBaseDir\nBy default this value will be the host path"
|
4328
|
+
"comment": "the capsule root-dir based on a *hash* of this baseDir, not on the baseDir itself.\nA folder with this hash as its name will be created in the rootBaseDir\nBy default this value will be the host path",
|
4329
|
+
"tags": []
|
4323
4330
|
},
|
4324
4331
|
"signature": "(property) baseDir?: string | undefined",
|
4325
4332
|
"name": "baseDir",
|
@@ -4349,7 +4356,8 @@
|
|
4349
4356
|
"character": 3
|
4350
4357
|
},
|
4351
4358
|
"raw": "/**\n * Whether to use hash function (of base dir) as capsules root dir name\n */",
|
4352
|
-
"comment": "Whether to use hash function (of base dir) as capsules root dir name"
|
4359
|
+
"comment": "Whether to use hash function (of base dir) as capsules root dir name",
|
4360
|
+
"tags": []
|
4353
4361
|
},
|
4354
4362
|
"signature": "(property) useHash?: boolean | undefined",
|
4355
4363
|
"name": "useHash",
|
@@ -4379,7 +4387,8 @@
|
|
4379
4387
|
"character": 3
|
4380
4388
|
},
|
4381
4389
|
"raw": "/**\n * create a new capsule with a random string attached to the path suffix\n */",
|
4382
|
-
"comment": "create a new capsule with a random string attached to the path suffix"
|
4390
|
+
"comment": "create a new capsule with a random string attached to the path suffix",
|
4391
|
+
"tags": []
|
4383
4392
|
},
|
4384
4393
|
"signature": "(property) alwaysNew?: boolean | undefined",
|
4385
4394
|
"name": "alwaysNew",
|
@@ -4409,7 +4418,8 @@
|
|
4409
4418
|
"character": 3
|
4410
4419
|
},
|
4411
4420
|
"raw": "/**\n * If this is true -\n * the isolator will check if there are missing capsules in the base dir\n * if yes, it will create the capsule in a special dir inside a dir with the current date (without time)\n * then inside that dir, it will create a dir with a random hash\n * at the end of the process it will move missing capsules from the temp dir to the base dir so they can be used in\n * the next iteration\n */",
|
4412
|
-
"comment": "If this is true -\nthe isolator will check if there are missing capsules in the base dir\nif yes, it will create the capsule in a special dir inside a dir with the current date (without time)\nthen inside that dir, it will create a dir with a random hash\nat the end of the process it will move missing capsules from the temp dir to the base dir so they can be used in\nthe next iteration"
|
4421
|
+
"comment": "If this is true -\nthe isolator will check if there are missing capsules in the base dir\nif yes, it will create the capsule in a special dir inside a dir with the current date (without time)\nthen inside that dir, it will create a dir with a random hash\nat the end of the process it will move missing capsules from the temp dir to the base dir so they can be used in\nthe next iteration",
|
4422
|
+
"tags": []
|
4413
4423
|
},
|
4414
4424
|
"signature": "(property) useDatedDirs?: boolean | undefined",
|
4415
4425
|
"name": "useDatedDirs",
|
@@ -4439,7 +4449,8 @@
|
|
4439
4449
|
"character": 3
|
4440
4450
|
},
|
4441
4451
|
"raw": "/**\n * If this is true -\n * the isolator will do few things:\n * 1. in the end of the process it will only move the lock file (pnpm-lock.yaml) into the capsule cache\n * 2. in the beginning of the process it will check if there is a lock file in the capsule cache, if yes it will move\n * it to the temp dated dir\n * 3. it will write env's file into the dated dir (as it only contain the lock file)\n * 4. it will run install in the dated dir (as there is no node_modules there yet)\n */",
|
4442
|
-
"comment": "If this is true -\nthe isolator will do few things:\n1. in the end of the process it will only move the lock file (pnpm-lock.yaml) into the capsule cache\n2. in the beginning of the process it will check if there is a lock file in the capsule cache, if yes it will move\nit to the temp dated dir\n3. it will write env's file into the dated dir (as it only contain the lock file)\n4. it will run install in the dated dir (as there is no node_modules there yet)"
|
4452
|
+
"comment": "If this is true -\nthe isolator will do few things:\n1. in the end of the process it will only move the lock file (pnpm-lock.yaml) into the capsule cache\n2. in the beginning of the process it will check if there is a lock file in the capsule cache, if yes it will move\nit to the temp dated dir\n3. it will write env's file into the dated dir (as it only contain the lock file)\n4. it will run install in the dated dir (as there is no node_modules there yet)",
|
4453
|
+
"tags": []
|
4443
4454
|
},
|
4444
4455
|
"signature": "(property) cacheLockFileOnly?: boolean | undefined",
|
4445
4456
|
"name": "cacheLockFileOnly",
|
@@ -4469,7 +4480,8 @@
|
|
4469
4480
|
"character": 3
|
4470
4481
|
},
|
4471
4482
|
"raw": "/**\n * If set, along with useDatedDirs, then we will use the same hash dir for all capsules created with the same\n * datedDirId\n */",
|
4472
|
-
"comment": "If set, along with useDatedDirs, then we will use the same hash dir for all capsules created with the same\ndatedDirId"
|
4483
|
+
"comment": "If set, along with useDatedDirs, then we will use the same hash dir for all capsules created with the same\ndatedDirId",
|
4484
|
+
"tags": []
|
4473
4485
|
},
|
4474
4486
|
"signature": "(property) datedDirId?: string | undefined",
|
4475
4487
|
"name": "datedDirId",
|
@@ -4499,7 +4511,8 @@
|
|
4499
4511
|
"character": 3
|
4500
4512
|
},
|
4501
4513
|
"raw": "/**\n * installation options\n */",
|
4502
|
-
"comment": "installation options"
|
4514
|
+
"comment": "installation options",
|
4515
|
+
"tags": []
|
4503
4516
|
},
|
4504
4517
|
"signature": "(property) installOptions?: IsolateComponentsInstallOptions | undefined",
|
4505
4518
|
"name": "installOptions",
|
@@ -4554,7 +4567,8 @@
|
|
4554
4567
|
"character": 3
|
4555
4568
|
},
|
4556
4569
|
"raw": "/**\n * delete the capsule rootDir first. it makes sure that the isolation process starts fresh with\n * no previous capsules. for build and tag this is true.\n */",
|
4557
|
-
"comment": "delete the capsule rootDir first. it makes sure that the isolation process starts fresh with\nno previous capsules. for build and tag this is true."
|
4570
|
+
"comment": "delete the capsule rootDir first. it makes sure that the isolation process starts fresh with\nno previous capsules. for build and tag this is true.",
|
4571
|
+
"tags": []
|
4558
4572
|
},
|
4559
4573
|
"signature": "(property) emptyRootDir?: boolean | undefined",
|
4560
4574
|
"name": "emptyRootDir",
|
@@ -4584,7 +4598,8 @@
|
|
4584
4598
|
"character": 3
|
4585
4599
|
},
|
4586
4600
|
"raw": "/**\n * skip the reproduction of the capsule in case it exists.\n */",
|
4587
|
-
"comment": "skip the reproduction of the capsule in case it exists."
|
4601
|
+
"comment": "skip the reproduction of the capsule in case it exists.",
|
4602
|
+
"tags": []
|
4588
4603
|
},
|
4589
4604
|
"signature": "(property) skipIfExists?: boolean | undefined",
|
4590
4605
|
"name": "skipIfExists",
|
@@ -4614,7 +4629,8 @@
|
|
4614
4629
|
"character": 3
|
4615
4630
|
},
|
4616
4631
|
"raw": "/**\n * get existing capsule without doing any changes, no writes, no installations.\n */",
|
4617
|
-
"comment": "get existing capsule without doing any changes, no writes, no installations."
|
4632
|
+
"comment": "get existing capsule without doing any changes, no writes, no installations.",
|
4633
|
+
"tags": []
|
4618
4634
|
},
|
4619
4635
|
"signature": "(property) getExistingAsIs?: boolean | undefined",
|
4620
4636
|
"name": "getExistingAsIs",
|
@@ -4644,7 +4660,8 @@
|
|
4644
4660
|
"character": 3
|
4645
4661
|
},
|
4646
4662
|
"raw": "/**\n * place the package-manager cache on the capsule-root\n */",
|
4647
|
-
"comment": "place the package-manager cache on the capsule-root"
|
4663
|
+
"comment": "place the package-manager cache on the capsule-root",
|
4664
|
+
"tags": []
|
4648
4665
|
},
|
4649
4666
|
"signature": "(property) cachePackagesOnCapsulesRoot?: boolean | undefined",
|
4650
4667
|
"name": "cachePackagesOnCapsulesRoot",
|
@@ -4674,7 +4691,8 @@
|
|
4674
4691
|
"character": 3
|
4675
4692
|
},
|
4676
4693
|
"raw": "/**\n * do not build graph with all dependencies. isolate the seeders only.\n */",
|
4677
|
-
"comment": "do not build graph with all dependencies. isolate the seeders only."
|
4694
|
+
"comment": "do not build graph with all dependencies. isolate the seeders only.",
|
4695
|
+
"tags": []
|
4678
4696
|
},
|
4679
4697
|
"signature": "(property) seedersOnly?: boolean | undefined",
|
4680
4698
|
"name": "seedersOnly",
|
@@ -4704,7 +4722,8 @@
|
|
4704
4722
|
"character": 3
|
4705
4723
|
},
|
4706
4724
|
"raw": "/**\n * relevant for tagging from scope, where we tag an existing snap without any code-changes.\n * the idea is to have all build artifacts from the previous snap and run deploy pipeline on top of it.\n */",
|
4707
|
-
"comment": "relevant for tagging from scope, where we tag an existing snap without any code-changes.\nthe idea is to have all build artifacts from the previous snap and run deploy pipeline on top of it."
|
4725
|
+
"comment": "relevant for tagging from scope, where we tag an existing snap without any code-changes.\nthe idea is to have all build artifacts from the previous snap and run deploy pipeline on top of it.",
|
4726
|
+
"tags": []
|
4708
4727
|
},
|
4709
4728
|
"signature": "(property) populateArtifactsFrom?: ComponentID[] | undefined",
|
4710
4729
|
"name": "populateArtifactsFrom",
|
@@ -4747,7 +4766,8 @@
|
|
4747
4766
|
"character": 3
|
4748
4767
|
},
|
4749
4768
|
"raw": "/**\n * Force specific host to get the component from.\n */",
|
4750
|
-
"comment": "Force specific host to get the component from."
|
4769
|
+
"comment": "Force specific host to get the component from.",
|
4770
|
+
"tags": []
|
4751
4771
|
},
|
4752
4772
|
"signature": "(property) host?: ComponentFactory | undefined",
|
4753
4773
|
"name": "host",
|
@@ -4781,7 +4801,8 @@
|
|
4781
4801
|
"character": 3
|
4782
4802
|
},
|
4783
4803
|
"raw": "/**\n * Use specific package manager for the isolation process (override the package manager from the dep resolver config)\n */",
|
4784
|
-
"comment": "Use specific package manager for the isolation process (override the package manager from the dep resolver config)"
|
4804
|
+
"comment": "Use specific package manager for the isolation process (override the package manager from the dep resolver config)",
|
4805
|
+
"tags": []
|
4785
4806
|
},
|
4786
4807
|
"signature": "(property) packageManager?: string | undefined",
|
4787
4808
|
"name": "packageManager",
|
@@ -4811,7 +4832,8 @@
|
|
4811
4832
|
"character": 3
|
4812
4833
|
},
|
4813
4834
|
"raw": "/**\n * Use specific node linker for the isolation process (override the package manager from the dep resolver config)\n */",
|
4814
|
-
"comment": "Use specific node linker for the isolation process (override the package manager from the dep resolver config)"
|
4835
|
+
"comment": "Use specific node linker for the isolation process (override the package manager from the dep resolver config)",
|
4836
|
+
"tags": []
|
4815
4837
|
},
|
4816
4838
|
"signature": "(property) nodeLinker?: NodeLinker | undefined",
|
4817
4839
|
"name": "nodeLinker",
|
@@ -4845,7 +4867,8 @@
|
|
4845
4867
|
"character": 3
|
4846
4868
|
},
|
4847
4869
|
"raw": "/**\n * Dir where to read the package manager config from\n * usually used when running package manager in the capsules dir to use the config\n * from the workspace dir\n */",
|
4848
|
-
"comment": "Dir where to read the package manager config from\nusually used when running package manager in the capsules dir to use the config\nfrom the workspace dir"
|
4870
|
+
"comment": "Dir where to read the package manager config from\nusually used when running package manager in the capsules dir to use the config\nfrom the workspace dir",
|
4871
|
+
"tags": []
|
4849
4872
|
},
|
4850
4873
|
"signature": "(property) packageManagerConfigRootDir?: string | undefined",
|
4851
4874
|
"name": "packageManagerConfigRootDir",
|
@@ -4896,7 +4919,8 @@
|
|
4896
4919
|
"character": 3
|
4897
4920
|
},
|
4898
4921
|
"raw": "/**\n * Root dir of capsulse cache (used mostly to copy lock file if used with cache lock file only option)\n */",
|
4899
|
-
"comment": "Root dir of capsulse cache (used mostly to copy lock file if used with cache lock file only option)"
|
4922
|
+
"comment": "Root dir of capsulse cache (used mostly to copy lock file if used with cache lock file only option)",
|
4923
|
+
"tags": []
|
4900
4924
|
},
|
4901
4925
|
"signature": "(property) cacheCapsulesDir?: string | undefined",
|
4902
4926
|
"name": "cacheCapsulesDir",
|
@@ -5474,7 +5498,8 @@
|
|
5474
5498
|
"character": 3
|
5475
5499
|
},
|
5476
5500
|
"raw": "/**\n * determines whether or not a capsule can theoretically use the dists saved in the last snap, rather than re-compile them.\n * practically, this optimization is used for components that have typescript as their compiler.\n */",
|
5477
|
-
"comment": "determines whether or not a capsule can theoretically use the dists saved in the last snap, rather than re-compile them.\npractically, this optimization is used for components that have typescript as their compiler."
|
5501
|
+
"comment": "determines whether or not a capsule can theoretically use the dists saved in the last snap, rather than re-compile them.\npractically, this optimization is used for components that have typescript as their compiler.",
|
5502
|
+
"tags": []
|
5478
5503
|
},
|
5479
5504
|
"signature": "(method) CapsuleList.capsuleUsePreviouslySavedDists(component: Component): Promise<boolean>",
|
5480
5505
|
"name": "capsuleUsePreviouslySavedDists",
|
@@ -5562,7 +5587,7 @@
|
|
5562
5587
|
"_legacy": {
|
5563
5588
|
"scope": "teambit.component",
|
5564
5589
|
"name": "isolator",
|
5565
|
-
"version": "1.0.
|
5590
|
+
"version": "1.0.311"
|
5566
5591
|
},
|
5567
5592
|
"_scope": "teambit.component"
|
5568
5593
|
}
|
@@ -5600,7 +5625,8 @@
|
|
5600
5625
|
"character": 1
|
5601
5626
|
},
|
5602
5627
|
"raw": "/**\n * collection of isolated components (capsules).\n * normally, \"seeders\" are the components that this network was created for.\n * \"graphCapsules\" is the graph created from the seeders and it includes also the dependencies.\n *\n * however, during \"bit build\"/\"bit tag\"/\"bit snap\", things are more complex because there is one more variable in the\n * picture, which is the \"env\". the Network is created per env.\n * in practice, for \"build-task\", a task is called per env, and the network passed to the task is relevant to that env.\n * the \"originalSeeders\" are the ones the network was created for, but only for this env.\n * the \"seeders\" are similar to the \"graphCapsules\" above, which contains also the dependencies, but only for this env.\n * the \"graphCapsules\" is the entire graph, including capsules from other envs.\n *\n * for example:\n * comp1 depends on comp2. comp1 env is \"react\". comp2 env is \"aspect\".\n *\n * when the user is running \"bit build comp1\", two `Network` instances will be created with the following:\n * Network for \"react\" env: originalSeeders: ['comp1'], seeders: ['comp1'], graphCapsules: ['comp1', 'comp2'].\n * Network for \"aspect\" env: originalSeeders: [], seeders: ['comp2'], graphCapsules: ['comp2'].\n *\n * on the other hand, when the user is running \"bit capsule create comp1\", only one `Network` instance is created:\n * Network: originalSeeders: ['comp1'], seeders: ['comp1'], graphCapsules: ['comp1', 'comp2'].\n *\n * (as a side note, another implementation was attempt to have the \"seeders\" as the original-seeders for build,\n * however, it's failed. see https://github.com/teambit/bit/pull/5407 for more details).\n *\n *\n * A more detailed explanation about the \"seeders\" vs \"originalSeeders\" vs \"graphCapsules\" is provided below:\n * an example: comp1 -> comp2 -> comp3 (as in comp1 uses comp2, comp2 uses comp3).\n * I changed only comp2.\n * From comp2 perspective, comp1 is a “dependent”, comp3 is a “dependency”.\n *\n * When I run bit build with no args, it finds only one modified component: comp2, however, it doesn’t stop here. It also look for the dependents, in this case, comp1. So the seeders of this bit-build command are two: “comp1” and “comp2\".\n * The reason why the dependents are included is because you modified comp2, it’s possible you broke comp1. We want to build comp1 as well to make sure it’s still okay.\n * (btw, bit test command also include dependents when it provided with no args).\n *\n * Keep in mind that also bit tag normally runs on the dependents as well (when it runs the build pipeline), because these are the “auto-tag”.\n * With these two seeders it builds the graph. The graph calculates all the dependencies of the given seeders recursively. Eventually, it puts them in an instance of Network class.\n * In our case, if all components use the same env, the Network consist of:\n * seedersCapsules: [comp1, comp2]\n * originalSeedersCapsules: [comp1, comp2]\n * graphCapsules: [comp1, comp2, comp3].\n *\n * It gets more complex when multiple envs involved.\n * Imagine that comp1 uses env1, comp2 uses env2 and comp3 uses env3.\n * Because bit build runs the tasks per env, it needs to create 3 networks. Each per env.\n * The “seeders” refer to the seeders of the same env and includes only components from the same env.\n * The “originalSeeders” refer to the ones that originally started the build command and are from the same env.\n * Network1:\n * seedersCapsules: [comp1]\n * originalSeedersCapsules: [comp1]\n * graphCapsules: [comp1, comp2, comp3].\n * Network2:\n * seedersCapsules: [comp2]\n * originalSeedersCapsules: [comp2]\n * graphCapsules: [comp2, comp3].\n * Network3:\n * seedersCapsules: [comp3]\n * originalSeedersCapsules: []\n * graphCapsules: [comp3].\n * As you can see, in network3, the originalSeeders is empty, because comp3 wasn’t part of the original seeders.\n * These 3 networks are created for build-pipeline. This pipeline asks for all components in the graph and then create the network per env.\n * Snap/Tag pipelines are different. They ask only for the components about to tag/snap, which are the original-seeders, and create the network per env. For them, we end up with 2 network instances only. network1 and network2. Also, the seedersCapsules and originalSeedersCapsules are the same because we create the network instances out of the seeders only, without the dependencies.\n * A build-task provides context with a network instance to the execute() method. (it also provide Component[] which are the “seeders”. not “originalSeeders”).\n *\n * Each build-task can decide on what components to operate. It has 3 options:\n * run on graphCapsules. If you do that, you risk running your task multiple times on the same components. In the example above, a task of build-pipeline, will run 3 times on comp3, because this component is part of the graphCapsules in each one of the network instance. So this is probably not recommended for most tasks.\n * run on seedersCapsules. With this option you make sure that your task is running for each one of the capsules and it runs only once. This is good for example for the compiler task. It needs to make sure all capsules are built. Otherwise, if it’s running only on originalSeedersCapsules, the comp3 won’t be compiled, the dists will be missing and comp2 won’t be able to run its tests.\n * run on originalSeedersCapsules . With this option you ensure that your task runs only on the ids you started with and you don’t run them on the dependencies. This is the option that most tasks probably need. An example is the test task, it should test only the seeders, no need to test the dependencies.\n *\n * Again, the distinction between seedersCapsules and originalSeedersCapsules is relevant for build-pipeline only. For tag-pipeline and snap-pipeline, these two are the same. You can see for example that Publisher task runs on seedersCapsules and that’s fine, it won’t be running on dependencies unexpectedly, only on the components it’s now tagging.\n */",
|
5603
|
-
"comment": "collection of isolated components (capsules).\nnormally, \"seeders\" are the components that this network was created for.\n\"graphCapsules\" is the graph created from the seeders and it includes also the dependencies.\n\nhowever, during \"bit build\"/\"bit tag\"/\"bit snap\", things are more complex because there is one more variable in the\npicture, which is the \"env\". the Network is created per env.\nin practice, for \"build-task\", a task is called per env, and the network passed to the task is relevant to that env.\nthe \"originalSeeders\" are the ones the network was created for, but only for this env.\nthe \"seeders\" are similar to the \"graphCapsules\" above, which contains also the dependencies, but only for this env.\nthe \"graphCapsules\" is the entire graph, including capsules from other envs.\n\nfor example:\ncomp1 depends on comp2. comp1 env is \"react\". comp2 env is \"aspect\".\n\nwhen the user is running \"bit build comp1\", two `Network` instances will be created with the following:\nNetwork for \"react\" env: originalSeeders: ['comp1'], seeders: ['comp1'], graphCapsules: ['comp1', 'comp2'].\nNetwork for \"aspect\" env: originalSeeders: [], seeders: ['comp2'], graphCapsules: ['comp2'].\n\non the other hand, when the user is running \"bit capsule create comp1\", only one `Network` instance is created:\nNetwork: originalSeeders: ['comp1'], seeders: ['comp1'], graphCapsules: ['comp1', 'comp2'].\n\n(as a side note, another implementation was attempt to have the \"seeders\" as the original-seeders for build,\nhowever, it's failed. see https://github.com/teambit/bit/pull/5407 for more details).\n\n\nA more detailed explanation about the \"seeders\" vs \"originalSeeders\" vs \"graphCapsules\" is provided below:\nan example: comp1 -> comp2 -> comp3 (as in comp1 uses comp2, comp2 uses comp3).\nI changed only comp2.\nFrom comp2 perspective, comp1 is a “dependent”, comp3 is a “dependency”.\n\nWhen I run bit build with no args, it finds only one modified component: comp2, however, it doesn’t stop here. It also look for the dependents, in this case, comp1. So the seeders of this bit-build command are two: “comp1” and “comp2\".\nThe reason why the dependents are included is because you modified comp2, it’s possible you broke comp1. We want to build comp1 as well to make sure it’s still okay.\n(btw, bit test command also include dependents when it provided with no args).\n\nKeep in mind that also bit tag normally runs on the dependents as well (when it runs the build pipeline), because these are the “auto-tag”.\nWith these two seeders it builds the graph. The graph calculates all the dependencies of the given seeders recursively. Eventually, it puts them in an instance of Network class.\nIn our case, if all components use the same env, the Network consist of:\nseedersCapsules: [comp1, comp2]\noriginalSeedersCapsules: [comp1, comp2]\ngraphCapsules: [comp1, comp2, comp3].\n\nIt gets more complex when multiple envs involved.\nImagine that comp1 uses env1, comp2 uses env2 and comp3 uses env3.\nBecause bit build runs the tasks per env, it needs to create 3 networks. Each per env.\nThe “seeders” refer to the seeders of the same env and includes only components from the same env.\nThe “originalSeeders” refer to the ones that originally started the build command and are from the same env.\nNetwork1:\nseedersCapsules: [comp1]\noriginalSeedersCapsules: [comp1]\ngraphCapsules: [comp1, comp2, comp3].\nNetwork2:\nseedersCapsules: [comp2]\noriginalSeedersCapsules: [comp2]\ngraphCapsules: [comp2, comp3].\nNetwork3:\nseedersCapsules: [comp3]\noriginalSeedersCapsules: []\ngraphCapsules: [comp3].\nAs you can see, in network3, the originalSeeders is empty, because comp3 wasn’t part of the original seeders.\nThese 3 networks are created for build-pipeline. This pipeline asks for all components in the graph and then create the network per env.\nSnap/Tag pipelines are different. They ask only for the components about to tag/snap, which are the original-seeders, and create the network per env. For them, we end up with 2 network instances only. network1 and network2. Also, the seedersCapsules and originalSeedersCapsules are the same because we create the network instances out of the seeders only, without the dependencies.\nA build-task provides context with a network instance to the execute() method. (it also provide Component[] which are the “seeders”. not “originalSeeders”).\n\nEach build-task can decide on what components to operate. It has 3 options:\nrun on graphCapsules. If you do that, you risk running your task multiple times on the same components. In the example above, a task of build-pipeline, will run 3 times on comp3, because this component is part of the graphCapsules in each one of the network instance. So this is probably not recommended for most tasks.\nrun on seedersCapsules. With this option you make sure that your task is running for each one of the capsules and it runs only once. This is good for example for the compiler task. It needs to make sure all capsules are built. Otherwise, if it’s running only on originalSeedersCapsules, the comp3 won’t be compiled, the dists will be missing and comp2 won’t be able to run its tests.\nrun on originalSeedersCapsules . With this option you ensure that your task runs only on the ids you started with and you don’t run them on the dependencies. This is the option that most tasks probably need. An example is the test task, it should test only the seeders, no need to test the dependencies.\n\nAgain, the distinction between seedersCapsules and originalSeedersCapsules is relevant for build-pipeline only. For tag-pipeline and snap-pipeline, these two are the same. You can see for example that Publisher task runs on seedersCapsules and that’s fine, it won’t be running on dependencies unexpectedly, only on the components it’s now tagging."
|
5628
|
+
"comment": "collection of isolated components (capsules).\nnormally, \"seeders\" are the components that this network was created for.\n\"graphCapsules\" is the graph created from the seeders and it includes also the dependencies.\n\nhowever, during \"bit build\"/\"bit tag\"/\"bit snap\", things are more complex because there is one more variable in the\npicture, which is the \"env\". the Network is created per env.\nin practice, for \"build-task\", a task is called per env, and the network passed to the task is relevant to that env.\nthe \"originalSeeders\" are the ones the network was created for, but only for this env.\nthe \"seeders\" are similar to the \"graphCapsules\" above, which contains also the dependencies, but only for this env.\nthe \"graphCapsules\" is the entire graph, including capsules from other envs.\n\nfor example:\ncomp1 depends on comp2. comp1 env is \"react\". comp2 env is \"aspect\".\n\nwhen the user is running \"bit build comp1\", two `Network` instances will be created with the following:\nNetwork for \"react\" env: originalSeeders: ['comp1'], seeders: ['comp1'], graphCapsules: ['comp1', 'comp2'].\nNetwork for \"aspect\" env: originalSeeders: [], seeders: ['comp2'], graphCapsules: ['comp2'].\n\non the other hand, when the user is running \"bit capsule create comp1\", only one `Network` instance is created:\nNetwork: originalSeeders: ['comp1'], seeders: ['comp1'], graphCapsules: ['comp1', 'comp2'].\n\n(as a side note, another implementation was attempt to have the \"seeders\" as the original-seeders for build,\nhowever, it's failed. see https://github.com/teambit/bit/pull/5407 for more details).\n\n\nA more detailed explanation about the \"seeders\" vs \"originalSeeders\" vs \"graphCapsules\" is provided below:\nan example: comp1 -> comp2 -> comp3 (as in comp1 uses comp2, comp2 uses comp3).\nI changed only comp2.\nFrom comp2 perspective, comp1 is a “dependent”, comp3 is a “dependency”.\n\nWhen I run bit build with no args, it finds only one modified component: comp2, however, it doesn’t stop here. It also look for the dependents, in this case, comp1. So the seeders of this bit-build command are two: “comp1” and “comp2\".\nThe reason why the dependents are included is because you modified comp2, it’s possible you broke comp1. We want to build comp1 as well to make sure it’s still okay.\n(btw, bit test command also include dependents when it provided with no args).\n\nKeep in mind that also bit tag normally runs on the dependents as well (when it runs the build pipeline), because these are the “auto-tag”.\nWith these two seeders it builds the graph. The graph calculates all the dependencies of the given seeders recursively. Eventually, it puts them in an instance of Network class.\nIn our case, if all components use the same env, the Network consist of:\nseedersCapsules: [comp1, comp2]\noriginalSeedersCapsules: [comp1, comp2]\ngraphCapsules: [comp1, comp2, comp3].\n\nIt gets more complex when multiple envs involved.\nImagine that comp1 uses env1, comp2 uses env2 and comp3 uses env3.\nBecause bit build runs the tasks per env, it needs to create 3 networks. Each per env.\nThe “seeders” refer to the seeders of the same env and includes only components from the same env.\nThe “originalSeeders” refer to the ones that originally started the build command and are from the same env.\nNetwork1:\nseedersCapsules: [comp1]\noriginalSeedersCapsules: [comp1]\ngraphCapsules: [comp1, comp2, comp3].\nNetwork2:\nseedersCapsules: [comp2]\noriginalSeedersCapsules: [comp2]\ngraphCapsules: [comp2, comp3].\nNetwork3:\nseedersCapsules: [comp3]\noriginalSeedersCapsules: []\ngraphCapsules: [comp3].\nAs you can see, in network3, the originalSeeders is empty, because comp3 wasn’t part of the original seeders.\nThese 3 networks are created for build-pipeline. This pipeline asks for all components in the graph and then create the network per env.\nSnap/Tag pipelines are different. They ask only for the components about to tag/snap, which are the original-seeders, and create the network per env. For them, we end up with 2 network instances only. network1 and network2. Also, the seedersCapsules and originalSeedersCapsules are the same because we create the network instances out of the seeders only, without the dependencies.\nA build-task provides context with a network instance to the execute() method. (it also provide Component[] which are the “seeders”. not “originalSeeders”).\n\nEach build-task can decide on what components to operate. It has 3 options:\nrun on graphCapsules. If you do that, you risk running your task multiple times on the same components. In the example above, a task of build-pipeline, will run 3 times on comp3, because this component is part of the graphCapsules in each one of the network instance. So this is probably not recommended for most tasks.\nrun on seedersCapsules. With this option you make sure that your task is running for each one of the capsules and it runs only once. This is good for example for the compiler task. It needs to make sure all capsules are built. Otherwise, if it’s running only on originalSeedersCapsules, the comp3 won’t be compiled, the dists will be missing and comp2 won’t be able to run its tests.\nrun on originalSeedersCapsules . With this option you ensure that your task runs only on the ids you started with and you don’t run them on the dependencies. This is the option that most tasks probably need. An example is the test task, it should test only the seeders, no need to test the dependencies.\n\nAgain, the distinction between seedersCapsules and originalSeedersCapsules is relevant for build-pipeline only. For tag-pipeline and snap-pipeline, these two are the same. You can see for example that Publisher task runs on seedersCapsules and that’s fine, it won’t be running on dependencies unexpectedly, only on the components it’s now tagging.",
|
5629
|
+
"tags": []
|
5604
5630
|
},
|
5605
5631
|
"signature": "class Network",
|
5606
5632
|
"name": "Network",
|
@@ -5806,7 +5832,8 @@
|
|
5806
5832
|
"character": 3
|
5807
5833
|
},
|
5808
5834
|
"raw": "/**\n * some of the capsules (non-modified) are written already with the dists files, so no need to re-compile them.\n * this method helps optimizing compilers that are running on the capsules.\n */",
|
5809
|
-
"comment": "some of the capsules (non-modified) are written already with the dists files, so no need to re-compile them.\nthis method helps optimizing compilers that are running on the capsules."
|
5835
|
+
"comment": "some of the capsules (non-modified) are written already with the dists files, so no need to re-compile them.\nthis method helps optimizing compilers that are running on the capsules.",
|
5836
|
+
"tags": []
|
5810
5837
|
},
|
5811
5838
|
"signature": "(method) Network.getCapsulesToCompile(): Promise<CapsuleList>",
|
5812
5839
|
"name": "getCapsulesToCompile",
|
@@ -6017,7 +6044,7 @@
|
|
6017
6044
|
"_legacy": {
|
6018
6045
|
"scope": "teambit.component",
|
6019
6046
|
"name": "isolator",
|
6020
|
-
"version": "1.0.
|
6047
|
+
"version": "1.0.311"
|
6021
6048
|
},
|
6022
6049
|
"_scope": "teambit.component"
|
6023
6050
|
}
|
@@ -6078,7 +6105,7 @@
|
|
6078
6105
|
"_legacy": {
|
6079
6106
|
"scope": "teambit.component",
|
6080
6107
|
"name": "isolator",
|
6081
|
-
"version": "1.0.
|
6108
|
+
"version": "1.0.311"
|
6082
6109
|
},
|
6083
6110
|
"_scope": "teambit.component"
|
6084
6111
|
}
|
@@ -6984,7 +7011,7 @@
|
|
6984
7011
|
"_legacy": {
|
6985
7012
|
"scope": "teambit.component",
|
6986
7013
|
"name": "isolator",
|
6987
|
-
"version": "1.0.
|
7014
|
+
"version": "1.0.311"
|
6988
7015
|
},
|
6989
7016
|
"_scope": "teambit.component"
|
6990
7017
|
}
|
@@ -7742,6 +7769,7 @@
|
|
7742
7769
|
"character": 3
|
7743
7770
|
},
|
7744
7771
|
"raw": "/**\n * @todo: fix.\n * it skips the capsule fs because for some reason `capsule.fs.promises.readdir` doesn't work\n * the same as `capsule.fs.readdir` and it doesn't have the capsule dir as pwd.\n *\n * returns the paths inside the capsule\n */",
|
7772
|
+
"comment": "",
|
7745
7773
|
"tags": [
|
7746
7774
|
{
|
7747
7775
|
"__schema": "TagSchema",
|
@@ -8247,7 +8275,7 @@
|
|
8247
8275
|
"_legacy": {
|
8248
8276
|
"scope": "teambit.component",
|
8249
8277
|
"name": "isolator",
|
8250
|
-
"version": "1.0.
|
8278
|
+
"version": "1.0.311"
|
8251
8279
|
},
|
8252
8280
|
"_scope": "teambit.component"
|
8253
8281
|
}
|
@@ -8535,7 +8563,7 @@
|
|
8535
8563
|
"_legacy": {
|
8536
8564
|
"scope": "teambit.component",
|
8537
8565
|
"name": "isolator",
|
8538
|
-
"version": "1.0.
|
8566
|
+
"version": "1.0.311"
|
8539
8567
|
},
|
8540
8568
|
"_scope": "teambit.component"
|
8541
8569
|
}
|
@@ -8564,7 +8592,7 @@
|
|
8564
8592
|
"_legacy": {
|
8565
8593
|
"scope": "teambit.component",
|
8566
8594
|
"name": "isolator",
|
8567
|
-
"version": "1.0.
|
8595
|
+
"version": "1.0.311"
|
8568
8596
|
},
|
8569
8597
|
"_scope": "teambit.component"
|
8570
8598
|
}
|
@@ -8765,7 +8793,8 @@
|
|
8765
8793
|
"character": 1
|
8766
8794
|
},
|
8767
8795
|
"raw": "/**\n * Context for the isolation process\n */",
|
8768
|
-
"comment": "Context for the isolation process"
|
8796
|
+
"comment": "Context for the isolation process",
|
8797
|
+
"tags": []
|
8769
8798
|
},
|
8770
8799
|
"signature": "type IsolationContext = {\n aspects?: boolean | undefined;\n workspaceName?: string | undefined;\n}",
|
8771
8800
|
"name": "IsolationContext",
|
@@ -8792,7 +8821,8 @@
|
|
8792
8821
|
"character": 3
|
8793
8822
|
},
|
8794
8823
|
"raw": "/**\n * Whether the isolation done for aspects (as opposed to regular components)\n */",
|
8795
|
-
"comment": "Whether the isolation done for aspects (as opposed to regular components)"
|
8824
|
+
"comment": "Whether the isolation done for aspects (as opposed to regular components)",
|
8825
|
+
"tags": []
|
8796
8826
|
},
|
8797
8827
|
"signature": "(property) aspects?: boolean | undefined",
|
8798
8828
|
"name": "aspects",
|
@@ -8822,7 +8852,8 @@
|
|
8822
8852
|
"character": 3
|
8823
8853
|
},
|
8824
8854
|
"raw": "/**\n * Workspace name where the isolation starts from\n */",
|
8825
|
-
"comment": "Workspace name where the isolation starts from"
|
8855
|
+
"comment": "Workspace name where the isolation starts from",
|
8856
|
+
"tags": []
|
8826
8857
|
},
|
8827
8858
|
"signature": "(property) workspaceName?: string | undefined",
|
8828
8859
|
"name": "workspaceName",
|
@@ -9090,7 +9121,8 @@
|
|
9090
9121
|
"character": 3
|
9091
9122
|
},
|
9092
9123
|
"raw": "/**\n * absolute path to put all the capsules dirs inside.\n */",
|
9093
|
-
"comment": "absolute path to put all the capsules dirs inside."
|
9124
|
+
"comment": "absolute path to put all the capsules dirs inside.",
|
9125
|
+
"tags": []
|
9094
9126
|
},
|
9095
9127
|
"signature": "(property) rootBaseDir?: string | undefined",
|
9096
9128
|
"name": "rootBaseDir",
|
@@ -9120,7 +9152,8 @@
|
|
9120
9152
|
"character": 3
|
9121
9153
|
},
|
9122
9154
|
"raw": "/**\n * the capsule root-dir based on a *hash* of this baseDir, not on the baseDir itself.\n * A folder with this hash as its name will be created in the rootBaseDir\n * By default this value will be the host path\n */",
|
9123
|
-
"comment": "the capsule root-dir based on a *hash* of this baseDir, not on the baseDir itself.\nA folder with this hash as its name will be created in the rootBaseDir\nBy default this value will be the host path"
|
9155
|
+
"comment": "the capsule root-dir based on a *hash* of this baseDir, not on the baseDir itself.\nA folder with this hash as its name will be created in the rootBaseDir\nBy default this value will be the host path",
|
9156
|
+
"tags": []
|
9124
9157
|
},
|
9125
9158
|
"signature": "(property) baseDir?: string | undefined",
|
9126
9159
|
"name": "baseDir",
|
@@ -9150,7 +9183,8 @@
|
|
9150
9183
|
"character": 3
|
9151
9184
|
},
|
9152
9185
|
"raw": "/**\n * Whether to use hash function (of base dir) as capsules root dir name\n */",
|
9153
|
-
"comment": "Whether to use hash function (of base dir) as capsules root dir name"
|
9186
|
+
"comment": "Whether to use hash function (of base dir) as capsules root dir name",
|
9187
|
+
"tags": []
|
9154
9188
|
},
|
9155
9189
|
"signature": "(property) useHash?: boolean | undefined",
|
9156
9190
|
"name": "useHash",
|
@@ -9180,7 +9214,8 @@
|
|
9180
9214
|
"character": 3
|
9181
9215
|
},
|
9182
9216
|
"raw": "/**\n * create a new capsule with a random string attached to the path suffix\n */",
|
9183
|
-
"comment": "create a new capsule with a random string attached to the path suffix"
|
9217
|
+
"comment": "create a new capsule with a random string attached to the path suffix",
|
9218
|
+
"tags": []
|
9184
9219
|
},
|
9185
9220
|
"signature": "(property) alwaysNew?: boolean | undefined",
|
9186
9221
|
"name": "alwaysNew",
|
@@ -9210,7 +9245,8 @@
|
|
9210
9245
|
"character": 3
|
9211
9246
|
},
|
9212
9247
|
"raw": "/**\n * If this is true -\n * the isolator will check if there are missing capsules in the base dir\n * if yes, it will create the capsule in a special dir inside a dir with the current date (without time)\n * then inside that dir, it will create a dir with a random hash\n * at the end of the process it will move missing capsules from the temp dir to the base dir so they can be used in\n * the next iteration\n */",
|
9213
|
-
"comment": "If this is true -\nthe isolator will check if there are missing capsules in the base dir\nif yes, it will create the capsule in a special dir inside a dir with the current date (without time)\nthen inside that dir, it will create a dir with a random hash\nat the end of the process it will move missing capsules from the temp dir to the base dir so they can be used in\nthe next iteration"
|
9248
|
+
"comment": "If this is true -\nthe isolator will check if there are missing capsules in the base dir\nif yes, it will create the capsule in a special dir inside a dir with the current date (without time)\nthen inside that dir, it will create a dir with a random hash\nat the end of the process it will move missing capsules from the temp dir to the base dir so they can be used in\nthe next iteration",
|
9249
|
+
"tags": []
|
9214
9250
|
},
|
9215
9251
|
"signature": "(property) useDatedDirs?: boolean | undefined",
|
9216
9252
|
"name": "useDatedDirs",
|
@@ -9240,7 +9276,8 @@
|
|
9240
9276
|
"character": 3
|
9241
9277
|
},
|
9242
9278
|
"raw": "/**\n * If this is true -\n * the isolator will do few things:\n * 1. in the end of the process it will only move the lock file (pnpm-lock.yaml) into the capsule cache\n * 2. in the beginning of the process it will check if there is a lock file in the capsule cache, if yes it will move\n * it to the temp dated dir\n * 3. it will write env's file into the dated dir (as it only contain the lock file)\n * 4. it will run install in the dated dir (as there is no node_modules there yet)\n */",
|
9243
|
-
"comment": "If this is true -\nthe isolator will do few things:\n1. in the end of the process it will only move the lock file (pnpm-lock.yaml) into the capsule cache\n2. in the beginning of the process it will check if there is a lock file in the capsule cache, if yes it will move\nit to the temp dated dir\n3. it will write env's file into the dated dir (as it only contain the lock file)\n4. it will run install in the dated dir (as there is no node_modules there yet)"
|
9279
|
+
"comment": "If this is true -\nthe isolator will do few things:\n1. in the end of the process it will only move the lock file (pnpm-lock.yaml) into the capsule cache\n2. in the beginning of the process it will check if there is a lock file in the capsule cache, if yes it will move\nit to the temp dated dir\n3. it will write env's file into the dated dir (as it only contain the lock file)\n4. it will run install in the dated dir (as there is no node_modules there yet)",
|
9280
|
+
"tags": []
|
9244
9281
|
},
|
9245
9282
|
"signature": "(property) cacheLockFileOnly?: boolean | undefined",
|
9246
9283
|
"name": "cacheLockFileOnly",
|
@@ -9270,7 +9307,8 @@
|
|
9270
9307
|
"character": 3
|
9271
9308
|
},
|
9272
9309
|
"raw": "/**\n * If set, along with useDatedDirs, then we will use the same hash dir for all capsules created with the same\n * datedDirId\n */",
|
9273
|
-
"comment": "If set, along with useDatedDirs, then we will use the same hash dir for all capsules created with the same\ndatedDirId"
|
9310
|
+
"comment": "If set, along with useDatedDirs, then we will use the same hash dir for all capsules created with the same\ndatedDirId",
|
9311
|
+
"tags": []
|
9274
9312
|
},
|
9275
9313
|
"signature": "(property) datedDirId?: string | undefined",
|
9276
9314
|
"name": "datedDirId",
|
@@ -9300,7 +9338,8 @@
|
|
9300
9338
|
"character": 3
|
9301
9339
|
},
|
9302
9340
|
"raw": "/**\n * installation options\n */",
|
9303
|
-
"comment": "installation options"
|
9341
|
+
"comment": "installation options",
|
9342
|
+
"tags": []
|
9304
9343
|
},
|
9305
9344
|
"signature": "(property) installOptions?: IsolateComponentsInstallOptions | undefined",
|
9306
9345
|
"name": "installOptions",
|
@@ -9355,7 +9394,8 @@
|
|
9355
9394
|
"character": 3
|
9356
9395
|
},
|
9357
9396
|
"raw": "/**\n * delete the capsule rootDir first. it makes sure that the isolation process starts fresh with\n * no previous capsules. for build and tag this is true.\n */",
|
9358
|
-
"comment": "delete the capsule rootDir first. it makes sure that the isolation process starts fresh with\nno previous capsules. for build and tag this is true."
|
9397
|
+
"comment": "delete the capsule rootDir first. it makes sure that the isolation process starts fresh with\nno previous capsules. for build and tag this is true.",
|
9398
|
+
"tags": []
|
9359
9399
|
},
|
9360
9400
|
"signature": "(property) emptyRootDir?: boolean | undefined",
|
9361
9401
|
"name": "emptyRootDir",
|
@@ -9385,7 +9425,8 @@
|
|
9385
9425
|
"character": 3
|
9386
9426
|
},
|
9387
9427
|
"raw": "/**\n * skip the reproduction of the capsule in case it exists.\n */",
|
9388
|
-
"comment": "skip the reproduction of the capsule in case it exists."
|
9428
|
+
"comment": "skip the reproduction of the capsule in case it exists.",
|
9429
|
+
"tags": []
|
9389
9430
|
},
|
9390
9431
|
"signature": "(property) skipIfExists?: boolean | undefined",
|
9391
9432
|
"name": "skipIfExists",
|
@@ -9415,7 +9456,8 @@
|
|
9415
9456
|
"character": 3
|
9416
9457
|
},
|
9417
9458
|
"raw": "/**\n * get existing capsule without doing any changes, no writes, no installations.\n */",
|
9418
|
-
"comment": "get existing capsule without doing any changes, no writes, no installations."
|
9459
|
+
"comment": "get existing capsule without doing any changes, no writes, no installations.",
|
9460
|
+
"tags": []
|
9419
9461
|
},
|
9420
9462
|
"signature": "(property) getExistingAsIs?: boolean | undefined",
|
9421
9463
|
"name": "getExistingAsIs",
|
@@ -9445,7 +9487,8 @@
|
|
9445
9487
|
"character": 3
|
9446
9488
|
},
|
9447
9489
|
"raw": "/**\n * place the package-manager cache on the capsule-root\n */",
|
9448
|
-
"comment": "place the package-manager cache on the capsule-root"
|
9490
|
+
"comment": "place the package-manager cache on the capsule-root",
|
9491
|
+
"tags": []
|
9449
9492
|
},
|
9450
9493
|
"signature": "(property) cachePackagesOnCapsulesRoot?: boolean | undefined",
|
9451
9494
|
"name": "cachePackagesOnCapsulesRoot",
|
@@ -9475,7 +9518,8 @@
|
|
9475
9518
|
"character": 3
|
9476
9519
|
},
|
9477
9520
|
"raw": "/**\n * do not build graph with all dependencies. isolate the seeders only.\n */",
|
9478
|
-
"comment": "do not build graph with all dependencies. isolate the seeders only."
|
9521
|
+
"comment": "do not build graph with all dependencies. isolate the seeders only.",
|
9522
|
+
"tags": []
|
9479
9523
|
},
|
9480
9524
|
"signature": "(property) seedersOnly?: boolean | undefined",
|
9481
9525
|
"name": "seedersOnly",
|
@@ -9505,7 +9549,8 @@
|
|
9505
9549
|
"character": 3
|
9506
9550
|
},
|
9507
9551
|
"raw": "/**\n * relevant for tagging from scope, where we tag an existing snap without any code-changes.\n * the idea is to have all build artifacts from the previous snap and run deploy pipeline on top of it.\n */",
|
9508
|
-
"comment": "relevant for tagging from scope, where we tag an existing snap without any code-changes.\nthe idea is to have all build artifacts from the previous snap and run deploy pipeline on top of it."
|
9552
|
+
"comment": "relevant for tagging from scope, where we tag an existing snap without any code-changes.\nthe idea is to have all build artifacts from the previous snap and run deploy pipeline on top of it.",
|
9553
|
+
"tags": []
|
9509
9554
|
},
|
9510
9555
|
"signature": "(property) populateArtifactsFrom?: ComponentID[] | undefined",
|
9511
9556
|
"name": "populateArtifactsFrom",
|
@@ -9548,7 +9593,8 @@
|
|
9548
9593
|
"character": 3
|
9549
9594
|
},
|
9550
9595
|
"raw": "/**\n * Force specific host to get the component from.\n */",
|
9551
|
-
"comment": "Force specific host to get the component from."
|
9596
|
+
"comment": "Force specific host to get the component from.",
|
9597
|
+
"tags": []
|
9552
9598
|
},
|
9553
9599
|
"signature": "(property) host?: ComponentFactory | undefined",
|
9554
9600
|
"name": "host",
|
@@ -9582,7 +9628,8 @@
|
|
9582
9628
|
"character": 3
|
9583
9629
|
},
|
9584
9630
|
"raw": "/**\n * Use specific package manager for the isolation process (override the package manager from the dep resolver config)\n */",
|
9585
|
-
"comment": "Use specific package manager for the isolation process (override the package manager from the dep resolver config)"
|
9631
|
+
"comment": "Use specific package manager for the isolation process (override the package manager from the dep resolver config)",
|
9632
|
+
"tags": []
|
9586
9633
|
},
|
9587
9634
|
"signature": "(property) packageManager?: string | undefined",
|
9588
9635
|
"name": "packageManager",
|
@@ -9612,7 +9659,8 @@
|
|
9612
9659
|
"character": 3
|
9613
9660
|
},
|
9614
9661
|
"raw": "/**\n * Use specific node linker for the isolation process (override the package manager from the dep resolver config)\n */",
|
9615
|
-
"comment": "Use specific node linker for the isolation process (override the package manager from the dep resolver config)"
|
9662
|
+
"comment": "Use specific node linker for the isolation process (override the package manager from the dep resolver config)",
|
9663
|
+
"tags": []
|
9616
9664
|
},
|
9617
9665
|
"signature": "(property) nodeLinker?: NodeLinker | undefined",
|
9618
9666
|
"name": "nodeLinker",
|
@@ -9646,7 +9694,8 @@
|
|
9646
9694
|
"character": 3
|
9647
9695
|
},
|
9648
9696
|
"raw": "/**\n * Dir where to read the package manager config from\n * usually used when running package manager in the capsules dir to use the config\n * from the workspace dir\n */",
|
9649
|
-
"comment": "Dir where to read the package manager config from\nusually used when running package manager in the capsules dir to use the config\nfrom the workspace dir"
|
9697
|
+
"comment": "Dir where to read the package manager config from\nusually used when running package manager in the capsules dir to use the config\nfrom the workspace dir",
|
9698
|
+
"tags": []
|
9650
9699
|
},
|
9651
9700
|
"signature": "(property) packageManagerConfigRootDir?: string | undefined",
|
9652
9701
|
"name": "packageManagerConfigRootDir",
|
@@ -9697,7 +9746,8 @@
|
|
9697
9746
|
"character": 3
|
9698
9747
|
},
|
9699
9748
|
"raw": "/**\n * Root dir of capsulse cache (used mostly to copy lock file if used with cache lock file only option)\n */",
|
9700
|
-
"comment": "Root dir of capsulse cache (used mostly to copy lock file if used with cache lock file only option)"
|
9749
|
+
"comment": "Root dir of capsulse cache (used mostly to copy lock file if used with cache lock file only option)",
|
9750
|
+
"tags": []
|
9701
9751
|
},
|
9702
9752
|
"signature": "(property) cacheCapsulesDir?: string | undefined",
|
9703
9753
|
"name": "cacheCapsulesDir",
|
@@ -10467,6 +10517,7 @@
|
|
10467
10517
|
"character": 3
|
10468
10518
|
},
|
10469
10519
|
"raw": "/**\n *\n * @param originalCapsule the capsule that contains the original component\n * @param newBaseDir relative path. (it will be saved inside `this.getRootDirOfAllCapsules()`. the final path of the capsule will be getRootDirOfAllCapsules() + newBaseDir + filenameify(component.id))\n * @returns a new capsule with the same content of the original capsule but with a new baseDir and all packages\n * installed in the newBaseDir.\n */",
|
10520
|
+
"comment": "",
|
10470
10521
|
"tags": [
|
10471
10522
|
{
|
10472
10523
|
"__schema": "PropertyLikeTagSchema",
|
@@ -10684,6 +10735,7 @@
|
|
10684
10735
|
"character": 3
|
10685
10736
|
},
|
10686
10737
|
"raw": "/** @deprecated use the new function signature with an object parameter instead */",
|
10738
|
+
"comment": "",
|
10687
10739
|
"tags": [
|
10688
10740
|
{
|
10689
10741
|
"__schema": "TagSchema",
|
@@ -11213,7 +11265,8 @@
|
|
11213
11265
|
"character": 3
|
11214
11266
|
},
|
11215
11267
|
"raw": "/**\n * include components that exists in nested hosts. for example include components that exist in scope but not in the workspace\n */",
|
11216
|
-
"comment": "include components that exists in nested hosts. for example include components that exist in scope but not in the workspace"
|
11268
|
+
"comment": "include components that exists in nested hosts. for example include components that exist in scope but not in the workspace",
|
11269
|
+
"tags": []
|
11217
11270
|
},
|
11218
11271
|
"signature": "(property) includeFromNestedHosts?: boolean | undefined",
|
11219
11272
|
"name": "includeFromNestedHosts",
|
@@ -11243,7 +11296,8 @@
|
|
11243
11296
|
"character": 3
|
11244
11297
|
},
|
11245
11298
|
"raw": "/**\n * Force specific host to get the component from.\n */",
|
11246
|
-
"comment": "Force specific host to get the component from."
|
11299
|
+
"comment": "Force specific host to get the component from.",
|
11300
|
+
"tags": []
|
11247
11301
|
},
|
11248
11302
|
"signature": "(property) host?: ComponentFactory | undefined",
|
11249
11303
|
"name": "host",
|
@@ -12133,7 +12187,8 @@
|
|
12133
12187
|
"character": 3
|
12134
12188
|
},
|
12135
12189
|
"raw": "/**\n * determines whether or not a capsule can theoretically use the dists saved in the last snap, rather than re-compile them.\n * practically, this optimization is used for components that have typescript as their compiler.\n */",
|
12136
|
-
"comment": "determines whether or not a capsule can theoretically use the dists saved in the last snap, rather than re-compile them.\npractically, this optimization is used for components that have typescript as their compiler."
|
12190
|
+
"comment": "determines whether or not a capsule can theoretically use the dists saved in the last snap, rather than re-compile them.\npractically, this optimization is used for components that have typescript as their compiler.",
|
12191
|
+
"tags": []
|
12137
12192
|
},
|
12138
12193
|
"signature": "(method) CapsuleList.capsuleUsePreviouslySavedDists(component: Component): Promise<boolean>",
|
12139
12194
|
"name": "capsuleUsePreviouslySavedDists",
|
@@ -12221,7 +12276,7 @@
|
|
12221
12276
|
"_legacy": {
|
12222
12277
|
"scope": "teambit.component",
|
12223
12278
|
"name": "isolator",
|
12224
|
-
"version": "1.0.
|
12279
|
+
"version": "1.0.311"
|
12225
12280
|
},
|
12226
12281
|
"_scope": "teambit.component"
|
12227
12282
|
}
|
@@ -12237,7 +12292,7 @@
|
|
12237
12292
|
"componentId": {
|
12238
12293
|
"scope": "teambit.component",
|
12239
12294
|
"name": "isolator",
|
12240
|
-
"version": "1.0.
|
12295
|
+
"version": "1.0.311"
|
12241
12296
|
},
|
12242
12297
|
"taggedModuleExports": []
|
12243
12298
|
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_isolator@1.0.
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_isolator@1.0.
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_isolator@1.0.311/dist/isolator.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_isolator@1.0.311/dist/isolator.docs.md';
|
3
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/isolator",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.311",
|
4
4
|
"homepage": "https://bit.cloud/teambit/component/isolator",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.component",
|
8
8
|
"name": "isolator",
|
9
|
-
"version": "1.0.
|
9
|
+
"version": "1.0.311"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "2.4.2",
|
@@ -26,15 +26,15 @@
|
|
26
26
|
"@teambit/component-id": "1.2.0",
|
27
27
|
"@teambit/graph.cleargraph": "0.0.11",
|
28
28
|
"@teambit/harmony": "0.4.6",
|
29
|
-
"@teambit/component": "1.0.
|
30
|
-
"@teambit/dependency-resolver": "1.0.
|
31
|
-
"@teambit/aspect-loader": "1.0.
|
32
|
-
"@teambit/cli": "0.0.
|
29
|
+
"@teambit/component": "1.0.311",
|
30
|
+
"@teambit/dependency-resolver": "1.0.311",
|
31
|
+
"@teambit/aspect-loader": "1.0.311",
|
32
|
+
"@teambit/cli": "0.0.888",
|
33
33
|
"@teambit/component-package-version": "0.0.433",
|
34
34
|
"@teambit/dependencies.fs.linked-dependencies": "0.0.9",
|
35
|
-
"@teambit/global-config": "0.0.
|
36
|
-
"@teambit/graph": "1.0.
|
37
|
-
"@teambit/logger": "0.0.
|
35
|
+
"@teambit/global-config": "0.0.891",
|
36
|
+
"@teambit/graph": "1.0.311",
|
37
|
+
"@teambit/logger": "0.0.981",
|
38
38
|
"@teambit/workspace.modules.node-modules-linker": "0.0.174"
|
39
39
|
},
|
40
40
|
"devDependencies": {
|