@teambit/workspace 0.0.881 → 0.0.883

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.
Files changed (108) hide show
  1. package/dist/bit-map.js +10 -51
  2. package/dist/bit-map.js.map +1 -1
  3. package/dist/build-graph-from-fs.js +1 -53
  4. package/dist/build-graph-from-fs.js.map +1 -1
  5. package/dist/capsule.cmd.js +2 -34
  6. package/dist/capsule.cmd.js.map +1 -1
  7. package/dist/component-config-file/component-config-file.js +2 -60
  8. package/dist/component-config-file/component-config-file.js.map +1 -1
  9. package/dist/component-config-file/exceptions/already-exists.js +0 -6
  10. package/dist/component-config-file/exceptions/already-exists.js.map +1 -1
  11. package/dist/component-config-file/exceptions/index.js +0 -3
  12. package/dist/component-config-file/exceptions/index.js.map +1 -1
  13. package/dist/component-config-file/index.js +0 -6
  14. package/dist/component-config-file/index.js.map +1 -1
  15. package/dist/component-tree.widget.js +0 -18
  16. package/dist/component-tree.widget.js.map +1 -1
  17. package/dist/constants.js.map +1 -1
  18. package/dist/eject-conf.cmd.js +0 -23
  19. package/dist/eject-conf.cmd.js.map +1 -1
  20. package/dist/envs-subcommands/envs-replace.cmd.js +0 -13
  21. package/dist/envs-subcommands/envs-replace.cmd.js.map +1 -1
  22. package/dist/envs-subcommands/envs-set.cmd.js +0 -16
  23. package/dist/envs-subcommands/envs-set.cmd.js.map +1 -1
  24. package/dist/envs-subcommands/envs-unset.cmd.js +0 -18
  25. package/dist/envs-subcommands/envs-unset.cmd.js.map +1 -1
  26. package/dist/events/index.js +0 -6
  27. package/dist/events/index.js.map +1 -1
  28. package/dist/events/on-component-add-event.js +1 -12
  29. package/dist/events/on-component-add-event.js.map +1 -1
  30. package/dist/events/on-component-change-event.js +1 -12
  31. package/dist/events/on-component-change-event.js.map +1 -1
  32. package/dist/events/on-component-removed-event.js +1 -12
  33. package/dist/events/on-component-removed-event.js.map +1 -1
  34. package/dist/exceptions/incorrect-env-aspect.js +0 -6
  35. package/dist/exceptions/incorrect-env-aspect.js.map +1 -1
  36. package/dist/index.js +0 -19
  37. package/dist/index.js.map +1 -1
  38. package/dist/list.cmd.js +2 -15
  39. package/dist/list.cmd.js.map +1 -1
  40. package/dist/pattern.cmd.js +0 -16
  41. package/dist/pattern.cmd.js.map +1 -1
  42. package/dist/scope-subcommands/scope-set.cmd.js +0 -17
  43. package/dist/scope-subcommands/scope-set.cmd.js.map +1 -1
  44. package/dist/ui/index.js +0 -3
  45. package/dist/ui/index.js.map +1 -1
  46. package/dist/ui/workspace/default-component.js.map +1 -1
  47. package/dist/ui/workspace/index.js +0 -2
  48. package/dist/ui/workspace/index.js.map +1 -1
  49. package/dist/ui/workspace/use-workspace.js +14 -49
  50. package/dist/ui/workspace/use-workspace.js.map +1 -1
  51. package/dist/ui/workspace/workspace-context.js +0 -7
  52. package/dist/ui/workspace/workspace-context.js.map +1 -1
  53. package/dist/ui/workspace/workspace-model.js +2 -14
  54. package/dist/ui/workspace/workspace-model.js.map +1 -1
  55. package/dist/ui/workspace/workspace-overview/index.js +0 -3
  56. package/dist/ui/workspace/workspace-overview/index.js.map +1 -1
  57. package/dist/ui/workspace/workspace-overview/workspace-overview.js +0 -23
  58. package/dist/ui/workspace/workspace-overview/workspace-overview.js.map +1 -1
  59. package/dist/ui/workspace/workspace-provider.js +0 -8
  60. package/dist/ui/workspace/workspace-provider.js.map +1 -1
  61. package/dist/ui/workspace/workspace.js +2 -52
  62. package/dist/ui/workspace/workspace.js.map +1 -1
  63. package/dist/use.cmd.js +0 -13
  64. package/dist/use.cmd.js.map +1 -1
  65. package/dist/watch/check-types.js +0 -1
  66. package/dist/watch/check-types.js.map +1 -1
  67. package/dist/watch/output-formatter.js +1 -12
  68. package/dist/watch/output-formatter.js.map +1 -1
  69. package/dist/watch/watch-queue.js +0 -13
  70. package/dist/watch/watch-queue.js.map +1 -1
  71. package/dist/watch/watch.cmd.js +6 -41
  72. package/dist/watch/watch.cmd.js.map +1 -1
  73. package/dist/watch/watcher.js +13 -133
  74. package/dist/watch/watcher.js.map +1 -1
  75. package/dist/workspace-component/component-status.js +0 -4
  76. package/dist/workspace-component/component-status.js.map +1 -1
  77. package/dist/workspace-component/index.js +0 -6
  78. package/dist/workspace-component/index.js.map +1 -1
  79. package/dist/workspace-component/workspace-component-loader.js +31 -116
  80. package/dist/workspace-component/workspace-component-loader.js.map +1 -1
  81. package/dist/workspace-component/workspace-component.js +1 -11
  82. package/dist/workspace-component/workspace-component.js.map +1 -1
  83. package/dist/workspace-section.js +2 -0
  84. package/dist/workspace-section.js.map +1 -1
  85. package/dist/workspace.aspect.js +0 -5
  86. package/dist/workspace.aspect.js.map +1 -1
  87. package/dist/workspace.composition.js +0 -6
  88. package/dist/workspace.composition.js.map +1 -1
  89. package/dist/workspace.d.ts +1 -0
  90. package/dist/workspace.graphql.js +0 -12
  91. package/dist/workspace.graphql.js.map +1 -1
  92. package/dist/workspace.js +141 -545
  93. package/dist/workspace.js.map +1 -1
  94. package/dist/workspace.main.runtime.js +0 -55
  95. package/dist/workspace.main.runtime.js.map +1 -1
  96. package/dist/workspace.provider.js +8 -77
  97. package/dist/workspace.provider.js.map +1 -1
  98. package/dist/workspace.ui-root.js +3 -17
  99. package/dist/workspace.ui-root.js.map +1 -1
  100. package/dist/workspace.ui.drawer.js +2 -24
  101. package/dist/workspace.ui.drawer.js.map +1 -1
  102. package/dist/workspace.ui.runtime.js +0 -75
  103. package/dist/workspace.ui.runtime.js.map +1 -1
  104. package/package-tar/teambit-workspace-0.0.883.tgz +0 -0
  105. package/package.json +18 -18
  106. package/{preview-1666409808293.js → preview-1666582798766.js} +2 -2
  107. package/workspace-component/workspace-component-loader.ts +13 -3
  108. package/package-tar/teambit-workspace-0.0.881.tgz +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":["ComponentTreeWidget","component","lanesModel","useLanes","isInCurrentLane","useMemo","id","isComponentOnLaneButNotOnMain","viewedLane","status","issuesCount"],"sources":["component-tree.widget.tsx"],"sourcesContent":["import { ComponentTreeNode, ComponentTreeNodeProps } from '@teambit/component-tree';\nimport { ComponentStatusResolver } from '@teambit/component.ui.component-status-resolver';\nimport { useLanes } from '@teambit/lanes.hooks.use-lanes';\nimport React, { useMemo } from 'react';\n\nexport class ComponentTreeWidget implements ComponentTreeNode {\n widget = ({ component }: ComponentTreeNodeProps) => {\n const { lanesModel } = useLanes();\n\n const isInCurrentLane = useMemo(() => {\n return component.id && lanesModel?.isComponentOnLaneButNotOnMain(component.id);\n }, [lanesModel?.viewedLane, component.id]);\n\n return (\n <ComponentStatusResolver\n status={component.status}\n issuesCount={component.issuesCount}\n isInCurrentLane={isInCurrentLane}\n />\n );\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;;;;;AAEO,MAAMA,mBAAN,CAAuD;EAAA;IAAA,gDACnD,CAAC;MAAEC;IAAF,CAAD,KAA2C;MAClD,MAAM;QAAEC;MAAF,IAAiB,IAAAC,sBAAA,GAAvB;MAEA,MAAMC,eAAe,GAAG,IAAAC,gBAAA,EAAQ,MAAM;QACpC,OAAOJ,SAAS,CAACK,EAAV,KAAgBJ,UAAhB,aAAgBA,UAAhB,uBAAgBA,UAAU,CAAEK,6BAAZ,CAA0CN,SAAS,CAACK,EAApD,CAAhB,CAAP;MACD,CAFuB,EAErB,CAACJ,UAAD,aAACA,UAAD,uBAACA,UAAU,CAAEM,UAAb,EAAyBP,SAAS,CAACK,EAAnC,CAFqB,CAAxB;MAIA,oBACE,+BAAC,sCAAD;QACE,MAAM,EAAEL,SAAS,CAACQ,MADpB;QAEE,WAAW,EAAER,SAAS,CAACS,WAFzB;QAGE,eAAe,EAAEN;MAHnB,EADF;IAOD,CAf2D;EAAA;;AAAA"}
1
+ {"version":3,"names":["ComponentTreeWidget","component","lanesModel","useLanes","isInCurrentLane","useMemo","id","isComponentOnLaneButNotOnMain","viewedLane","status","issuesCount"],"sources":["component-tree.widget.tsx"],"sourcesContent":["import { ComponentTreeNode, ComponentTreeNodeProps } from '@teambit/component-tree';\nimport { ComponentStatusResolver } from '@teambit/component.ui.component-status-resolver';\nimport { useLanes } from '@teambit/lanes.hooks.use-lanes';\nimport React, { useMemo } from 'react';\n\nexport class ComponentTreeWidget implements ComponentTreeNode {\n widget = ({ component }: ComponentTreeNodeProps) => {\n const { lanesModel } = useLanes();\n\n const isInCurrentLane = useMemo(() => {\n return component.id && lanesModel?.isComponentOnLaneButNotOnMain(component.id);\n }, [lanesModel?.viewedLane, component.id]);\n\n return (\n <ComponentStatusResolver\n status={component.status}\n issuesCount={component.issuesCount}\n isInCurrentLane={isInCurrentLane}\n />\n );\n };\n}\n"],"mappings":";;;;;;;;;;;;;;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAAuC;AAAA;AAEhC,MAAMA,mBAAmB,CAA8B;EAAA;IAAA,gDACnD,CAAC;MAAEC;IAAkC,CAAC,KAAK;MAClD,MAAM;QAAEC;MAAW,CAAC,GAAG,IAAAC,sBAAQ,GAAE;MAEjC,MAAMC,eAAe,GAAG,IAAAC,gBAAO,EAAC,MAAM;QACpC,OAAOJ,SAAS,CAACK,EAAE,KAAIJ,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAEK,6BAA6B,CAACN,SAAS,CAACK,EAAE,CAAC;MAChF,CAAC,EAAE,CAACJ,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAEM,UAAU,EAAEP,SAAS,CAACK,EAAE,CAAC,CAAC;MAE1C,oBACE,+BAAC,sCAAuB;QACtB,MAAM,EAAEL,SAAS,CAACQ,MAAO;QACzB,WAAW,EAAER,SAAS,CAACS,WAAY;QACnC,eAAe,EAAEN;MAAgB,EACjC;IAEN,CAAC;EAAA;AACH;AAAC"}
@@ -1 +1 @@
1
- {"version":3,"names":["EXT_NAME"],"sources":["constants.ts"],"sourcesContent":["export const EXT_NAME = 'teambit.workspace/workspace';\n"],"mappings":";;;;;;AAAO,MAAMA,QAAQ,GAAG,6BAAjB"}
1
+ {"version":3,"names":["EXT_NAME"],"sources":["constants.ts"],"sourcesContent":["export const EXT_NAME = 'teambit.workspace/workspace';\n"],"mappings":";;;;;;AAAO,MAAMA,QAAQ,GAAG,6BAA6B;AAAC"}
@@ -1,56 +1,40 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  require("core-js/modules/es.array.iterator.js");
6
-
7
5
  require("core-js/modules/es.promise.js");
8
-
9
6
  Object.defineProperty(exports, "__esModule", {
10
7
  value: true
11
8
  });
12
9
  exports.default = void 0;
13
-
14
10
  function _defineProperty2() {
15
11
  const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
16
-
17
12
  _defineProperty2 = function () {
18
13
  return data;
19
14
  };
20
-
21
15
  return data;
22
16
  }
23
-
24
17
  function _path() {
25
18
  const data = _interopRequireDefault(require("path"));
26
-
27
19
  _path = function () {
28
20
  return data;
29
21
  };
30
-
31
22
  return data;
32
23
  }
33
-
34
24
  function _chalk() {
35
25
  const data = _interopRequireDefault(require("chalk"));
36
-
37
26
  _chalk = function () {
38
27
  return data;
39
28
  };
40
-
41
29
  return data;
42
30
  }
43
-
44
31
  function _constants() {
45
32
  const data = require("@teambit/legacy/dist/constants");
46
-
47
33
  _constants = function () {
48
34
  return data;
49
35
  };
50
-
51
36
  return data;
52
37
  }
53
-
54
38
  class EjectConfCmd {
55
39
  constructor(workspace) {
56
40
  this.workspace = workspace;
@@ -61,32 +45,25 @@ class EjectConfCmd {
61
45
  (0, _defineProperty2().default)(this, "group", 'development');
62
46
  (0, _defineProperty2().default)(this, "options", [['p', 'propagate', 'mark propagate true in the config file'], ['o', 'override', 'override file if exist']]);
63
47
  }
64
-
65
48
  async report(args, options) {
66
49
  const ejectResult = await this.json(args, options);
67
50
  const paths = ejectResult.map(result => result.configPath).map(p => _path().default.relative(this.workspace.path, p)).join('\n');
68
51
  return _chalk().default.green(`successfully ejected config in the following path(s)
69
52
  ${_chalk().default.bold(paths)}`);
70
53
  }
71
-
72
54
  async json([pattern], options) {
73
55
  const ejectOptions = options;
74
-
75
56
  if (ejectOptions.propagate === 'true') {
76
57
  ejectOptions.propagate = true;
77
58
  }
78
-
79
59
  if (ejectOptions.override === 'true') {
80
60
  ejectOptions.override = true;
81
61
  }
82
-
83
62
  const componentIds = await this.workspace.idsByPattern(pattern);
84
63
  const results = await this.workspace.ejectMultipleConfigs(componentIds, ejectOptions);
85
64
  return results;
86
65
  }
87
-
88
66
  }
89
-
90
67
  exports.default = EjectConfCmd;
91
68
 
92
69
  //# sourceMappingURL=eject-conf.cmd.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["EjectConfCmd","constructor","workspace","PATTERN_HELP","report","args","options","ejectResult","json","paths","map","result","configPath","p","path","relative","join","chalk","green","bold","pattern","ejectOptions","propagate","override","componentIds","idsByPattern","results","ejectMultipleConfigs"],"sources":["eject-conf.cmd.ts"],"sourcesContent":["import path from 'path';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport chalk from 'chalk';\nimport { PATTERN_HELP } from '@teambit/legacy/dist/constants';\n\nimport { EjectConfOptions, EjectConfResult, Workspace } from './workspace';\n\ntype EjectConfArgs = [string];\n// From the cli we might get those as string in case we run it like --propagate true (return string) as opposed to only --propagate\ntype EjectConfOptionsCLI = {\n propagate: string | boolean | undefined;\n override: string | boolean | undefined;\n};\n\nexport default class EjectConfCmd implements Command {\n name = 'eject-conf <pattern>';\n description = 'eject components configuration (create a `component.json` file)';\n extendedDescription = `${PATTERN_HELP('eject-conf')}`;\n alias = '';\n group = 'development';\n options = [\n ['p', 'propagate', 'mark propagate true in the config file'],\n ['o', 'override', 'override file if exist'],\n ] as CommandOptions;\n\n constructor(private workspace: Workspace) {}\n\n async report(args: EjectConfArgs, options: EjectConfOptionsCLI): Promise<string> {\n const ejectResult = await this.json(args, options);\n const paths = ejectResult\n .map((result) => result.configPath)\n .map((p) => path.relative(this.workspace.path, p))\n .join('\\n');\n return chalk.green(`successfully ejected config in the following path(s)\n${chalk.bold(paths)}`);\n }\n\n async json([pattern]: EjectConfArgs, options: EjectConfOptionsCLI): Promise<EjectConfResult[]> {\n const ejectOptions = options;\n if (ejectOptions.propagate === 'true') {\n ejectOptions.propagate = true;\n }\n if (ejectOptions.override === 'true') {\n ejectOptions.override = true;\n }\n\n const componentIds = await this.workspace.idsByPattern(pattern);\n const results = await this.workspace.ejectMultipleConfigs(componentIds, ejectOptions as EjectConfOptions);\n return results;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAWe,MAAMA,YAAN,CAAsC;EAWnDC,WAAW,CAASC,SAAT,EAA+B;IAAA,KAAtBA,SAAsB,GAAtBA,SAAsB;IAAA,8CAVnC,sBAUmC;IAAA,qDAT5B,iEAS4B;IAAA,6DARnB,GAAE,IAAAC,yBAAA,EAAa,YAAb,CAA2B,EAQV;IAAA,+CAPlC,EAOkC;IAAA,+CANlC,aAMkC;IAAA,iDALhC,CACR,CAAC,GAAD,EAAM,WAAN,EAAmB,wCAAnB,CADQ,EAER,CAAC,GAAD,EAAM,UAAN,EAAkB,wBAAlB,CAFQ,CAKgC;EAAE;;EAEhC,MAANC,MAAM,CAACC,IAAD,EAAsBC,OAAtB,EAAqE;IAC/E,MAAMC,WAAW,GAAG,MAAM,KAAKC,IAAL,CAAUH,IAAV,EAAgBC,OAAhB,CAA1B;IACA,MAAMG,KAAK,GAAGF,WAAW,CACtBG,GADW,CACNC,MAAD,IAAYA,MAAM,CAACC,UADZ,EAEXF,GAFW,CAENG,CAAD,IAAOC,eAAA,CAAKC,QAAL,CAAc,KAAKb,SAAL,CAAeY,IAA7B,EAAmCD,CAAnC,CAFA,EAGXG,IAHW,CAGN,IAHM,CAAd;IAIA,OAAOC,gBAAA,CAAMC,KAAN,CAAa;AACxB,EAAED,gBAAA,CAAME,IAAN,CAAWV,KAAX,CAAkB,EADT,CAAP;EAED;;EAES,MAAJD,IAAI,CAAC,CAACY,OAAD,CAAD,EAA2Bd,OAA3B,EAAqF;IAC7F,MAAMe,YAAY,GAAGf,OAArB;;IACA,IAAIe,YAAY,CAACC,SAAb,KAA2B,MAA/B,EAAuC;MACrCD,YAAY,CAACC,SAAb,GAAyB,IAAzB;IACD;;IACD,IAAID,YAAY,CAACE,QAAb,KAA0B,MAA9B,EAAsC;MACpCF,YAAY,CAACE,QAAb,GAAwB,IAAxB;IACD;;IAED,MAAMC,YAAY,GAAG,MAAM,KAAKtB,SAAL,CAAeuB,YAAf,CAA4BL,OAA5B,CAA3B;IACA,MAAMM,OAAO,GAAG,MAAM,KAAKxB,SAAL,CAAeyB,oBAAf,CAAoCH,YAApC,EAAkDH,YAAlD,CAAtB;IACA,OAAOK,OAAP;EACD;;AAnCkD"}
1
+ {"version":3,"names":["EjectConfCmd","constructor","workspace","PATTERN_HELP","report","args","options","ejectResult","json","paths","map","result","configPath","p","path","relative","join","chalk","green","bold","pattern","ejectOptions","propagate","override","componentIds","idsByPattern","results","ejectMultipleConfigs"],"sources":["eject-conf.cmd.ts"],"sourcesContent":["import path from 'path';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport chalk from 'chalk';\nimport { PATTERN_HELP } from '@teambit/legacy/dist/constants';\n\nimport { EjectConfOptions, EjectConfResult, Workspace } from './workspace';\n\ntype EjectConfArgs = [string];\n// From the cli we might get those as string in case we run it like --propagate true (return string) as opposed to only --propagate\ntype EjectConfOptionsCLI = {\n propagate: string | boolean | undefined;\n override: string | boolean | undefined;\n};\n\nexport default class EjectConfCmd implements Command {\n name = 'eject-conf <pattern>';\n description = 'eject components configuration (create a `component.json` file)';\n extendedDescription = `${PATTERN_HELP('eject-conf')}`;\n alias = '';\n group = 'development';\n options = [\n ['p', 'propagate', 'mark propagate true in the config file'],\n ['o', 'override', 'override file if exist'],\n ] as CommandOptions;\n\n constructor(private workspace: Workspace) {}\n\n async report(args: EjectConfArgs, options: EjectConfOptionsCLI): Promise<string> {\n const ejectResult = await this.json(args, options);\n const paths = ejectResult\n .map((result) => result.configPath)\n .map((p) => path.relative(this.workspace.path, p))\n .join('\\n');\n return chalk.green(`successfully ejected config in the following path(s)\n${chalk.bold(paths)}`);\n }\n\n async json([pattern]: EjectConfArgs, options: EjectConfOptionsCLI): Promise<EjectConfResult[]> {\n const ejectOptions = options;\n if (ejectOptions.propagate === 'true') {\n ejectOptions.propagate = true;\n }\n if (ejectOptions.override === 'true') {\n ejectOptions.override = true;\n }\n\n const componentIds = await this.workspace.idsByPattern(pattern);\n const results = await this.workspace.ejectMultipleConfigs(componentIds, ejectOptions as EjectConfOptions);\n return results;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAWe,MAAMA,YAAY,CAAoB;EAWnDC,WAAW,CAASC,SAAoB,EAAE;IAAA,KAAtBA,SAAoB,GAApBA,SAAoB;IAAA,8CAVjC,sBAAsB;IAAA,qDACf,iEAAiE;IAAA,6DACxD,GAAE,IAAAC,yBAAY,EAAC,YAAY,CAAE,EAAC;IAAA,+CAC7C,EAAE;IAAA,+CACF,aAAa;IAAA,iDACX,CACR,CAAC,GAAG,EAAE,WAAW,EAAE,wCAAwC,CAAC,EAC5D,CAAC,GAAG,EAAE,UAAU,EAAE,wBAAwB,CAAC,CAC5C;EAE0C;EAE3C,MAAMC,MAAM,CAACC,IAAmB,EAAEC,OAA4B,EAAmB;IAC/E,MAAMC,WAAW,GAAG,MAAM,IAAI,CAACC,IAAI,CAACH,IAAI,EAAEC,OAAO,CAAC;IAClD,MAAMG,KAAK,GAAGF,WAAW,CACtBG,GAAG,CAAEC,MAAM,IAAKA,MAAM,CAACC,UAAU,CAAC,CAClCF,GAAG,CAAEG,CAAC,IAAKC,eAAI,CAACC,QAAQ,CAAC,IAAI,CAACb,SAAS,CAACY,IAAI,EAAED,CAAC,CAAC,CAAC,CACjDG,IAAI,CAAC,IAAI,CAAC;IACb,OAAOC,gBAAK,CAACC,KAAK,CAAE;AACxB,EAAED,gBAAK,CAACE,IAAI,CAACV,KAAK,CAAE,EAAC,CAAC;EACpB;EAEA,MAAMD,IAAI,CAAC,CAACY,OAAO,CAAgB,EAAEd,OAA4B,EAA8B;IAC7F,MAAMe,YAAY,GAAGf,OAAO;IAC5B,IAAIe,YAAY,CAACC,SAAS,KAAK,MAAM,EAAE;MACrCD,YAAY,CAACC,SAAS,GAAG,IAAI;IAC/B;IACA,IAAID,YAAY,CAACE,QAAQ,KAAK,MAAM,EAAE;MACpCF,YAAY,CAACE,QAAQ,GAAG,IAAI;IAC9B;IAEA,MAAMC,YAAY,GAAG,MAAM,IAAI,CAACtB,SAAS,CAACuB,YAAY,CAACL,OAAO,CAAC;IAC/D,MAAMM,OAAO,GAAG,MAAM,IAAI,CAACxB,SAAS,CAACyB,oBAAoB,CAACH,YAAY,EAAEH,YAAY,CAAqB;IACzG,OAAOK,OAAO;EAChB;AACF;AAAC"}
@@ -1,36 +1,26 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  require("core-js/modules/es.array.iterator.js");
6
-
7
5
  require("core-js/modules/es.promise.js");
8
-
9
6
  Object.defineProperty(exports, "__esModule", {
10
7
  value: true
11
8
  });
12
9
  exports.EnvsReplaceCmd = void 0;
13
-
14
10
  function _defineProperty2() {
15
11
  const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
16
-
17
12
  _defineProperty2 = function () {
18
13
  return data;
19
14
  };
20
-
21
15
  return data;
22
16
  }
23
-
24
17
  function _chalk() {
25
18
  const data = _interopRequireDefault(require("chalk"));
26
-
27
19
  _chalk = function () {
28
20
  return data;
29
21
  };
30
-
31
22
  return data;
32
23
  }
33
-
34
24
  class EnvsReplaceCmd {
35
25
  constructor(workspace) {
36
26
  this.workspace = workspace;
@@ -50,7 +40,6 @@ class EnvsReplaceCmd {
50
40
  description: "components configured to use the 'aspect' env will be configured to use the 'node' env, instead"
51
41
  }]);
52
42
  }
53
-
54
43
  async report([oldEnv, env]) {
55
44
  const envId = await this.workspace.resolveComponentId(env);
56
45
  const components = await this.workspace.getComponentsUsingEnv(oldEnv, true, true);
@@ -59,9 +48,7 @@ class EnvsReplaceCmd {
59
48
  return `added ${_chalk().default.bold(envId.toString())} env to the following component(s):
60
49
  ${componentIds.map(compId => compId.toString()).join('\n')}`;
61
50
  }
62
-
63
51
  }
64
-
65
52
  exports.EnvsReplaceCmd = EnvsReplaceCmd;
66
53
 
67
54
  //# sourceMappingURL=envs-replace.cmd.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["EnvsReplaceCmd","constructor","workspace","name","description","cmd","report","oldEnv","env","envId","resolveComponentId","components","getComponentsUsingEnv","componentIds","map","comp","id","setEnvToComponents","chalk","bold","toString","compId","join"],"sources":["envs-replace.cmd.ts"],"sourcesContent":["import { Command } from '@teambit/cli';\nimport chalk from 'chalk';\nimport { Workspace } from '../workspace';\n\nexport class EnvsReplaceCmd implements Command {\n name = 'replace <current-env> <new-env>';\n description = 'replace an existing env with another env for all components using the old env';\n options = [];\n group = 'development';\n arguments = [\n { name: 'current-env', description: 'the component id of the current env' },\n { name: 'new-env', description: 'the component id of the new env' },\n ];\n examples = [\n {\n cmd: 'replace teambit.harmony/aspect teambit.harmony/node',\n description: \"components configured to use the 'aspect' env will be configured to use the 'node' env, instead\",\n },\n ];\n\n constructor(private workspace: Workspace) {}\n\n async report([oldEnv, env]: [string, string]) {\n const envId = await this.workspace.resolveComponentId(env);\n const components = await this.workspace.getComponentsUsingEnv(oldEnv, true, true);\n const componentIds = components.map((comp) => comp.id);\n await this.workspace.setEnvToComponents(envId, componentIds);\n return `added ${chalk.bold(envId.toString())} env to the following component(s):\n${componentIds.map((compId) => compId.toString()).join('\\n')}`;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAGO,MAAMA,cAAN,CAAwC;EAgB7CC,WAAW,CAASC,SAAT,EAA+B;IAAA,KAAtBA,SAAsB,GAAtBA,SAAsB;IAAA,8CAfnC,iCAemC;IAAA,qDAd5B,+EAc4B;IAAA,iDAbhC,EAagC;IAAA,+CAZlC,aAYkC;IAAA,mDAX9B,CACV;MAAEC,IAAI,EAAE,aAAR;MAAuBC,WAAW,EAAE;IAApC,CADU,EAEV;MAAED,IAAI,EAAE,SAAR;MAAmBC,WAAW,EAAE;IAAhC,CAFU,CAW8B;IAAA,kDAP/B,CACT;MACEC,GAAG,EAAE,qDADP;MAEED,WAAW,EAAE;IAFf,CADS,CAO+B;EAAE;;EAEhC,MAANE,MAAM,CAAC,CAACC,MAAD,EAASC,GAAT,CAAD,EAAkC;IAC5C,MAAMC,KAAK,GAAG,MAAM,KAAKP,SAAL,CAAeQ,kBAAf,CAAkCF,GAAlC,CAApB;IACA,MAAMG,UAAU,GAAG,MAAM,KAAKT,SAAL,CAAeU,qBAAf,CAAqCL,MAArC,EAA6C,IAA7C,EAAmD,IAAnD,CAAzB;IACA,MAAMM,YAAY,GAAGF,UAAU,CAACG,GAAX,CAAgBC,IAAD,IAAUA,IAAI,CAACC,EAA9B,CAArB;IACA,MAAM,KAAKd,SAAL,CAAee,kBAAf,CAAkCR,KAAlC,EAAyCI,YAAzC,CAAN;IACA,OAAQ,SAAQK,gBAAA,CAAMC,IAAN,CAAWV,KAAK,CAACW,QAAN,EAAX,CAA6B;AACjD,EAAEP,YAAY,CAACC,GAAb,CAAkBO,MAAD,IAAYA,MAAM,CAACD,QAAP,EAA7B,EAAgDE,IAAhD,CAAqD,IAArD,CAA2D,EADzD;EAED;;AAzB4C"}
1
+ {"version":3,"names":["EnvsReplaceCmd","constructor","workspace","name","description","cmd","report","oldEnv","env","envId","resolveComponentId","components","getComponentsUsingEnv","componentIds","map","comp","id","setEnvToComponents","chalk","bold","toString","compId","join"],"sources":["envs-replace.cmd.ts"],"sourcesContent":["import { Command } from '@teambit/cli';\nimport chalk from 'chalk';\nimport { Workspace } from '../workspace';\n\nexport class EnvsReplaceCmd implements Command {\n name = 'replace <current-env> <new-env>';\n description = 'replace an existing env with another env for all components using the old env';\n options = [];\n group = 'development';\n arguments = [\n { name: 'current-env', description: 'the component id of the current env' },\n { name: 'new-env', description: 'the component id of the new env' },\n ];\n examples = [\n {\n cmd: 'replace teambit.harmony/aspect teambit.harmony/node',\n description: \"components configured to use the 'aspect' env will be configured to use the 'node' env, instead\",\n },\n ];\n\n constructor(private workspace: Workspace) {}\n\n async report([oldEnv, env]: [string, string]) {\n const envId = await this.workspace.resolveComponentId(env);\n const components = await this.workspace.getComponentsUsingEnv(oldEnv, true, true);\n const componentIds = components.map((comp) => comp.id);\n await this.workspace.setEnvToComponents(envId, componentIds);\n return `added ${chalk.bold(envId.toString())} env to the following component(s):\n${componentIds.map((compId) => compId.toString()).join('\\n')}`;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGO,MAAMA,cAAc,CAAoB;EAgB7CC,WAAW,CAASC,SAAoB,EAAE;IAAA,KAAtBA,SAAoB,GAApBA,SAAoB;IAAA,8CAfjC,iCAAiC;IAAA,qDAC1B,+EAA+E;IAAA,iDACnF,EAAE;IAAA,+CACJ,aAAa;IAAA,mDACT,CACV;MAAEC,IAAI,EAAE,aAAa;MAAEC,WAAW,EAAE;IAAsC,CAAC,EAC3E;MAAED,IAAI,EAAE,SAAS;MAAEC,WAAW,EAAE;IAAkC,CAAC,CACpE;IAAA,kDACU,CACT;MACEC,GAAG,EAAE,qDAAqD;MAC1DD,WAAW,EAAE;IACf,CAAC,CACF;EAE0C;EAE3C,MAAME,MAAM,CAAC,CAACC,MAAM,EAAEC,GAAG,CAAmB,EAAE;IAC5C,MAAMC,KAAK,GAAG,MAAM,IAAI,CAACP,SAAS,CAACQ,kBAAkB,CAACF,GAAG,CAAC;IAC1D,MAAMG,UAAU,GAAG,MAAM,IAAI,CAACT,SAAS,CAACU,qBAAqB,CAACL,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC;IACjF,MAAMM,YAAY,GAAGF,UAAU,CAACG,GAAG,CAAEC,IAAI,IAAKA,IAAI,CAACC,EAAE,CAAC;IACtD,MAAM,IAAI,CAACd,SAAS,CAACe,kBAAkB,CAACR,KAAK,EAAEI,YAAY,CAAC;IAC5D,OAAQ,SAAQK,gBAAK,CAACC,IAAI,CAACV,KAAK,CAACW,QAAQ,EAAE,CAAE;AACjD,EAAEP,YAAY,CAACC,GAAG,CAAEO,MAAM,IAAKA,MAAM,CAACD,QAAQ,EAAE,CAAC,CAACE,IAAI,CAAC,IAAI,CAAE,EAAC;EAC5D;AACF;AAAC"}
@@ -1,46 +1,33 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  require("core-js/modules/es.array.iterator.js");
6
-
7
5
  require("core-js/modules/es.promise.js");
8
-
9
6
  Object.defineProperty(exports, "__esModule", {
10
7
  value: true
11
8
  });
12
9
  exports.EnvsSetCmd = void 0;
13
-
14
10
  function _defineProperty2() {
15
11
  const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
16
-
17
12
  _defineProperty2 = function () {
18
13
  return data;
19
14
  };
20
-
21
15
  return data;
22
16
  }
23
-
24
17
  function _chalk() {
25
18
  const data = _interopRequireDefault(require("chalk"));
26
-
27
19
  _chalk = function () {
28
20
  return data;
29
21
  };
30
-
31
22
  return data;
32
23
  }
33
-
34
24
  function _constants() {
35
25
  const data = require("@teambit/legacy/dist/constants");
36
-
37
26
  _constants = function () {
38
27
  return data;
39
28
  };
40
-
41
29
  return data;
42
30
  }
43
-
44
31
  class EnvsSetCmd {
45
32
  constructor(workspace) {
46
33
  this.workspace = workspace;
@@ -66,7 +53,6 @@ class EnvsSetCmd {
66
53
  (0, _defineProperty2().default)(this, "options", []);
67
54
  (0, _defineProperty2().default)(this, "group", 'development');
68
55
  }
69
-
70
56
  async report([pattern, env]) {
71
57
  const envId = await this.workspace.resolveComponentId(env);
72
58
  const componentIds = await this.workspace.idsByPattern(pattern);
@@ -74,9 +60,7 @@ class EnvsSetCmd {
74
60
  return `added ${_chalk().default.bold(envId.toString())} env to the following component(s):
75
61
  ${componentIds.map(compId => compId.toString()).join('\n')}`;
76
62
  }
77
-
78
63
  }
79
-
80
64
  exports.EnvsSetCmd = EnvsSetCmd;
81
65
 
82
66
  //# sourceMappingURL=envs-set.cmd.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["EnvsSetCmd","constructor","workspace","name","description","COMPONENT_PATTERN_HELP","cmd","report","pattern","env","envId","resolveComponentId","componentIds","idsByPattern","setEnvToComponents","chalk","bold","toString","map","compId","join"],"sources":["envs-set.cmd.ts"],"sourcesContent":["import { Command } from '@teambit/cli';\nimport chalk from 'chalk';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy/dist/constants';\nimport { Workspace } from '../workspace';\n\nexport class EnvsSetCmd implements Command {\n name = 'set <component-pattern> <env>';\n description = 'Sets one or more components with a development environment (env)';\n arguments = [\n {\n name: 'component-pattern',\n description: COMPONENT_PATTERN_HELP,\n },\n {\n name: 'env',\n description:\n \"the env's component id (include version for non-core envs. e.g, `teambit.community/envs/community-react@1.95.13`)\",\n },\n ];\n examples = [\n {\n cmd: 'set ui/button teambit.react/react',\n description: \"configures 'ui/button' to use the 'teambit.react/react' env\",\n },\n {\n cmd: 'set ui/button teambit.community/envs/community-mdx@1.95.16',\n description: \"configures 'ui/button' to use the (non-core) 'teambit.community/envs/community-mdx@1.95.16' env\",\n },\n {\n cmd: 'set \"ui/**\" teambit.react/react',\n description: \"configures all components that have the 'ui' namespace to use the teambit.react/react env\",\n },\n ];\n options = [];\n group = 'development';\n\n constructor(private workspace: Workspace) {}\n\n async report([pattern, env]: [string, string]) {\n const envId = await this.workspace.resolveComponentId(env);\n const componentIds = await this.workspace.idsByPattern(pattern);\n await this.workspace.setEnvToComponents(envId, componentIds);\n return `added ${chalk.bold(envId.toString())} env to the following component(s):\n${componentIds.map((compId) => compId.toString()).join('\\n')}`;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAGO,MAAMA,UAAN,CAAoC;EA+BzCC,WAAW,CAASC,SAAT,EAA+B;IAAA,KAAtBA,SAAsB,GAAtBA,SAAsB;IAAA,8CA9BnC,+BA8BmC;IAAA,qDA7B5B,kEA6B4B;IAAA,mDA5B9B,CACV;MACEC,IAAI,EAAE,mBADR;MAEEC,WAAW,EAAEC;IAFf,CADU,EAKV;MACEF,IAAI,EAAE,KADR;MAEEC,WAAW,EACT;IAHJ,CALU,CA4B8B;IAAA,kDAjB/B,CACT;MACEE,GAAG,EAAE,mCADP;MAEEF,WAAW,EAAE;IAFf,CADS,EAKT;MACEE,GAAG,EAAE,4DADP;MAEEF,WAAW,EAAE;IAFf,CALS,EAST;MACEE,GAAG,EAAE,iCADP;MAEEF,WAAW,EAAE;IAFf,CATS,CAiB+B;IAAA,iDAHhC,EAGgC;IAAA,+CAFlC,aAEkC;EAAE;;EAEhC,MAANG,MAAM,CAAC,CAACC,OAAD,EAAUC,GAAV,CAAD,EAAmC;IAC7C,MAAMC,KAAK,GAAG,MAAM,KAAKR,SAAL,CAAeS,kBAAf,CAAkCF,GAAlC,CAApB;IACA,MAAMG,YAAY,GAAG,MAAM,KAAKV,SAAL,CAAeW,YAAf,CAA4BL,OAA5B,CAA3B;IACA,MAAM,KAAKN,SAAL,CAAeY,kBAAf,CAAkCJ,KAAlC,EAAyCE,YAAzC,CAAN;IACA,OAAQ,SAAQG,gBAAA,CAAMC,IAAN,CAAWN,KAAK,CAACO,QAAN,EAAX,CAA6B;AACjD,EAAEL,YAAY,CAACM,GAAb,CAAkBC,MAAD,IAAYA,MAAM,CAACF,QAAP,EAA7B,EAAgDG,IAAhD,CAAqD,IAArD,CAA2D,EADzD;EAED;;AAvCwC"}
1
+ {"version":3,"names":["EnvsSetCmd","constructor","workspace","name","description","COMPONENT_PATTERN_HELP","cmd","report","pattern","env","envId","resolveComponentId","componentIds","idsByPattern","setEnvToComponents","chalk","bold","toString","map","compId","join"],"sources":["envs-set.cmd.ts"],"sourcesContent":["import { Command } from '@teambit/cli';\nimport chalk from 'chalk';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy/dist/constants';\nimport { Workspace } from '../workspace';\n\nexport class EnvsSetCmd implements Command {\n name = 'set <component-pattern> <env>';\n description = 'Sets one or more components with a development environment (env)';\n arguments = [\n {\n name: 'component-pattern',\n description: COMPONENT_PATTERN_HELP,\n },\n {\n name: 'env',\n description:\n \"the env's component id (include version for non-core envs. e.g, `teambit.community/envs/community-react@1.95.13`)\",\n },\n ];\n examples = [\n {\n cmd: 'set ui/button teambit.react/react',\n description: \"configures 'ui/button' to use the 'teambit.react/react' env\",\n },\n {\n cmd: 'set ui/button teambit.community/envs/community-mdx@1.95.16',\n description: \"configures 'ui/button' to use the (non-core) 'teambit.community/envs/community-mdx@1.95.16' env\",\n },\n {\n cmd: 'set \"ui/**\" teambit.react/react',\n description: \"configures all components that have the 'ui' namespace to use the teambit.react/react env\",\n },\n ];\n options = [];\n group = 'development';\n\n constructor(private workspace: Workspace) {}\n\n async report([pattern, env]: [string, string]) {\n const envId = await this.workspace.resolveComponentId(env);\n const componentIds = await this.workspace.idsByPattern(pattern);\n await this.workspace.setEnvToComponents(envId, componentIds);\n return `added ${chalk.bold(envId.toString())} env to the following component(s):\n${componentIds.map((compId) => compId.toString()).join('\\n')}`;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGO,MAAMA,UAAU,CAAoB;EA+BzCC,WAAW,CAASC,SAAoB,EAAE;IAAA,KAAtBA,SAAoB,GAApBA,SAAoB;IAAA,8CA9BjC,+BAA+B;IAAA,qDACxB,kEAAkE;IAAA,mDACpE,CACV;MACEC,IAAI,EAAE,mBAAmB;MACzBC,WAAW,EAAEC;IACf,CAAC,EACD;MACEF,IAAI,EAAE,KAAK;MACXC,WAAW,EACT;IACJ,CAAC,CACF;IAAA,kDACU,CACT;MACEE,GAAG,EAAE,mCAAmC;MACxCF,WAAW,EAAE;IACf,CAAC,EACD;MACEE,GAAG,EAAE,4DAA4D;MACjEF,WAAW,EAAE;IACf,CAAC,EACD;MACEE,GAAG,EAAE,iCAAiC;MACtCF,WAAW,EAAE;IACf,CAAC,CACF;IAAA,iDACS,EAAE;IAAA,+CACJ,aAAa;EAEsB;EAE3C,MAAMG,MAAM,CAAC,CAACC,OAAO,EAAEC,GAAG,CAAmB,EAAE;IAC7C,MAAMC,KAAK,GAAG,MAAM,IAAI,CAACR,SAAS,CAACS,kBAAkB,CAACF,GAAG,CAAC;IAC1D,MAAMG,YAAY,GAAG,MAAM,IAAI,CAACV,SAAS,CAACW,YAAY,CAACL,OAAO,CAAC;IAC/D,MAAM,IAAI,CAACN,SAAS,CAACY,kBAAkB,CAACJ,KAAK,EAAEE,YAAY,CAAC;IAC5D,OAAQ,SAAQG,gBAAK,CAACC,IAAI,CAACN,KAAK,CAACO,QAAQ,EAAE,CAAE;AACjD,EAAEL,YAAY,CAACM,GAAG,CAAEC,MAAM,IAAKA,MAAM,CAACF,QAAQ,EAAE,CAAC,CAACG,IAAI,CAAC,IAAI,CAAE,EAAC;EAC5D;AACF;AAAC"}
@@ -1,46 +1,33 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  require("core-js/modules/es.array.iterator.js");
6
-
7
5
  require("core-js/modules/es.promise.js");
8
-
9
6
  Object.defineProperty(exports, "__esModule", {
10
7
  value: true
11
8
  });
12
9
  exports.EnvsUnsetCmd = void 0;
13
-
14
10
  function _defineProperty2() {
15
11
  const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
16
-
17
12
  _defineProperty2 = function () {
18
13
  return data;
19
14
  };
20
-
21
15
  return data;
22
16
  }
23
-
24
17
  function _constants() {
25
18
  const data = require("@teambit/legacy/dist/constants");
26
-
27
19
  _constants = function () {
28
20
  return data;
29
21
  };
30
-
31
22
  return data;
32
23
  }
33
-
34
24
  function _chalk() {
35
25
  const data = _interopRequireDefault(require("chalk"));
36
-
37
26
  _chalk = function () {
38
27
  return data;
39
28
  };
40
-
41
29
  return data;
42
30
  }
43
-
44
31
  class EnvsUnsetCmd {
45
32
  constructor(workspace) {
46
33
  this.workspace = workspace;
@@ -57,23 +44,18 @@ in only removes envs that appear in the .bitmap file, which were previously conf
57
44
  the purpose of this command is to remove the specific settings and let the the variants in workspace.jsonc to control the env.
58
45
  ${(0, _constants().PATTERN_HELP)('env unset')}`);
59
46
  }
60
-
61
47
  async report([pattern]) {
62
48
  const componentIds = await this.workspace.idsByPattern(pattern);
63
49
  const {
64
50
  changed
65
51
  } = await this.workspace.unsetEnvFromComponents(componentIds);
66
-
67
52
  if (!changed.length) {
68
53
  return _chalk().default.yellow(`unable to find any component matching the pattern with env configured in the .bitmap file`);
69
54
  }
70
-
71
55
  return `successfully removed env from the following component(s):
72
56
  ${changed.map(id => id.toString()).join('\n')}`;
73
57
  }
74
-
75
58
  }
76
-
77
59
  exports.EnvsUnsetCmd = EnvsUnsetCmd;
78
60
 
79
61
  //# sourceMappingURL=envs-unset.cmd.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["EnvsUnsetCmd","constructor","workspace","name","description","PATTERN_HELP","report","pattern","componentIds","idsByPattern","changed","unsetEnvFromComponents","length","chalk","yellow","map","id","toString","join"],"sources":["envs-unset.cmd.ts"],"sourcesContent":["import { Command } from '@teambit/cli';\nimport { PATTERN_HELP } from '@teambit/legacy/dist/constants';\nimport chalk from 'chalk';\nimport { Workspace } from '../workspace';\n\nexport class EnvsUnsetCmd implements Command {\n name = 'unset <component-pattern>';\n description = 'un-sets an env from components that were previously set by \"bit env set\" or by a component template';\n arguments = [\n {\n name: 'component-pattern',\n description:\n 'component name, component id, or component pattern. use component pattern to select multiple components. \\nuse comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\"\\nwrap the pattern with quotes',\n },\n ];\n options = [];\n group = 'development';\n extendedDescription = `keep in mind that this doesn't remove envs that are set in the variants.\nin only removes envs that appear in the .bitmap file, which were previously configured via \"bit env set\".\nthe purpose of this command is to remove the specific settings and let the the variants in workspace.jsonc to control the env.\n${PATTERN_HELP('env unset')}`;\n\n constructor(private workspace: Workspace) {}\n\n async report([pattern]: [string]) {\n const componentIds = await this.workspace.idsByPattern(pattern);\n const { changed } = await this.workspace.unsetEnvFromComponents(componentIds);\n if (!changed.length) {\n return chalk.yellow(`unable to find any component matching the pattern with env configured in the .bitmap file`);\n }\n return `successfully removed env from the following component(s):\n${changed.map((id) => id.toString()).join('\\n')}`;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAGO,MAAMA,YAAN,CAAsC;EAiB3CC,WAAW,CAASC,SAAT,EAA+B;IAAA,KAAtBA,SAAsB,GAAtBA,SAAsB;IAAA,8CAhBnC,2BAgBmC;IAAA,qDAf5B,qGAe4B;IAAA,mDAd9B,CACV;MACEC,IAAI,EAAE,mBADR;MAEEC,WAAW,EACT;IAHJ,CADU,CAc8B;IAAA,iDAPhC,EAOgC;IAAA,+CANlC,aAMkC;IAAA,6DALnB;AACzB;AACA;AACA,EAAE,IAAAC,yBAAA,EAAa,WAAb,CAA0B,EAEgB;EAAE;;EAEhC,MAANC,MAAM,CAAC,CAACC,OAAD,CAAD,EAAsB;IAChC,MAAMC,YAAY,GAAG,MAAM,KAAKN,SAAL,CAAeO,YAAf,CAA4BF,OAA5B,CAA3B;IACA,MAAM;MAAEG;IAAF,IAAc,MAAM,KAAKR,SAAL,CAAeS,sBAAf,CAAsCH,YAAtC,CAA1B;;IACA,IAAI,CAACE,OAAO,CAACE,MAAb,EAAqB;MACnB,OAAOC,gBAAA,CAAMC,MAAN,CAAc,2FAAd,CAAP;IACD;;IACD,OAAQ;AACZ,EAAEJ,OAAO,CAACK,GAAR,CAAaC,EAAD,IAAQA,EAAE,CAACC,QAAH,EAApB,EAAmCC,IAAnC,CAAwC,IAAxC,CAA8C,EAD5C;EAED;;AA3B0C"}
1
+ {"version":3,"names":["EnvsUnsetCmd","constructor","workspace","name","description","PATTERN_HELP","report","pattern","componentIds","idsByPattern","changed","unsetEnvFromComponents","length","chalk","yellow","map","id","toString","join"],"sources":["envs-unset.cmd.ts"],"sourcesContent":["import { Command } from '@teambit/cli';\nimport { PATTERN_HELP } from '@teambit/legacy/dist/constants';\nimport chalk from 'chalk';\nimport { Workspace } from '../workspace';\n\nexport class EnvsUnsetCmd implements Command {\n name = 'unset <component-pattern>';\n description = 'un-sets an env from components that were previously set by \"bit env set\" or by a component template';\n arguments = [\n {\n name: 'component-pattern',\n description:\n 'component name, component id, or component pattern. use component pattern to select multiple components. \\nuse comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\"\\nwrap the pattern with quotes',\n },\n ];\n options = [];\n group = 'development';\n extendedDescription = `keep in mind that this doesn't remove envs that are set in the variants.\nin only removes envs that appear in the .bitmap file, which were previously configured via \"bit env set\".\nthe purpose of this command is to remove the specific settings and let the the variants in workspace.jsonc to control the env.\n${PATTERN_HELP('env unset')}`;\n\n constructor(private workspace: Workspace) {}\n\n async report([pattern]: [string]) {\n const componentIds = await this.workspace.idsByPattern(pattern);\n const { changed } = await this.workspace.unsetEnvFromComponents(componentIds);\n if (!changed.length) {\n return chalk.yellow(`unable to find any component matching the pattern with env configured in the .bitmap file`);\n }\n return `successfully removed env from the following component(s):\n${changed.map((id) => id.toString()).join('\\n')}`;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGO,MAAMA,YAAY,CAAoB;EAiB3CC,WAAW,CAASC,SAAoB,EAAE;IAAA,KAAtBA,SAAoB,GAApBA,SAAoB;IAAA,8CAhBjC,2BAA2B;IAAA,qDACpB,qGAAqG;IAAA,mDACvG,CACV;MACEC,IAAI,EAAE,mBAAmB;MACzBC,WAAW,EACT;IACJ,CAAC,CACF;IAAA,iDACS,EAAE;IAAA,+CACJ,aAAa;IAAA,6DACE;AACzB;AACA;AACA,EAAE,IAAAC,yBAAY,EAAC,WAAW,CAAE,EAAC;EAEgB;EAE3C,MAAMC,MAAM,CAAC,CAACC,OAAO,CAAW,EAAE;IAChC,MAAMC,YAAY,GAAG,MAAM,IAAI,CAACN,SAAS,CAACO,YAAY,CAACF,OAAO,CAAC;IAC/D,MAAM;MAAEG;IAAQ,CAAC,GAAG,MAAM,IAAI,CAACR,SAAS,CAACS,sBAAsB,CAACH,YAAY,CAAC;IAC7E,IAAI,CAACE,OAAO,CAACE,MAAM,EAAE;MACnB,OAAOC,gBAAK,CAACC,MAAM,CAAE,2FAA0F,CAAC;IAClH;IACA,OAAQ;AACZ,EAAEJ,OAAO,CAACK,GAAG,CAAEC,EAAE,IAAKA,EAAE,CAACC,QAAQ,EAAE,CAAC,CAACC,IAAI,CAAC,IAAI,CAAE,EAAC;EAC/C;AACF;AAAC"}
@@ -3,9 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
-
7
6
  var _onComponentChangeEvent = require("./on-component-change-event");
8
-
9
7
  Object.keys(_onComponentChangeEvent).forEach(function (key) {
10
8
  if (key === "default" || key === "__esModule") return;
11
9
  if (key in exports && exports[key] === _onComponentChangeEvent[key]) return;
@@ -16,9 +14,7 @@ Object.keys(_onComponentChangeEvent).forEach(function (key) {
16
14
  }
17
15
  });
18
16
  });
19
-
20
17
  var _onComponentAddEvent = require("./on-component-add-event");
21
-
22
18
  Object.keys(_onComponentAddEvent).forEach(function (key) {
23
19
  if (key === "default" || key === "__esModule") return;
24
20
  if (key in exports && exports[key] === _onComponentAddEvent[key]) return;
@@ -29,9 +25,7 @@ Object.keys(_onComponentAddEvent).forEach(function (key) {
29
25
  }
30
26
  });
31
27
  });
32
-
33
28
  var _onComponentRemovedEvent = require("./on-component-removed-event");
34
-
35
29
  Object.keys(_onComponentRemovedEvent).forEach(function (key) {
36
30
  if (key === "default" || key === "__esModule") return;
37
31
  if (key in exports && exports[key] === _onComponentRemovedEvent[key]) return;
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from './on-component-change-event';\nexport * from './on-component-add-event';\nexport * from './on-component-removed-event';\n"],"mappings":";;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from './on-component-change-event';\nexport * from './on-component-add-event';\nexport * from './on-component-removed-event';\n"],"mappings":";;;;;AAAA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
@@ -1,41 +1,32 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.OnComponentAddEvent = void 0;
9
-
10
8
  function _defineProperty2() {
11
9
  const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
-
13
10
  _defineProperty2 = function () {
14
11
  return data;
15
12
  };
16
-
17
13
  return data;
18
14
  }
19
-
20
15
  function _pubsub() {
21
16
  const data = require("@teambit/pubsub");
22
-
23
17
  _pubsub = function () {
24
18
  return data;
25
19
  };
26
-
27
20
  return data;
28
21
  }
29
-
30
22
  /* eslint-disable max-classes-per-file */
23
+
31
24
  class OnComponentAddEventData {
32
25
  constructor(idStr, hook) {
33
26
  this.idStr = idStr;
34
27
  this.hook = hook;
35
28
  }
36
-
37
29
  }
38
-
39
30
  class OnComponentAddEvent extends _pubsub().BitBaseEvent {
40
31
  constructor(timestamp, idStr, hook) {
41
32
  super(OnComponentAddEvent.TYPE, '0.0.1', timestamp, new OnComponentAddEventData(idStr, hook));
@@ -43,9 +34,7 @@ class OnComponentAddEvent extends _pubsub().BitBaseEvent {
43
34
  this.idStr = idStr;
44
35
  this.hook = hook;
45
36
  }
46
-
47
37
  }
48
-
49
38
  exports.OnComponentAddEvent = OnComponentAddEvent;
50
39
  (0, _defineProperty2().default)(OnComponentAddEvent, "TYPE", 'on-component-add');
51
40
 
@@ -1 +1 @@
1
- {"version":3,"names":["OnComponentAddEventData","constructor","idStr","hook","OnComponentAddEvent","BitBaseEvent","timestamp","TYPE"],"sources":["on-component-add-event.ts"],"sourcesContent":["/* eslint-disable max-classes-per-file */\nimport { BitBaseEvent } from '@teambit/pubsub';\n\nclass OnComponentAddEventData {\n constructor(readonly idStr, readonly hook) {}\n}\n\nexport class OnComponentAddEvent extends BitBaseEvent<OnComponentAddEventData> {\n static readonly TYPE = 'on-component-add';\n\n constructor(readonly timestamp, readonly idStr, readonly hook) {\n super(OnComponentAddEvent.TYPE, '0.0.1', timestamp, new OnComponentAddEventData(idStr, hook));\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AADA;AAGA,MAAMA,uBAAN,CAA8B;EAC5BC,WAAW,CAAUC,KAAV,EAA0BC,IAA1B,EAAgC;IAAA,KAAtBD,KAAsB,GAAtBA,KAAsB;IAAA,KAANC,IAAM,GAANA,IAAM;EAAE;;AADjB;;AAIvB,MAAMC,mBAAN,SAAkCC,sBAAlC,CAAwE;EAG7EJ,WAAW,CAAUK,SAAV,EAA8BJ,KAA9B,EAA8CC,IAA9C,EAAoD;IAC7D,MAAMC,mBAAmB,CAACG,IAA1B,EAAgC,OAAhC,EAAyCD,SAAzC,EAAoD,IAAIN,uBAAJ,CAA4BE,KAA5B,EAAmCC,IAAnC,CAApD;IAD6D,KAA1CG,SAA0C,GAA1CA,SAA0C;IAAA,KAAtBJ,KAAsB,GAAtBA,KAAsB;IAAA,KAANC,IAAM,GAANA,IAAM;EAE9D;;AAL4E;;;gCAAlEC,mB,UACY,kB"}
1
+ {"version":3,"names":["OnComponentAddEventData","constructor","idStr","hook","OnComponentAddEvent","BitBaseEvent","timestamp","TYPE"],"sources":["on-component-add-event.ts"],"sourcesContent":["/* eslint-disable max-classes-per-file */\nimport { BitBaseEvent } from '@teambit/pubsub';\n\nclass OnComponentAddEventData {\n constructor(readonly idStr, readonly hook) {}\n}\n\nexport class OnComponentAddEvent extends BitBaseEvent<OnComponentAddEventData> {\n static readonly TYPE = 'on-component-add';\n\n constructor(readonly timestamp, readonly idStr, readonly hook) {\n super(OnComponentAddEvent.TYPE, '0.0.1', timestamp, new OnComponentAddEventData(idStr, hook));\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AADA;;AAGA,MAAMA,uBAAuB,CAAC;EAC5BC,WAAW,CAAUC,KAAK,EAAWC,IAAI,EAAE;IAAA,KAAtBD,KAAK,GAALA,KAAK;IAAA,KAAWC,IAAI,GAAJA,IAAI;EAAG;AAC9C;AAEO,MAAMC,mBAAmB,SAASC,sBAAY,CAA0B;EAG7EJ,WAAW,CAAUK,SAAS,EAAWJ,KAAK,EAAWC,IAAI,EAAE;IAC7D,KAAK,CAACC,mBAAmB,CAACG,IAAI,EAAE,OAAO,EAAED,SAAS,EAAE,IAAIN,uBAAuB,CAACE,KAAK,EAAEC,IAAI,CAAC,CAAC;IAAC,KAD3EG,SAAS,GAATA,SAAS;IAAA,KAAWJ,KAAK,GAALA,KAAK;IAAA,KAAWC,IAAI,GAAJA,IAAI;EAE7D;AACF;AAAC;AAAA,gCANYC,mBAAmB,UACP,kBAAkB"}
@@ -1,41 +1,32 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.OnComponentChangeEvent = void 0;
9
-
10
8
  function _defineProperty2() {
11
9
  const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
-
13
10
  _defineProperty2 = function () {
14
11
  return data;
15
12
  };
16
-
17
13
  return data;
18
14
  }
19
-
20
15
  function _pubsub() {
21
16
  const data = require("@teambit/pubsub");
22
-
23
17
  _pubsub = function () {
24
18
  return data;
25
19
  };
26
-
27
20
  return data;
28
21
  }
29
-
30
22
  /* eslint-disable max-classes-per-file */
23
+
31
24
  class OnComponentChangeEventData {
32
25
  constructor(idStr, hook) {
33
26
  this.idStr = idStr;
34
27
  this.hook = hook;
35
28
  }
36
-
37
29
  }
38
-
39
30
  class OnComponentChangeEvent extends _pubsub().BitBaseEvent {
40
31
  constructor(timestamp, idStr, hook) {
41
32
  super(OnComponentChangeEvent.TYPE, '0.0.1', timestamp, new OnComponentChangeEventData(idStr, hook));
@@ -43,9 +34,7 @@ class OnComponentChangeEvent extends _pubsub().BitBaseEvent {
43
34
  this.idStr = idStr;
44
35
  this.hook = hook;
45
36
  }
46
-
47
37
  }
48
-
49
38
  exports.OnComponentChangeEvent = OnComponentChangeEvent;
50
39
  (0, _defineProperty2().default)(OnComponentChangeEvent, "TYPE", 'on-component-change');
51
40
 
@@ -1 +1 @@
1
- {"version":3,"names":["OnComponentChangeEventData","constructor","idStr","hook","OnComponentChangeEvent","BitBaseEvent","timestamp","TYPE"],"sources":["on-component-change-event.ts"],"sourcesContent":["/* eslint-disable max-classes-per-file */\nimport { BitBaseEvent } from '@teambit/pubsub';\n\nclass OnComponentChangeEventData {\n constructor(readonly idStr, readonly hook) {}\n}\n\nexport class OnComponentChangeEvent extends BitBaseEvent<OnComponentChangeEventData> {\n static readonly TYPE = 'on-component-change';\n\n constructor(readonly timestamp, readonly idStr, readonly hook) {\n super(OnComponentChangeEvent.TYPE, '0.0.1', timestamp, new OnComponentChangeEventData(idStr, hook));\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AADA;AAGA,MAAMA,0BAAN,CAAiC;EAC/BC,WAAW,CAAUC,KAAV,EAA0BC,IAA1B,EAAgC;IAAA,KAAtBD,KAAsB,GAAtBA,KAAsB;IAAA,KAANC,IAAM,GAANA,IAAM;EAAE;;AADd;;AAI1B,MAAMC,sBAAN,SAAqCC,sBAArC,CAA8E;EAGnFJ,WAAW,CAAUK,SAAV,EAA8BJ,KAA9B,EAA8CC,IAA9C,EAAoD;IAC7D,MAAMC,sBAAsB,CAACG,IAA7B,EAAmC,OAAnC,EAA4CD,SAA5C,EAAuD,IAAIN,0BAAJ,CAA+BE,KAA/B,EAAsCC,IAAtC,CAAvD;IAD6D,KAA1CG,SAA0C,GAA1CA,SAA0C;IAAA,KAAtBJ,KAAsB,GAAtBA,KAAsB;IAAA,KAANC,IAAM,GAANA,IAAM;EAE9D;;AALkF;;;gCAAxEC,sB,UACY,qB"}
1
+ {"version":3,"names":["OnComponentChangeEventData","constructor","idStr","hook","OnComponentChangeEvent","BitBaseEvent","timestamp","TYPE"],"sources":["on-component-change-event.ts"],"sourcesContent":["/* eslint-disable max-classes-per-file */\nimport { BitBaseEvent } from '@teambit/pubsub';\n\nclass OnComponentChangeEventData {\n constructor(readonly idStr, readonly hook) {}\n}\n\nexport class OnComponentChangeEvent extends BitBaseEvent<OnComponentChangeEventData> {\n static readonly TYPE = 'on-component-change';\n\n constructor(readonly timestamp, readonly idStr, readonly hook) {\n super(OnComponentChangeEvent.TYPE, '0.0.1', timestamp, new OnComponentChangeEventData(idStr, hook));\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AADA;;AAGA,MAAMA,0BAA0B,CAAC;EAC/BC,WAAW,CAAUC,KAAK,EAAWC,IAAI,EAAE;IAAA,KAAtBD,KAAK,GAALA,KAAK;IAAA,KAAWC,IAAI,GAAJA,IAAI;EAAG;AAC9C;AAEO,MAAMC,sBAAsB,SAASC,sBAAY,CAA6B;EAGnFJ,WAAW,CAAUK,SAAS,EAAWJ,KAAK,EAAWC,IAAI,EAAE;IAC7D,KAAK,CAACC,sBAAsB,CAACG,IAAI,EAAE,OAAO,EAAED,SAAS,EAAE,IAAIN,0BAA0B,CAACE,KAAK,EAAEC,IAAI,CAAC,CAAC;IAAC,KADjFG,SAAS,GAATA,SAAS;IAAA,KAAWJ,KAAK,GAALA,KAAK;IAAA,KAAWC,IAAI,GAAJA,IAAI;EAE7D;AACF;AAAC;AAAA,gCANYC,sBAAsB,UACV,qBAAqB"}
@@ -1,49 +1,38 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.OnComponentRemovedEvent = void 0;
9
-
10
8
  function _defineProperty2() {
11
9
  const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
-
13
10
  _defineProperty2 = function () {
14
11
  return data;
15
12
  };
16
-
17
13
  return data;
18
14
  }
19
-
20
15
  function _pubsub() {
21
16
  const data = require("@teambit/pubsub");
22
-
23
17
  _pubsub = function () {
24
18
  return data;
25
19
  };
26
-
27
20
  return data;
28
21
  }
29
-
30
22
  /* eslint-disable max-classes-per-file */
23
+
31
24
  class OnComponentRemovedEventData {
32
25
  constructor(idStr) {
33
26
  this.idStr = idStr;
34
27
  }
35
-
36
28
  }
37
-
38
29
  class OnComponentRemovedEvent extends _pubsub().BitBaseEvent {
39
30
  constructor(timestamp, idStr) {
40
31
  super(OnComponentRemovedEvent.TYPE, '0.0.1', timestamp, new OnComponentRemovedEventData(idStr));
41
32
  this.timestamp = timestamp;
42
33
  this.idStr = idStr;
43
34
  }
44
-
45
35
  }
46
-
47
36
  exports.OnComponentRemovedEvent = OnComponentRemovedEvent;
48
37
  (0, _defineProperty2().default)(OnComponentRemovedEvent, "TYPE", 'on-component-removed');
49
38
 
@@ -1 +1 @@
1
- {"version":3,"names":["OnComponentRemovedEventData","constructor","idStr","OnComponentRemovedEvent","BitBaseEvent","timestamp","TYPE"],"sources":["on-component-removed-event.ts"],"sourcesContent":["/* eslint-disable max-classes-per-file */\nimport { BitBaseEvent } from '@teambit/pubsub';\n\nclass OnComponentRemovedEventData {\n constructor(readonly idStr) {}\n}\n\nexport class OnComponentRemovedEvent extends BitBaseEvent<OnComponentRemovedEventData> {\n static readonly TYPE = 'on-component-removed';\n\n constructor(readonly timestamp, readonly idStr) {\n super(OnComponentRemovedEvent.TYPE, '0.0.1', timestamp, new OnComponentRemovedEventData(idStr));\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AADA;AAGA,MAAMA,2BAAN,CAAkC;EAChCC,WAAW,CAAUC,KAAV,EAAiB;IAAA,KAAPA,KAAO,GAAPA,KAAO;EAAE;;AADE;;AAI3B,MAAMC,uBAAN,SAAsCC,sBAAtC,CAAgF;EAGrFH,WAAW,CAAUI,SAAV,EAA8BH,KAA9B,EAAqC;IAC9C,MAAMC,uBAAuB,CAACG,IAA9B,EAAoC,OAApC,EAA6CD,SAA7C,EAAwD,IAAIL,2BAAJ,CAAgCE,KAAhC,CAAxD;IAD8C,KAA3BG,SAA2B,GAA3BA,SAA2B;IAAA,KAAPH,KAAO,GAAPA,KAAO;EAE/C;;AALoF;;;gCAA1EC,uB,UACY,sB"}
1
+ {"version":3,"names":["OnComponentRemovedEventData","constructor","idStr","OnComponentRemovedEvent","BitBaseEvent","timestamp","TYPE"],"sources":["on-component-removed-event.ts"],"sourcesContent":["/* eslint-disable max-classes-per-file */\nimport { BitBaseEvent } from '@teambit/pubsub';\n\nclass OnComponentRemovedEventData {\n constructor(readonly idStr) {}\n}\n\nexport class OnComponentRemovedEvent extends BitBaseEvent<OnComponentRemovedEventData> {\n static readonly TYPE = 'on-component-removed';\n\n constructor(readonly timestamp, readonly idStr) {\n super(OnComponentRemovedEvent.TYPE, '0.0.1', timestamp, new OnComponentRemovedEventData(idStr));\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AADA;;AAGA,MAAMA,2BAA2B,CAAC;EAChCC,WAAW,CAAUC,KAAK,EAAE;IAAA,KAAPA,KAAK,GAALA,KAAK;EAAG;AAC/B;AAEO,MAAMC,uBAAuB,SAASC,sBAAY,CAA8B;EAGrFH,WAAW,CAAUI,SAAS,EAAWH,KAAK,EAAE;IAC9C,KAAK,CAACC,uBAAuB,CAACG,IAAI,EAAE,OAAO,EAAED,SAAS,EAAE,IAAIL,2BAA2B,CAACE,KAAK,CAAC,CAAC;IAAC,KAD7EG,SAAS,GAATA,SAAS;IAAA,KAAWH,KAAK,GAALA,KAAK;EAE9C;AACF;AAAC;AAAA,gCANYC,uBAAuB,UACX,sBAAsB"}
@@ -4,25 +4,19 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.IncorrectEnvAspect = void 0;
7
-
8
7
  function _bitError() {
9
8
  const data = require("@teambit/bit-error");
10
-
11
9
  _bitError = function () {
12
10
  return data;
13
11
  };
14
-
15
12
  return data;
16
13
  }
17
-
18
14
  class IncorrectEnvAspect extends _bitError().BitError {
19
15
  constructor(id, envType, envId) {
20
16
  super(`"${id}" is configured in workspace.json, but using the "${envId}" environment, which is type "${envType}".
21
17
  please make sure to either apply the aspect environment or a composition of the aspect environment for the aspect to load.`);
22
18
  }
23
-
24
19
  }
25
-
26
20
  exports.IncorrectEnvAspect = IncorrectEnvAspect;
27
21
 
28
22
  //# sourceMappingURL=incorrect-env-aspect.js.map