@expo/cli 0.22.20 → 0.22.21

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/build/bin/cli CHANGED
@@ -121,7 +121,7 @@ const args = (0, _arg().default)({
121
121
  });
122
122
  if (args["--version"]) {
123
123
  // Version is added in the build script.
124
- console.log("0.22.20");
124
+ console.log("0.22.21");
125
125
  process.exit(0);
126
126
  }
127
127
  if (args["--non-interactive"]) {
@@ -23,8 +23,8 @@ async function resolveBundlerPropsAsync(projectRoot, options) {
23
23
  // Skip bundling if the port is null -- meaning skip the bundler if the port is already running the app.
24
24
  options.bundler = !!port;
25
25
  if (!port) {
26
- // any random number
27
- port = 8081;
26
+ // Use explicit user-provided port, or the default port
27
+ port = options.port ?? 8081;
28
28
  }
29
29
  _log.Log.debug(`Resolved port: ${port}, start dev server: ${options.bundler}`);
30
30
  return {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/run/resolveBundlerProps.ts"],"sourcesContent":["import { Log } from '../log';\nimport { CommandError } from '../utils/errors';\nimport { resolvePortAsync } from '../utils/port';\n\nexport interface BundlerProps {\n /** Port to start the dev server on. */\n port: number;\n /** Skip opening the bundler from the native script. */\n shouldStartBundler: boolean;\n}\n\nexport async function resolveBundlerPropsAsync(\n projectRoot: string,\n options: {\n port?: number;\n bundler?: boolean;\n }\n): Promise<BundlerProps> {\n options.bundler = options.bundler ?? true;\n\n if (\n // If the user disables the bundler then they should not pass in the port property.\n !options.bundler &&\n options.port\n ) {\n throw new CommandError('BAD_ARGS', '--port and --no-bundler are mutually exclusive arguments');\n }\n\n // Resolve the port if the bundler is used.\n let port = options.bundler\n ? await resolvePortAsync(projectRoot, { reuseExistingPort: true, defaultPort: options.port })\n : null;\n\n // Skip bundling if the port is null -- meaning skip the bundler if the port is already running the app.\n options.bundler = !!port;\n if (!port) {\n // any random number\n port = 8081;\n }\n Log.debug(`Resolved port: ${port}, start dev server: ${options.bundler}`);\n\n return {\n shouldStartBundler: !!options.bundler,\n port,\n };\n}\n"],"names":["resolveBundlerPropsAsync","projectRoot","options","bundler","port","CommandError","resolvePortAsync","reuseExistingPort","defaultPort","Log","debug","shouldStartBundler"],"mappings":"AAAA;;;;+BAWsBA,0BAAwB;;aAAxBA,wBAAwB;;qBAX1B,QAAQ;wBACC,iBAAiB;sBACb,eAAe;AASzC,eAAeA,wBAAwB,CAC5CC,WAAmB,EACnBC,OAGC,EACsB;IACvBA,OAAO,CAACC,OAAO,GAAGD,OAAO,CAACC,OAAO,IAAI,IAAI,CAAC;IAE1C,IACE,mFAAmF;IACnF,CAACD,OAAO,CAACC,OAAO,IAChBD,OAAO,CAACE,IAAI,EACZ;QACA,MAAM,IAAIC,OAAY,aAAA,CAAC,UAAU,EAAE,0DAA0D,CAAC,CAAC;IACjG,CAAC;IAED,2CAA2C;IAC3C,IAAID,IAAI,GAAGF,OAAO,CAACC,OAAO,GACtB,MAAMG,IAAAA,KAAgB,iBAAA,EAACL,WAAW,EAAE;QAAEM,iBAAiB,EAAE,IAAI;QAAEC,WAAW,EAAEN,OAAO,CAACE,IAAI;KAAE,CAAC,GAC3F,IAAI,AAAC;IAET,wGAAwG;IACxGF,OAAO,CAACC,OAAO,GAAG,CAAC,CAACC,IAAI,CAAC;IACzB,IAAI,CAACA,IAAI,EAAE;QACT,oBAAoB;QACpBA,IAAI,GAAG,IAAI,CAAC;IACd,CAAC;IACDK,IAAG,IAAA,CAACC,KAAK,CAAC,CAAC,eAAe,EAAEN,IAAI,CAAC,oBAAoB,EAAEF,OAAO,CAACC,OAAO,CAAC,CAAC,CAAC,CAAC;IAE1E,OAAO;QACLQ,kBAAkB,EAAE,CAAC,CAACT,OAAO,CAACC,OAAO;QACrCC,IAAI;KACL,CAAC;AACJ,CAAC"}
1
+ {"version":3,"sources":["../../../src/run/resolveBundlerProps.ts"],"sourcesContent":["import { Log } from '../log';\nimport { CommandError } from '../utils/errors';\nimport { resolvePortAsync } from '../utils/port';\n\nexport interface BundlerProps {\n /** Port to start the dev server on. */\n port: number;\n /** Skip opening the bundler from the native script. */\n shouldStartBundler: boolean;\n}\n\nexport async function resolveBundlerPropsAsync(\n projectRoot: string,\n options: {\n port?: number;\n bundler?: boolean;\n }\n): Promise<BundlerProps> {\n options.bundler = options.bundler ?? true;\n\n if (\n // If the user disables the bundler then they should not pass in the port property.\n !options.bundler &&\n options.port\n ) {\n throw new CommandError('BAD_ARGS', '--port and --no-bundler are mutually exclusive arguments');\n }\n\n // Resolve the port if the bundler is used.\n let port = options.bundler\n ? await resolvePortAsync(projectRoot, { reuseExistingPort: true, defaultPort: options.port })\n : null;\n\n // Skip bundling if the port is null -- meaning skip the bundler if the port is already running the app.\n options.bundler = !!port;\n if (!port) {\n // Use explicit user-provided port, or the default port\n port = options.port ?? 8081;\n }\n Log.debug(`Resolved port: ${port}, start dev server: ${options.bundler}`);\n\n return {\n shouldStartBundler: !!options.bundler,\n port,\n };\n}\n"],"names":["resolveBundlerPropsAsync","projectRoot","options","bundler","port","CommandError","resolvePortAsync","reuseExistingPort","defaultPort","Log","debug","shouldStartBundler"],"mappings":"AAAA;;;;+BAWsBA,0BAAwB;;aAAxBA,wBAAwB;;qBAX1B,QAAQ;wBACC,iBAAiB;sBACb,eAAe;AASzC,eAAeA,wBAAwB,CAC5CC,WAAmB,EACnBC,OAGC,EACsB;IACvBA,OAAO,CAACC,OAAO,GAAGD,OAAO,CAACC,OAAO,IAAI,IAAI,CAAC;IAE1C,IACE,mFAAmF;IACnF,CAACD,OAAO,CAACC,OAAO,IAChBD,OAAO,CAACE,IAAI,EACZ;QACA,MAAM,IAAIC,OAAY,aAAA,CAAC,UAAU,EAAE,0DAA0D,CAAC,CAAC;IACjG,CAAC;IAED,2CAA2C;IAC3C,IAAID,IAAI,GAAGF,OAAO,CAACC,OAAO,GACtB,MAAMG,IAAAA,KAAgB,iBAAA,EAACL,WAAW,EAAE;QAAEM,iBAAiB,EAAE,IAAI;QAAEC,WAAW,EAAEN,OAAO,CAACE,IAAI;KAAE,CAAC,GAC3F,IAAI,AAAC;IAET,wGAAwG;IACxGF,OAAO,CAACC,OAAO,GAAG,CAAC,CAACC,IAAI,CAAC;IACzB,IAAI,CAACA,IAAI,EAAE;QACT,uDAAuD;QACvDA,IAAI,GAAGF,OAAO,CAACE,IAAI,IAAI,IAAI,CAAC;IAC9B,CAAC;IACDK,IAAG,IAAA,CAACC,KAAK,CAAC,CAAC,eAAe,EAAEN,IAAI,CAAC,oBAAoB,EAAEF,OAAO,CAACC,OAAO,CAAC,CAAC,CAAC,CAAC;IAE1E,OAAO;QACLQ,kBAAkB,EAAE,CAAC,CAACT,OAAO,CAACC,OAAO;QACrCC,IAAI;KACL,CAAC;AACJ,CAAC"}
@@ -31,7 +31,7 @@ class FetchClient {
31
31
  this.headers = {
32
32
  accept: "application/json",
33
33
  "content-type": "application/json",
34
- "user-agent": `expo-cli/${"0.22.20"}`,
34
+ "user-agent": `expo-cli/${"0.22.21"}`,
35
35
  authorization: "Basic " + _nodeBuffer().Buffer.from(`${target}:`).toString("base64")
36
36
  };
37
37
  }
@@ -79,7 +79,7 @@ function createContext() {
79
79
  cpu: summarizeCpuInfo(),
80
80
  app: {
81
81
  name: "expo/cli",
82
- version: "0.22.20"
82
+ version: "0.22.21"
83
83
  },
84
84
  ci: _ciInfo().isCI ? {
85
85
  name: _ciInfo().name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/cli",
3
- "version": "0.22.20",
3
+ "version": "0.22.21",
4
4
  "description": "The Expo CLI",
5
5
  "main": "build/bin/cli",
6
6
  "bin": {
@@ -168,5 +168,5 @@
168
168
  "tree-kill": "^1.2.2",
169
169
  "tsd": "^0.28.1"
170
170
  },
171
- "gitHead": "ee33df50fbe6bf9bb5d772e7f341f85a27cf9993"
171
+ "gitHead": "0d83355bc0ec72f115de85eb418aaf9500c68528"
172
172
  }