@teambit/eject 1.0.53 → 1.0.55

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.
@@ -59,14 +59,14 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
59
59
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
60
60
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
61
61
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
62
- * a classic use case of eject is when a user imports a component using `bit import` to update it,
63
- * but the user has no intention to have the code as part of the project source code.
64
- * the eject provides the option to delete the component locally and install it via the NPM client.
65
- *
66
- * an implementation note, the entire process is done with rollback in mind.
67
- * since installing the component via NPM client is an error prone process, we do it first, before
68
- * removing the component files, so then it's easier to rollback.
69
- */
62
+ * a classic use case of eject is when a user imports a component using `bit import` to update it,
63
+ * but the user has no intention to have the code as part of the project source code.
64
+ * the eject provides the option to delete the component locally and install it via the NPM client.
65
+ *
66
+ * an implementation note, the entire process is done with rollback in mind.
67
+ * since installing the component via NPM client is an error prone process, we do it first, before
68
+ * removing the component files, so then it's easier to rollback.
69
+ */
70
70
  class ComponentsEjector {
71
71
  // for rollback in case of errors
72
72
  constructor(workspace, install, logger, componentsIds, ejectOptions) {
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_eject@1.0.53/dist/eject.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_eject@1.0.53/dist/eject.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_eject@1.0.55/dist/eject.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_eject@1.0.55/dist/eject.docs.mdx';
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/eject",
3
- "version": "1.0.53",
3
+ "version": "1.0.55",
4
4
  "homepage": "https://bit.cloud/teambit/workspace/eject",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.workspace",
8
8
  "name": "eject",
9
- "version": "1.0.53"
9
+ "version": "1.0.55"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -14,10 +14,10 @@
14
14
  "@babel/runtime": "7.20.0",
15
15
  "@teambit/component-id": "1.2.0",
16
16
  "@teambit/harmony": "0.4.6",
17
- "@teambit/install": "1.0.53",
18
- "@teambit/logger": "0.0.907",
19
- "@teambit/workspace": "1.0.53",
20
- "@teambit/cli": "0.0.814"
17
+ "@teambit/install": "1.0.55",
18
+ "@teambit/logger": "0.0.908",
19
+ "@teambit/workspace": "1.0.55",
20
+ "@teambit/cli": "0.0.815"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/react": "^17.0.8",
@@ -28,7 +28,7 @@
28
28
  "@types/testing-library__jest-dom": "5.9.5"
29
29
  },
30
30
  "peerDependencies": {
31
- "@teambit/legacy": "1.0.597",
31
+ "@teambit/legacy": "1.0.598",
32
32
  "react": "^16.8.0 || ^17.0.0",
33
33
  "react-dom": "^16.8.0 || ^17.0.0"
34
34
  },