@pourkit/cli 0.0.0-next-20260703224310 → 0.0.0-next-20260704180701
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.js +16 -4
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -13956,6 +13956,9 @@ function generateGitignoreBlock() {
|
|
|
13956
13956
|
];
|
|
13957
13957
|
return lines.join("\n") + "\n";
|
|
13958
13958
|
}
|
|
13959
|
+
async function ensureInitRuntimeDirectories(targetRoot) {
|
|
13960
|
+
await mkdir5(path5.join(targetRoot, ".pourkit", ".tmp"), { recursive: true });
|
|
13961
|
+
}
|
|
13959
13962
|
async function walkDir(dir) {
|
|
13960
13963
|
const files = [];
|
|
13961
13964
|
const entries = await readdir2(dir, { withFileTypes: true });
|
|
@@ -15570,6 +15573,15 @@ async function applyInitFromSource(options) {
|
|
|
15570
15573
|
labelConflictPolicy,
|
|
15571
15574
|
githubClient
|
|
15572
15575
|
});
|
|
15576
|
+
if (result.errors.length === 0) {
|
|
15577
|
+
try {
|
|
15578
|
+
await ensureInitRuntimeDirectories(targetRoot);
|
|
15579
|
+
} catch (e) {
|
|
15580
|
+
result.errors.push(
|
|
15581
|
+
`Failed to create .pourkit/.tmp: ${e instanceof Error ? e.message : String(e)}`
|
|
15582
|
+
);
|
|
15583
|
+
}
|
|
15584
|
+
}
|
|
15573
15585
|
let manifestWritten = false;
|
|
15574
15586
|
if (result.errors.length === 0) {
|
|
15575
15587
|
const manifestSkipped = plan.operations.some(
|
|
@@ -19327,11 +19339,11 @@ function createCliProgram(version) {
|
|
|
19327
19339
|
return program;
|
|
19328
19340
|
}
|
|
19329
19341
|
async function resolveCliVersion() {
|
|
19330
|
-
if (isPackageVersion("0.0.0-next-
|
|
19331
|
-
return "0.0.0-next-
|
|
19342
|
+
if (isPackageVersion("0.0.0-next-20260704180701")) {
|
|
19343
|
+
return "0.0.0-next-20260704180701";
|
|
19332
19344
|
}
|
|
19333
|
-
if (isReleaseVersion("0.0.0-next-
|
|
19334
|
-
return "0.0.0-next-
|
|
19345
|
+
if (isReleaseVersion("0.0.0-next-20260704180701")) {
|
|
19346
|
+
return "0.0.0-next-20260704180701";
|
|
19335
19347
|
}
|
|
19336
19348
|
try {
|
|
19337
19349
|
const root = repoRoot();
|