@capacitor/cli 3.3.0 → 3.3.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.3.1](https://github.com/ionic-team/capacitor/compare/3.3.0...3.3.1) (2021-11-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **cli:** Make config don't error if iOS is missing ([#5212](https://github.com/ionic-team/capacitor/issues/5212)) ([db9f12b](https://github.com/ionic-team/capacitor/commit/db9f12b545994b2ed88098c0168bb051f8191771))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.3.0](https://github.com/ionic-team/capacitor/compare/3.2.5...3.3.0) (2021-11-03)
7
18
 
8
19
 
Binary file
Binary file
package/dist/config.js CHANGED
@@ -251,22 +251,22 @@ function determineOS(os) {
251
251
  return "unknown" /* Unknown */;
252
252
  }
253
253
  async function determineXcodeWorkspaceDirAbs(nativeProjectDirAbs) {
254
- const xcodeDir = path_1.resolve(nativeProjectDirAbs, 'App.xcworkspace');
255
- if (!(await utils_fs_1.pathExists(xcodeDir))) {
256
- errors_1.fatal('Xcode workspace does not exist.\n' +
257
- `See the docs for adding the ${colors_1.default.strong('ios')} platform: ${colors_1.default.strong('https://capacitorjs.com/docs/ios#adding-the-ios-platform')}`);
258
- }
259
- return xcodeDir;
254
+ return path_1.resolve(nativeProjectDirAbs, 'App.xcworkspace');
260
255
  }
261
256
  async function determineIOSWebDirAbs(nativeProjectDirAbs, nativeTargetDirAbs, nativeXcodeProjDirAbs) {
262
257
  const re = /path\s=\spublic[\s\S]+?sourceTree\s=\s([^;]+)/;
263
258
  const pbxprojPath = path_1.resolve(nativeXcodeProjDirAbs, 'project.pbxproj');
264
- const pbxproj = await utils_fs_1.readFile(pbxprojPath, { encoding: 'utf8' });
265
- const m = pbxproj.match(re);
266
- if (m && m[1] === 'SOURCE_ROOT') {
267
- log_1.logger.warn(`Using the iOS project root for the ${colors_1.default.strong('public')} directory is deprecated.\n` +
268
- `Please follow the Upgrade Guide to move ${colors_1.default.strong('public')} inside the iOS target directory: ${colors_1.default.strong('https://capacitorjs.com/docs/updating/3-0#move-public-into-the-ios-target-directory')}`);
269
- return path_1.resolve(nativeProjectDirAbs, 'public');
259
+ try {
260
+ const pbxproj = await utils_fs_1.readFile(pbxprojPath, { encoding: 'utf8' });
261
+ const m = pbxproj.match(re);
262
+ if (m && m[1] === 'SOURCE_ROOT') {
263
+ log_1.logger.warn(`Using the iOS project root for the ${colors_1.default.strong('public')} directory is deprecated.\n` +
264
+ `Please follow the Upgrade Guide to move ${colors_1.default.strong('public')} inside the iOS target directory: ${colors_1.default.strong('https://capacitorjs.com/docs/updating/3-0#move-public-into-the-ios-target-directory')}`);
265
+ return path_1.resolve(nativeProjectDirAbs, 'public');
266
+ }
267
+ }
268
+ catch (e) {
269
+ // ignore
270
270
  }
271
271
  return path_1.resolve(nativeTargetDirAbs, 'public');
272
272
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/cli",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
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)",
@@ -85,5 +85,5 @@
85
85
  "publishConfig": {
86
86
  "access": "public"
87
87
  },
88
- "gitHead": "cb7eacd3c69512cf85c03cb06ef9ebf44d32e425"
88
+ "gitHead": "8ff7434e9b775e6acb05efae23771ee1b18e26c9"
89
89
  }