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 +3 -0
- package/bin/dev.js +6 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +7 -0
- package/dist/commands/publish.d.ts +1 -0
- package/dist/commands/publish.js +10 -2
- package/package.json +1 -1
package/bin/dev.cmd
ADDED
package/bin/dev.js
ADDED
package/bin/run.cmd
ADDED
package/bin/run.js
ADDED
|
@@ -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>;
|
package/dist/commands/publish.js
CHANGED
|
@@ -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
|
-
|
|
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,
|