hazo_env 0.15.2 → 0.16.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/CHANGE_LOG.md +84 -0
- package/README.md +316 -0
- package/dist/cli.js +102 -14
- package/dist/deploy/build.d.ts.map +1 -1
- package/dist/deploy/build.js +19 -0
- package/dist/deploy/clean.d.ts +2 -1
- package/dist/deploy/clean.d.ts.map +1 -1
- package/dist/deploy/clean.js +36 -6
- package/dist/deploy/generate-readme-cli.d.ts +3 -0
- package/dist/deploy/generate-readme-cli.d.ts.map +1 -0
- package/dist/deploy/generate-readme-cli.js +40 -0
- package/dist/deploy/help.d.ts +55 -0
- package/dist/deploy/help.d.ts.map +1 -0
- package/dist/deploy/help.js +526 -0
- package/dist/deploy/index.d.ts +3 -0
- package/dist/deploy/index.d.ts.map +1 -1
- package/dist/deploy/index.js +3 -0
- package/dist/deploy/init.d.ts +8 -0
- package/dist/deploy/init.d.ts.map +1 -1
- package/dist/deploy/init.js +12 -1
- package/dist/deploy/rollback.d.ts +10 -1
- package/dist/deploy/rollback.d.ts.map +1 -1
- package/dist/deploy/rollback.js +25 -1
- package/dist/deploy/share.d.ts +28 -0
- package/dist/deploy/share.d.ts.map +1 -0
- package/dist/deploy/share.js +53 -0
- package/dist/deploy/shared-dirs.d.ts +128 -0
- package/dist/deploy/shared-dirs.d.ts.map +1 -0
- package/dist/deploy/shared-dirs.js +486 -0
- package/dist/deploy/status.d.ts +8 -0
- package/dist/deploy/status.d.ts.map +1 -1
- package/dist/deploy/status.js +6 -0
- package/dist/deploy/switch.d.ts.map +1 -1
- package/dist/deploy/switch.js +25 -0
- package/dist/deploy/types.d.ts +18 -0
- package/dist/deploy/types.d.ts.map +1 -1
- package/dist/envsync/engine.d.ts.map +1 -1
- package/dist/envsync/engine.js +21 -7
- package/dist/envsync/paths.d.ts +22 -0
- package/dist/envsync/paths.d.ts.map +1 -1
- package/dist/envsync/paths.js +55 -0
- package/dist/resolve/deploy.d.ts.map +1 -1
- package/dist/resolve/deploy.js +165 -0
- package/dist/resolve/envsync.d.ts +16 -0
- package/dist/resolve/envsync.d.ts.map +1 -1
- package/dist/resolve/envsync.js +19 -0
- package/package.json +3 -2
|
@@ -20,10 +20,19 @@ export interface RunRollbackResult {
|
|
|
20
20
|
export declare class RollbackAbortError extends Error {
|
|
21
21
|
constructor(message: string);
|
|
22
22
|
}
|
|
23
|
+
export interface RunRollbackOptions {
|
|
24
|
+
/**
|
|
25
|
+
* Bypass the shared-dirs drift check below — mirrors switch.ts's
|
|
26
|
+
* `--force`, which already bypasses that file's own build-recency check.
|
|
27
|
+
* Use only when the operator has independently verified the drifted
|
|
28
|
+
* slot is safe to promote.
|
|
29
|
+
*/
|
|
30
|
+
force?: boolean;
|
|
31
|
+
}
|
|
23
32
|
/**
|
|
24
33
|
* Reverse the last `deploy switch`: put the previously-live build back on
|
|
25
34
|
* the production port. See this file's header for the full step-by-step
|
|
26
35
|
* rationale.
|
|
27
36
|
*/
|
|
28
|
-
export declare function runRollback(config: DeployConfig, runner: CommandRunner): RunRollbackResult;
|
|
37
|
+
export declare function runRollback(config: DeployConfig, runner: CommandRunner, opts?: RunRollbackOptions): RunRollbackResult;
|
|
29
38
|
//# sourceMappingURL=rollback.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollback.d.ts","sourceRoot":"","sources":["../../src/deploy/rollback.ts"],"names":[],"mappings":"AAkFA,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"rollback.d.ts","sourceRoot":"","sources":["../../src/deploy/rollback.ts"],"names":[],"mappings":"AAkFA,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGpE,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAc3E,MAAM,WAAW,iBAAiB;IAChC,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,WAAW,CAAC;IACnB,6GAA6G;IAC7G,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kHAAkH;IAClH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,QAAQ,EAAE,iBAAiB,EAAE,CAAC;CAC/B;AAED,uEAAuE;AACvE,qBAAa,kBAAmB,SAAQ,KAAK;gBAC/B,OAAO,EAAE,MAAM;CAI5B;AAED,MAAM,WAAW,kBAAkB;IACjC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,YAAY,EACpB,MAAM,EAAE,aAAa,EACrB,IAAI,GAAE,kBAAuB,GAC5B,iBAAiB,CA0InB"}
|
package/dist/deploy/rollback.js
CHANGED
|
@@ -80,6 +80,18 @@ import path from 'node:path';
|
|
|
80
80
|
import { readState, updateState } from './state.js';
|
|
81
81
|
import { promoteDirFresh, PromoteDirFreshError } from './pm2-start.js';
|
|
82
82
|
import { syncSidecars } from './sidecar.js';
|
|
83
|
+
import { inspectSharedDirs } from './shared-dirs.js';
|
|
84
|
+
/**
|
|
85
|
+
* Describe every `shared_dirs` entry that isn't `linked` in BOTH slots —
|
|
86
|
+
* mirrors switch.ts's identical helper (duplicated rather than shared: a
|
|
87
|
+
* two-line pure function isn't worth adding a third cross-import between
|
|
88
|
+
* these two sibling command files for).
|
|
89
|
+
*/
|
|
90
|
+
function describeSharedDirDrift(inspections) {
|
|
91
|
+
return inspections
|
|
92
|
+
.filter((i) => i.live.state !== 'linked' || i.standby.state !== 'linked')
|
|
93
|
+
.map((i) => `"${i.dir}" (live=${i.live.state}, standby=${i.standby.state})`);
|
|
94
|
+
}
|
|
83
95
|
/** Thrown when there's nothing to roll back, or a fatal step fails. */
|
|
84
96
|
export class RollbackAbortError extends Error {
|
|
85
97
|
constructor(message) {
|
|
@@ -92,7 +104,7 @@ export class RollbackAbortError extends Error {
|
|
|
92
104
|
* the production port. See this file's header for the full step-by-step
|
|
93
105
|
* rationale.
|
|
94
106
|
*/
|
|
95
|
-
export function runRollback(config, runner) {
|
|
107
|
+
export function runRollback(config, runner, opts = {}) {
|
|
96
108
|
// Step 1: read state.
|
|
97
109
|
const state = readState(config.app_name);
|
|
98
110
|
if (!state) {
|
|
@@ -125,6 +137,18 @@ export function runRollback(config, runner) {
|
|
|
125
137
|
}
|
|
126
138
|
const currentLiveDir = path.resolve(state.live_dir);
|
|
127
139
|
const restoreDir = path.resolve(state.previous_live_dir);
|
|
140
|
+
// Shared dirs (ticket 03, deploy-shared-dirs spec, user story 28): the
|
|
141
|
+
// same re-verification switch.ts applies before promoting, applied here
|
|
142
|
+
// in the opposite direction. Read-only (`inspectSharedDirs`) — ANY
|
|
143
|
+
// non-`linked` state in either slot aborts; only `opts.force` overrides.
|
|
144
|
+
// A no-op when shared_dirs is empty (feature off).
|
|
145
|
+
if (config.shared_dirs.length > 0 && !opts.force) {
|
|
146
|
+
const drift = describeSharedDirDrift(inspectSharedDirs(config, { live: currentLiveDir, standby: restoreDir }));
|
|
147
|
+
if (drift.length > 0) {
|
|
148
|
+
throw new RollbackAbortError(`Shared dir(s) not fully linked in both slots: ${drift.join(', ')}. Run "hazo-env deploy share" to fix, ` +
|
|
149
|
+
`or pass --force to override.`);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
128
152
|
// Step 4: read the restored dir's git ref FIRST, before anything is
|
|
129
153
|
// stopped/started — mirrors switch.ts step 2 (see header).
|
|
130
154
|
const gitRef = runner.exec('git rev-parse HEAD', { cwd: restoreDir }).trim();
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { MigrateSharedDirsResult } from './shared-dirs.js';
|
|
2
|
+
import type { DeployConfig } from './types.js';
|
|
3
|
+
export interface RunShareOptions {
|
|
4
|
+
/** Directory to treat as the only slot when no state file exists yet. Defaults to process.cwd(). */
|
|
5
|
+
cwd?: string;
|
|
6
|
+
/** Preview the full report without writing, renaming, or linking anything. Default: false. */
|
|
7
|
+
dryRun?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface RunShareResult extends MigrateSharedDirsResult {
|
|
10
|
+
liveDir: string;
|
|
11
|
+
/** `undefined` when there is no peer to merge from (no state file, or the standby dir no longer exists on disk). */
|
|
12
|
+
standbyDir?: string;
|
|
13
|
+
stateFound: boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Resolve live/standby and run the one-time shared-dirs migration.
|
|
17
|
+
*
|
|
18
|
+
* - State file found: live/standby come from it, exactly as recorded —
|
|
19
|
+
* regardless of which one `cwd` actually is. The standby dir is only used
|
|
20
|
+
* if it still exists on disk (a peer that was removed by hand is treated
|
|
21
|
+
* as "no peer", same as pre-`deploy init`), so a stale state file can
|
|
22
|
+
* never cause a symlink to be created inside a directory that isn't
|
|
23
|
+
* there.
|
|
24
|
+
* - No state file (never ran `deploy init`): `cwd` is the only slot; there
|
|
25
|
+
* is no peer to merge from.
|
|
26
|
+
*/
|
|
27
|
+
export declare function runShare(config: DeployConfig, opts?: RunShareOptions): RunShareResult;
|
|
28
|
+
//# sourceMappingURL=share.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"share.d.ts","sourceRoot":"","sources":["../../src/deploy/share.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,MAAM,WAAW,eAAe;IAC9B,oGAAoG;IACpG,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,8FAA8F;IAC9F,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,cAAe,SAAQ,uBAAuB;IAC7D,OAAO,EAAE,MAAM,CAAC;IAChB,oHAAoH;IACpH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,YAAY,EAAE,IAAI,GAAE,eAAoB,GAAG,cAAc,CAwBzF"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// hazo_env/src/deploy/share.ts — `deploy share`: resolve live/standby from
|
|
2
|
+
// state, then delegate to shared-dirs.ts's `migrateSharedDirs` for the
|
|
3
|
+
// actual filesystem work.
|
|
4
|
+
//
|
|
5
|
+
// Mirrors how init.ts/build.ts resolve directories before calling into
|
|
6
|
+
// shared-dirs.ts's `ensureLinks`: this file's only job is figuring out
|
|
7
|
+
// which two directories play "live" and "standby" — tolerating a missing
|
|
8
|
+
// state file or a peer that was never created (user stories 7/20) — it
|
|
9
|
+
// never touches a shared-dir path itself.
|
|
10
|
+
//
|
|
11
|
+
// Per the spec, `deploy share` is runnable from EITHER slot: the live/
|
|
12
|
+
// standby roles always come from the state file's own `live_dir`/
|
|
13
|
+
// `standby_dir` labels (which side wins a content conflict), never from
|
|
14
|
+
// `cwd` — `cwd` only matters as the single-slot fallback when no state file
|
|
15
|
+
// exists yet.
|
|
16
|
+
import fs from 'node:fs';
|
|
17
|
+
import path from 'node:path';
|
|
18
|
+
import { readState } from './state.js';
|
|
19
|
+
import { migrateSharedDirs } from './shared-dirs.js';
|
|
20
|
+
/**
|
|
21
|
+
* Resolve live/standby and run the one-time shared-dirs migration.
|
|
22
|
+
*
|
|
23
|
+
* - State file found: live/standby come from it, exactly as recorded —
|
|
24
|
+
* regardless of which one `cwd` actually is. The standby dir is only used
|
|
25
|
+
* if it still exists on disk (a peer that was removed by hand is treated
|
|
26
|
+
* as "no peer", same as pre-`deploy init`), so a stale state file can
|
|
27
|
+
* never cause a symlink to be created inside a directory that isn't
|
|
28
|
+
* there.
|
|
29
|
+
* - No state file (never ran `deploy init`): `cwd` is the only slot; there
|
|
30
|
+
* is no peer to merge from.
|
|
31
|
+
*/
|
|
32
|
+
export function runShare(config, opts = {}) {
|
|
33
|
+
const cwd = path.resolve(opts.cwd ?? process.cwd());
|
|
34
|
+
const dryRun = opts.dryRun ?? false;
|
|
35
|
+
const state = readState(config.app_name);
|
|
36
|
+
let liveDir;
|
|
37
|
+
let standbyDir;
|
|
38
|
+
const stateFound = !!state;
|
|
39
|
+
if (state) {
|
|
40
|
+
liveDir = path.resolve(state.live_dir);
|
|
41
|
+
const candidateStandby = path.resolve(state.standby_dir);
|
|
42
|
+
standbyDir = fs.existsSync(candidateStandby) ? candidateStandby : undefined;
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
liveDir = cwd;
|
|
46
|
+
standbyDir = undefined;
|
|
47
|
+
}
|
|
48
|
+
if (config.shared_dirs.length === 0) {
|
|
49
|
+
return { dryRun, dirs: [], liveDir, standbyDir, stateFound };
|
|
50
|
+
}
|
|
51
|
+
const result = migrateSharedDirs(config, { live: liveDir, standby: standbyDir, dryRun });
|
|
52
|
+
return { ...result, liveDir, standbyDir, stateFound };
|
|
53
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import type { DeployConfig } from './types.js';
|
|
2
|
+
/** Absolute live/standby directory paths for the app being inspected. */
|
|
3
|
+
export interface SlotDirs {
|
|
4
|
+
live: string;
|
|
5
|
+
standby: string;
|
|
6
|
+
}
|
|
7
|
+
export type SharedDirStateName = 'linked' | 'missing' | 'empty-dir' | 'real-dir' | 'wrong-link';
|
|
8
|
+
export interface SharedDirSlotState {
|
|
9
|
+
state: SharedDirStateName;
|
|
10
|
+
/** Present only when `state === 'real-dir'`: recursive count of regular files found (symlinks inside count as 1, not followed). */
|
|
11
|
+
fileCount?: number;
|
|
12
|
+
/** Present only when `state === 'wrong-link'`: the symlink's target, resolved to an absolute path when it was relative. */
|
|
13
|
+
linkTarget?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface SharedDirInspection {
|
|
16
|
+
/** The `shared_dirs` entry, slot-relative (e.g. "var/uploads"). */
|
|
17
|
+
dir: string;
|
|
18
|
+
/** Absolute path this dir's symlink is expected to point at (`shared_root/dir`). */
|
|
19
|
+
expectedTarget: string;
|
|
20
|
+
live: SharedDirSlotState;
|
|
21
|
+
standby: SharedDirSlotState;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Inspect every `config.shared_dirs` entry in both `slots.live` and
|
|
25
|
+
* `slots.standby`. Pure read — safe to call at any time, including from
|
|
26
|
+
* `deploy status`.
|
|
27
|
+
*/
|
|
28
|
+
export declare function inspectSharedDirs(config: DeployConfig, slots: SlotDirs): SharedDirInspection[];
|
|
29
|
+
/** Thrown by `ensureLinks` for any shared dir it refuses to touch or can't fix without an option it wasn't given. */
|
|
30
|
+
export declare class SharedDirError extends Error {
|
|
31
|
+
readonly code: string;
|
|
32
|
+
readonly dir: string;
|
|
33
|
+
constructor(code: string, dir: string, message: string);
|
|
34
|
+
}
|
|
35
|
+
export interface EnsureLinksOptions {
|
|
36
|
+
/** Create the link (and the shared-root target dir) when the slot path is missing. Default: false. */
|
|
37
|
+
allowCreate?: boolean;
|
|
38
|
+
/** Replace a real-but-empty directory with the link. Default: false. */
|
|
39
|
+
allowReplaceEmpty?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export type EnsureLinkAction = 'already-linked' | 'created' | 'replaced-empty';
|
|
42
|
+
export interface EnsureLinkResult {
|
|
43
|
+
dir: string;
|
|
44
|
+
action: EnsureLinkAction;
|
|
45
|
+
target: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Ensure every `config.shared_dirs` entry is correctly linked in `slotDir`.
|
|
49
|
+
*
|
|
50
|
+
* - `linked` (already points at the right target): no-op.
|
|
51
|
+
* - `missing`: created only if `allowCreate` — otherwise throws
|
|
52
|
+
* `HAZO_ENV_SHARED_DIR_MISSING`.
|
|
53
|
+
* - `empty-dir`: replaced only if `allowReplaceEmpty` — otherwise throws
|
|
54
|
+
* `HAZO_ENV_SHARED_DIR_EMPTY_DIR`.
|
|
55
|
+
* - `real-dir` (non-empty) and `wrong-link`: ALWAYS throw
|
|
56
|
+
* (`HAZO_ENV_SHARED_DIR_REAL_DIR` / `HAZO_ENV_SHARED_DIR_WRONG_LINK`),
|
|
57
|
+
* regardless of options — these states mean real data (or someone else's
|
|
58
|
+
* link) is sitting there, and only `deploy share`'s explicit migration is
|
|
59
|
+
* allowed to touch that, never an automatic "ensure" call.
|
|
60
|
+
*
|
|
61
|
+
* Processes entries in order and throws on the first blocking one — callers
|
|
62
|
+
* that want a full report before any error should call `inspectSharedDirs`
|
|
63
|
+
* first.
|
|
64
|
+
*/
|
|
65
|
+
export declare function ensureLinks(config: DeployConfig, slotDir: string, opts?: EnsureLinksOptions): EnsureLinkResult[];
|
|
66
|
+
/** Options for `migrateSharedDirs`. */
|
|
67
|
+
export interface MigrateSharedDirsOptions {
|
|
68
|
+
/** Absolute path to the slot whose content wins on a same-path content conflict ("live"). */
|
|
69
|
+
live: string;
|
|
70
|
+
/**
|
|
71
|
+
* Absolute path to the other slot ("standby"). Pass `undefined` when there
|
|
72
|
+
* is no peer at all (pre-`deploy init`, or the peer dir no longer exists
|
|
73
|
+
* on disk) — only `live` is migrated in that case. Callers are responsible
|
|
74
|
+
* for only passing a path that actually exists; `migrateSharedDirs` itself
|
|
75
|
+
* never checks (an `undefined` is the explicit "no peer" signal).
|
|
76
|
+
*/
|
|
77
|
+
standby?: string;
|
|
78
|
+
/** Preview the full report without writing, renaming, or linking anything. Default: false. */
|
|
79
|
+
dryRun?: boolean;
|
|
80
|
+
}
|
|
81
|
+
export type SharedDirShareSlotAction = 'already-linked' | 'linked' | 'no-peer';
|
|
82
|
+
/** Per-shared-dir result of one `deploy share` run. */
|
|
83
|
+
export interface SharedDirShareReport {
|
|
84
|
+
dir: string;
|
|
85
|
+
/** Absolute path under `shared_root` this dir was (or would be) merged into. */
|
|
86
|
+
target: string;
|
|
87
|
+
/** Files copied in from the live slot (unique to live, or the winning side of a content conflict). */
|
|
88
|
+
filesFromLive: number;
|
|
89
|
+
/** Files copied in from the standby slot (unique to standby). */
|
|
90
|
+
filesFromStandby: number;
|
|
91
|
+
/** Files present with identical content in both slots — copied once, deduped. */
|
|
92
|
+
identical: number;
|
|
93
|
+
/** Same-path files with different content — the standby copy (or whichever lost) was parked under `.conflicts/`. */
|
|
94
|
+
conflicts: number;
|
|
95
|
+
/** Absolute paths every conflicting file was parked at. */
|
|
96
|
+
conflictFiles: string[];
|
|
97
|
+
liveAction: SharedDirShareSlotAction;
|
|
98
|
+
standbyAction: SharedDirShareSlotAction;
|
|
99
|
+
/** Set only when the live slot's real directory was renamed aside during the swap. */
|
|
100
|
+
liveBackupDir?: string;
|
|
101
|
+
/** Set only when the standby slot's real directory was renamed aside during the swap. */
|
|
102
|
+
standbyBackupDir?: string;
|
|
103
|
+
/** Files merged from the renamed `.pre-share-*` backup dirs after the swap (closes the late-write race window). */
|
|
104
|
+
lateMergedFiles: number;
|
|
105
|
+
warnings: string[];
|
|
106
|
+
}
|
|
107
|
+
export interface MigrateSharedDirsResult {
|
|
108
|
+
dryRun: boolean;
|
|
109
|
+
dirs: SharedDirShareReport[];
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* One-time migration: merge whatever is already on disk in `opts.live` (and
|
|
113
|
+
* `opts.standby`, when present) into `config.shared_root`, then replace each
|
|
114
|
+
* slot's real directory with a symlink to it. See this file's header above
|
|
115
|
+
* (and `.scratch/deploy-shared-dirs/issues/02-deploy-share-migration.md`)
|
|
116
|
+
* for the full behavior. Idempotent — re-running after a successful run (or
|
|
117
|
+
* after a `--dry-run`) is safe; already-linked dirs are reported as such and
|
|
118
|
+
* untouched.
|
|
119
|
+
*
|
|
120
|
+
* Validates every configured dir's live/standby state BEFORE writing
|
|
121
|
+
* anything: if any dir has a `wrong-link` in either slot, the whole call
|
|
122
|
+
* throws `SharedDirError` without touching ANY dir (even ones that would
|
|
123
|
+
* otherwise have been fine) — a destructive-adjacent migration should fail
|
|
124
|
+
* atomically rather than leave some dirs migrated and others not because a
|
|
125
|
+
* later one hit a problem it can't safely resolve on its own.
|
|
126
|
+
*/
|
|
127
|
+
export declare function migrateSharedDirs(config: DeployConfig, opts: MigrateSharedDirsOptions): MigrateSharedDirsResult;
|
|
128
|
+
//# sourceMappingURL=shared-dirs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared-dirs.d.ts","sourceRoot":"","sources":["../../src/deploy/shared-dirs.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,yEAAyE;AACzE,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,YAAY,CAAC;AAEhG,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,kBAAkB,CAAC;IAC1B,mIAAmI;IACnI,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2HAA2H;IAC3H,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC,mEAAmE;IACnE,GAAG,EAAE,MAAM,CAAC;IACZ,oFAAoF;IACpF,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,kBAAkB,CAAC;IACzB,OAAO,EAAE,kBAAkB,CAAC;CAC7B;AA6DD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,GAAG,mBAAmB,EAAE,CAU9F;AAED,qHAAqH;AACrH,qBAAa,cAAe,SAAQ,KAAK;IACvC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;gBAET,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAA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