@capacitor/cli 5.7.0 → 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
@@ -32,7 +32,7 @@ async function buildAndroid(config, buildOptions) {
32
32
  const releaseDir = releaseTypeIsAAB
33
33
  ? flavor !== ''
34
34
  ? `${flavor}Release`
35
- : 'Release'
35
+ : 'release'
36
36
  : flavor !== ''
37
37
  ? (0, path_1.join)(flavor, 'release')
38
38
  : 'release';
@@ -193,11 +193,6 @@ async function copySSLCert(sslCertPaths, rootDir, targetDir) {
193
193
  const validCertPaths = [];
194
194
  for (const sslCertPath of sslCertPaths) {
195
195
  const certAbsFromPath = (0, path_1.join)(rootDir, sslCertPath);
196
- if (!/^.+\.(cer)$/.test(certAbsFromPath)) {
197
- log_1.logger.warn(`Cannot copy file from ${colors_1.default.strong(certAbsFromPath)}\n` +
198
- `The file is not a .cer SSL Certificate file.`);
199
- return;
200
- }
201
196
  if (!(await (0, utils_fs_1.pathExists)(certAbsFromPath))) {
202
197
  log_1.logger.warn(`Cannot copy SSL Certificate file from ${colors_1.default.strong(certAbsFromPath)}\n` +
203
198
  `SSL Certificate does not exist at specified path.`);
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.0",
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)",