eoas 2.3.0 → 2.3.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/bin/dev.cmd ADDED
@@ -0,0 +1,3 @@
1
+ @echo off
2
+
3
+ node "%~dp0\dev" %*
package/bin/dev.js ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env node
2
+ // eslint-disable-next-line node/shebang, unicorn/prefer-top-level-await
3
+ (async () => {
4
+ const oclif = await import('@oclif/core');
5
+ await oclif.execute({ development: true, dir: __dirname });
6
+ })();
package/bin/run.cmd ADDED
@@ -0,0 +1,3 @@
1
+ @echo off
2
+
3
+ node "%~dp0\run" %*
package/bin/run.js ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+
3
+ // eslint-disable-next-line unicorn/prefer-top-level-await
4
+ (async () => {
5
+ const oclif = await import('@oclif/core')
6
+ await oclif.execute({dir: __dirname})
7
+ })()
@@ -6,6 +6,7 @@ export default class Publish extends Command {
6
6
  static flags: {
7
7
  platform: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
8
8
  channel: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
9
+ disableRepositoryCheck: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
10
  branch: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
10
11
  nonInteractive: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
12
  outputDir: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
@@ -38,6 +38,11 @@ class Publish extends core_1.Command {
38
38
  message: 'Channel was initially used to provide RELEASE_CHANNEL in the environment when resolving the runtime version. It is no longer needed, you can use RELEASE_CHANNEL={channel} eoas publish --branch={branch} instead',
39
39
  },
40
40
  }),
41
+ disableRepositoryCheck: core_1.Flags.boolean({
42
+ description: 'Disable repository check (Useful for CI/CD)',
43
+ default: false,
44
+ hidden: true,
45
+ }),
41
46
  branch: core_1.Flags.string({
42
47
  description: 'Name of the branch to point to',
43
48
  required: true,
@@ -53,6 +58,7 @@ class Publish extends core_1.Command {
53
58
  };
54
59
  sanitizeFlags(flags) {
55
60
  return {
61
+ disableRepositoryCheck: flags.disableRepositoryCheck,
56
62
  platform: flags.platform,
57
63
  branch: flags.branch,
58
64
  nonInteractive: flags.nonInteractive,
@@ -67,7 +73,7 @@ class Publish extends core_1.Command {
67
73
  process.exit(1);
68
74
  }
69
75
  const { flags } = await this.parse(Publish);
70
- const { platform, nonInteractive, branch, outputDir, providedDeprecatedChannel } = this.sanitizeFlags(flags);
76
+ const { platform, nonInteractive, branch, outputDir, providedDeprecatedChannel, disableRepositoryCheck, } = this.sanitizeFlags(flags);
71
77
  if (!branch) {
72
78
  log_1.default.error('Branch name is required');
73
79
  process.exit(1);
@@ -79,7 +85,9 @@ class Publish extends core_1.Command {
79
85
  process.exit(1);
80
86
  }
81
87
  const vcsClient = (0, vcs_1.resolveVcsClient)(true);
82
- await (0, repo_1.ensureRepoIsCleanAsync)(vcsClient, nonInteractive);
88
+ if (!disableRepositoryCheck) {
89
+ await (0, repo_1.ensureRepoIsCleanAsync)(vcsClient, nonInteractive);
90
+ }
83
91
  const config = await (0, expoConfig_1.getPrivateExpoConfigAsync)(projectDir, {
84
92
  env: {
85
93
  ...process.env,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoas",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "build": "tsc --project tsconfig.json",