@builder.io/mitosis 0.5.26 → 0.5.27

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.
@@ -27,7 +27,7 @@ exports.resolveMetadata = void 0;
27
27
  const mitosis_imports_1 = require("../../../helpers/mitosis-imports");
28
28
  const helpers_1 = require("../../../parsers/jsx/helpers");
29
29
  const babel = __importStar(require("@babel/core"));
30
- const fs_extra_promise_1 = require("fs-extra-promise");
30
+ const fs_1 = require("fs");
31
31
  const path = __importStar(require("path"));
32
32
  const getCodeFromImport = (importObject, currentFile) => {
33
33
  if (currentFile) {
@@ -38,8 +38,8 @@ const getCodeFromImport = (importObject, currentFile) => {
38
38
  ? importObject.path
39
39
  : `${importObject.path}.${typescript ? 'ts' : 'js'}`;
40
40
  const importFilePath = path.resolve(path.dirname(currentFile), importFile);
41
- if ((0, fs_extra_promise_1.existsSync)(importFilePath)) {
42
- return { code: (0, fs_extra_promise_1.readFileSync)(importFilePath).toString(), typescript, importFilePath };
41
+ if ((0, fs_1.existsSync)(importFilePath)) {
42
+ return { code: (0, fs_1.readFileSync)(importFilePath).toString(), typescript, importFilePath };
43
43
  }
44
44
  return { typescript };
45
45
  }
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "name": "Builder.io",
23
23
  "url": "https://www.builder.io"
24
24
  },
25
- "version": "0.5.26",
25
+ "version": "0.5.27",
26
26
  "homepage": "https://github.com/BuilderIO/mitosis",
27
27
  "main": "./dist/src/index.js",
28
28
  "exports": {
@@ -86,7 +86,6 @@
86
86
  "@types/babel__core": "7.1.14",
87
87
  "@types/dedent": "^0.7.0",
88
88
  "@types/estree": "^1.0.2",
89
- "@types/fs-extra-promise": "^1.0.10",
90
89
  "@types/hash-sum": "^1.0.0",
91
90
  "@types/json5": "0.0.30",
92
91
  "@types/lodash": "^4.14.165",
@@ -95,7 +94,6 @@
95
94
  "@types/prettier": "^2.1.5",
96
95
  "@types/rollup__plugin-virtual": "^2.0.1",
97
96
  "concurrently": "^8.2.2",
98
- "fs-extra-promise": "^1.0.1",
99
97
  "rimraf": "^5.0.5",
100
98
  "rollup": "^2.70.1",
101
99
  "strip-ansi": "^6.0.1",