@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.
- package/assets/android-template.tar.gz +0 -0
- package/assets/capacitor-cordova-android-plugins.tar.gz +0 -0
- package/assets/capacitor-cordova-ios-plugins.tar.gz +0 -0
- package/assets/ios-template.tar.gz +0 -0
- package/dist/android/build.js +1 -1
- package/dist/tasks/copy.js +0 -5
- package/dist/util/node.js +5 -0
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/android/build.js
CHANGED
package/dist/tasks/copy.js
CHANGED
|
@@ -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