@karmaniverous/stan-cli 0.13.0-2 → 0.13.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/cli/{apply-BLUBUR53.js → apply-Cb1o11xs.js} +2 -26
- package/dist/cli/{capture-DI9e72SL.js → capture-B8PiU6x_.js} +14 -17
- package/dist/cli/{config-fallback-BNGfWBS_.js → config-fallback-DbYUP2ba.js} +13 -16
- package/dist/cli/{context-DUjxqf3w.js → context-B4BOm57U.js} +15 -18
- package/dist/cli/stan.js +3129 -35920
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/classifier-Bqzr65UC-DJLYQY2b.js +0 -1
- package/dist/cli/classifier-Bqzr65UC-BlsMFS8t.js +0 -7
- package/dist/cli/index-CBnKL1V0.js +0 -26485
- package/dist/cli/index-Cmkxdlxn.js +0 -2972
- package/dist/cli/index-WrHikElU-CF5ElqAC.js +0 -20
- package/dist/index-WrHikElU-D_tK8_aw.js +0 -1
|
@@ -1,29 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import 'node:fs';
|
|
4
|
-
import 'node:fs/promises';
|
|
5
|
-
import 'node:path';
|
|
6
|
-
import 'fs-extra';
|
|
7
|
-
import 'node:process';
|
|
8
|
-
import 'node:url';
|
|
9
|
-
import 'process';
|
|
10
|
-
import 'buffer';
|
|
11
|
-
import 'node:crypto';
|
|
12
|
-
import 'node:child_process';
|
|
13
|
-
import 'os';
|
|
14
|
-
import 'path';
|
|
15
|
-
import 'util';
|
|
16
|
-
import 'stream';
|
|
17
|
-
import 'events';
|
|
18
|
-
import 'fs';
|
|
19
|
-
import 'node:events';
|
|
20
|
-
import 'node:os';
|
|
21
|
-
import 'node:tty';
|
|
22
|
-
import 'node:readline';
|
|
23
|
-
import 'clipboardy';
|
|
24
|
-
import 'typescript';
|
|
25
|
-
import 'child_process';
|
|
26
|
-
import 'node:module';
|
|
2
|
+
import { applyPatchPipeline } from '@karmaniverous/stan-core';
|
|
27
3
|
|
|
28
4
|
/** Present for compatibility with older/mocked test shapes. */
|
|
29
5
|
const buildApplyAttempts = () => {
|
|
@@ -36,7 +12,7 @@ const buildApplyAttempts = () => {
|
|
|
36
12
|
*/
|
|
37
13
|
const runGitApply = async (args) => {
|
|
38
14
|
const { cwd, patchAbs, cleaned, stripOrder } = args;
|
|
39
|
-
const out = await
|
|
15
|
+
const out = await applyPatchPipeline({
|
|
40
16
|
cwd,
|
|
41
17
|
patchAbs,
|
|
42
18
|
cleaned,
|
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { existsSync } from 'node:fs';
|
|
3
3
|
import { readFile, writeFile, copyFile, rm } from 'node:fs/promises';
|
|
4
|
-
import { w as within, e as ensureDirs, A as ARCH_DIR,
|
|
4
|
+
import { w as within, e as ensureDirs, A as ARCH_DIR, a as readJson, b as writeJson, S as STATE_FILE, c as SNAP_DIR } from './stan.js';
|
|
5
|
+
import '@karmaniverous/stan-core';
|
|
6
|
+
import 'commander';
|
|
7
|
+
import 'zod';
|
|
8
|
+
import 'yaml';
|
|
9
|
+
import 'node:crypto';
|
|
5
10
|
import 'node:path';
|
|
6
|
-
import 'fs-extra';
|
|
7
|
-
import 'node:process';
|
|
8
11
|
import 'node:url';
|
|
9
|
-
import '
|
|
10
|
-
import '
|
|
11
|
-
import '
|
|
12
|
-
import 'node:child_process';
|
|
13
|
-
import 'os';
|
|
14
|
-
import 'path';
|
|
15
|
-
import 'util';
|
|
16
|
-
import 'stream';
|
|
17
|
-
import 'events';
|
|
18
|
-
import 'fs';
|
|
19
|
-
import 'node:events';
|
|
20
|
-
import 'node:os';
|
|
21
|
-
import 'node:tty';
|
|
12
|
+
import 'package-directory';
|
|
13
|
+
import 'fs-extra';
|
|
14
|
+
import 'chalk';
|
|
22
15
|
import 'node:readline';
|
|
23
16
|
import 'clipboardy';
|
|
17
|
+
import 'node:child_process';
|
|
18
|
+
import 'fast-glob';
|
|
24
19
|
import 'typescript';
|
|
25
|
-
import '
|
|
20
|
+
import 'table';
|
|
21
|
+
import 'tree-kill';
|
|
22
|
+
import 'signal-exit';
|
|
26
23
|
import 'node:module';
|
|
27
24
|
|
|
28
25
|
// src/stan/snap/capture.ts
|
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { r as readRawConfigSync, p as pickCliNode, n as normalizeScriptsNode } from './stan.js';
|
|
3
|
+
import '@karmaniverous/stan-core';
|
|
4
|
+
import 'commander';
|
|
3
5
|
import 'node:fs';
|
|
4
6
|
import 'node:fs/promises';
|
|
7
|
+
import 'zod';
|
|
8
|
+
import 'yaml';
|
|
9
|
+
import 'node:crypto';
|
|
5
10
|
import 'node:path';
|
|
6
|
-
import 'fs-extra';
|
|
7
|
-
import 'node:process';
|
|
8
11
|
import 'node:url';
|
|
9
|
-
import '
|
|
10
|
-
import '
|
|
11
|
-
import '
|
|
12
|
-
import 'node:child_process';
|
|
13
|
-
import 'os';
|
|
14
|
-
import 'path';
|
|
15
|
-
import 'util';
|
|
16
|
-
import 'stream';
|
|
17
|
-
import 'events';
|
|
18
|
-
import 'fs';
|
|
19
|
-
import 'node:events';
|
|
20
|
-
import 'node:os';
|
|
21
|
-
import 'node:tty';
|
|
12
|
+
import 'package-directory';
|
|
13
|
+
import 'fs-extra';
|
|
14
|
+
import 'chalk';
|
|
22
15
|
import 'node:readline';
|
|
23
16
|
import 'clipboardy';
|
|
17
|
+
import 'node:child_process';
|
|
18
|
+
import 'fast-glob';
|
|
24
19
|
import 'typescript';
|
|
25
|
-
import '
|
|
20
|
+
import 'table';
|
|
21
|
+
import 'tree-kill';
|
|
22
|
+
import 'signal-exit';
|
|
26
23
|
import 'node:module';
|
|
27
24
|
|
|
28
25
|
// src/cli/run/config-fallback.ts
|
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import { D as DBG_SCOPE_SNAP_CONTEXT_LEGACY, l as loadCliConfig } from './stan.js';
|
|
4
|
+
import '@karmaniverous/stan-core';
|
|
5
|
+
import 'commander';
|
|
4
6
|
import 'node:fs';
|
|
5
7
|
import 'node:fs/promises';
|
|
6
|
-
import '
|
|
7
|
-
import '
|
|
8
|
-
import 'node:url';
|
|
9
|
-
import 'process';
|
|
10
|
-
import 'buffer';
|
|
8
|
+
import 'zod';
|
|
9
|
+
import 'yaml';
|
|
11
10
|
import 'node:crypto';
|
|
12
|
-
import 'node:
|
|
13
|
-
import '
|
|
14
|
-
import '
|
|
15
|
-
import '
|
|
16
|
-
import 'stream';
|
|
17
|
-
import 'events';
|
|
18
|
-
import 'fs';
|
|
19
|
-
import 'node:events';
|
|
20
|
-
import 'node:os';
|
|
21
|
-
import 'node:tty';
|
|
11
|
+
import 'node:url';
|
|
12
|
+
import 'package-directory';
|
|
13
|
+
import 'fs-extra';
|
|
14
|
+
import 'chalk';
|
|
22
15
|
import 'node:readline';
|
|
23
16
|
import 'clipboardy';
|
|
17
|
+
import 'node:child_process';
|
|
18
|
+
import 'fast-glob';
|
|
24
19
|
import 'typescript';
|
|
25
|
-
import '
|
|
20
|
+
import 'table';
|
|
21
|
+
import 'tree-kill';
|
|
22
|
+
import 'signal-exit';
|
|
26
23
|
import 'node:module';
|
|
27
24
|
|
|
28
25
|
// src/common/interop/resolve.ts
|
|
@@ -79,7 +76,7 @@ async function resolveContext(cwd0) {
|
|
|
79
76
|
let cwd = cwd0;
|
|
80
77
|
let resolveStanPathSyncResolved = null;
|
|
81
78
|
try {
|
|
82
|
-
const coreMod = (await import('
|
|
79
|
+
const coreMod = (await import('@karmaniverous/stan-core'));
|
|
83
80
|
const findConfigPathSyncResolved = resolveNamedOrDefaultFunction(coreMod, (m) => m.findConfigPathSync, (m) => m.default?.findConfigPathSync, 'findConfigPathSync');
|
|
84
81
|
const cfgPath = findConfigPathSyncResolved(cwd0);
|
|
85
82
|
cwd = cfgPath ? path.dirname(cfgPath) : cwd0;
|
|
@@ -95,7 +92,7 @@ async function resolveContext(cwd0) {
|
|
|
95
92
|
// evaluation-order hazards during module import.
|
|
96
93
|
let engine;
|
|
97
94
|
try {
|
|
98
|
-
const effModUnknown = (await import('./stan.js').then(function (n) { return n.
|
|
95
|
+
const effModUnknown = (await import('./stan.js').then(function (n) { return n.d; }));
|
|
99
96
|
// Decide if we should print a single success trace when STAN_DEBUG=1.
|
|
100
97
|
const debugOn = () => process.env.STAN_DEBUG === '1';
|
|
101
98
|
const debugTrace = (kind) => {
|