naro-cli 0.10.0 → 0.12.0

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/dist/deploy.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  parseDotenv,
6
6
  readProjectEnv,
7
7
  slugify
8
- } from "./chunk-5U6YPVZS.js";
8
+ } from "./chunk-GFCG5C7D.js";
9
9
  import "./chunk-K3NQKI34.js";
10
10
  export {
11
11
  deployDirectory,
@@ -11,7 +11,20 @@ export interface GitInfo {
11
11
  * answer, recorded without anyone having to know to pass it.
12
12
  */
13
13
  prefix: string | null;
14
+ /**
15
+ * The commit the working tree started from, or null outside a repository
16
+ * (or before the first commit). A CLI deploy ships the working tree rather
17
+ * than this commit, so `dirty` says whether the two differ.
18
+ */
19
+ commit: LocalCommit | null;
20
+ }
21
+ export interface LocalCommit {
22
+ sha: string;
23
+ /** Subject line, capped to the deployments.git_commit_message limit. */
24
+ message: string | null;
25
+ /** Modified or untracked files, or a status git could not report. */
26
+ dirty: boolean;
14
27
  }
15
28
  export type GitExec = (args: string[], cwd: string) => Promise<string>;
16
- /** Reads local git metadata for the deploy: origin remote URL + current branch. */
29
+ /** Reads local git metadata for the deploy: origin remote URL, branch and HEAD. */
17
30
  export declare function detectGitInfo(dir: string, exec?: GitExec): Promise<GitInfo>;