@bacons/apple-targets 0.1.8 → 0.1.9

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.
@@ -10,11 +10,8 @@ const withPodTargetExtension_1 = require("./withPodTargetExtension");
10
10
  const withWidget_1 = __importDefault(require("./withWidget"));
11
11
  const withXcparse_1 = require("./withXcparse");
12
12
  const withTargetsDir = (config, _props) => {
13
- var _a;
14
- const { appleTeamId = (_a = config === null || config === void 0 ? void 0 : config.ios) === null || _a === void 0 ? void 0 : _a.appleTeamId, root = "./targets", match = "*", } = _props || {};
15
- if (!appleTeamId) {
16
- throw new Error(`You must specify an \`appleTeamId\` in your app config to use the \`withTargetsDir\` plugin.`);
17
- }
13
+ var _a, _b;
14
+ const { appleTeamId = (_b = (_a = config === null || config === void 0 ? void 0 : config.ios) === null || _a === void 0 ? void 0 : _a.appleTeamId) !== null && _b !== void 0 ? _b : "XXXXXXXXXX", root = "./targets", match = "*", } = _props || {};
18
15
  const projectRoot = config._internal.projectRoot;
19
16
  const targets = (0, glob_1.sync)(`${root}/${match}/expo-target.config.@(json|js)`, {
20
17
  // const targets = globSync(`./targets/action/expo-target.config.@(json|js)`, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bacons/apple-targets",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Generate Apple Targets with Expo Prebuild",
5
5
  "main": "build/ExtensionStorage.js",
6
6
  "types": "build/ExtensionStorage.d.ts",