@capacitor/cli 5.7.1 → 5.7.2

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.
Binary file
Binary file
package/dist/util/node.js CHANGED
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveNode = exports.requireTS = void 0;
4
4
  const utils_fs_1 = require("@ionic/utils-fs");
5
+ const fs_1 = require("fs");
5
6
  const path_1 = require("path");
6
7
  /**
7
8
  * @see https://github.com/ionic-team/stencil/blob/HEAD/src/compiler/sys/node-require.ts
@@ -43,6 +44,10 @@ function resolveNode(root, ...pathSegments) {
43
44
  return require.resolve(pathSegments.join('/'), { paths: [root] });
44
45
  }
45
46
  catch (e) {
47
+ const path = [root, 'node_modules', ...pathSegments].join('/');
48
+ if ((0, fs_1.existsSync)(path)) {
49
+ return path;
50
+ }
46
51
  return null;
47
52
  }
48
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/cli",
3
- "version": "5.7.1",
3
+ "version": "5.7.2",
4
4
  "description": "Capacitor: Cross-platform apps with JavaScript and the web",
5
5
  "homepage": "https://capacitorjs.com",
6
6
  "author": "Ionic Team <hi@ionic.io> (https://ionic.io)",