@supa-magic/spm 0.2.4 → 0.2.6
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/bin/spm.js +6 -2
- package/package.json +1 -4
package/dist/bin/spm.js
CHANGED
|
@@ -4,7 +4,7 @@ import { existsSync, readFileSync, writeFileSync, mkdirSync, unlinkSync, readdir
|
|
|
4
4
|
import { join, dirname, relative, resolve, normalize } from "node:path";
|
|
5
5
|
import { parse, stringify } from "yaml";
|
|
6
6
|
import { execFileSync, execSync, spawn } from "node:child_process";
|
|
7
|
-
import { readFile, mkdir, writeFile, rm } from "node:fs/promises";
|
|
7
|
+
import { readFile, mkdir, writeFile, rm, readdir } from "node:fs/promises";
|
|
8
8
|
import { tmpdir } from "node:os";
|
|
9
9
|
import { createHash } from "node:crypto";
|
|
10
10
|
const registerDoctorCommand = (program2) => {
|
|
@@ -923,6 +923,10 @@ const registerInstallCommand = (program2) => {
|
|
|
923
923
|
stepper
|
|
924
924
|
);
|
|
925
925
|
await rm(downloadDir, { recursive: true, force: true });
|
|
926
|
+
const spmDir = join(projectRoot, ".spm");
|
|
927
|
+
const remaining = await readdir(spmDir).catch(() => []);
|
|
928
|
+
if (remaining.length === 0)
|
|
929
|
+
await rm(spmDir, { recursive: true, force: true });
|
|
926
930
|
stepper.stop();
|
|
927
931
|
const elapsed = Math.round((Date.now() - startedAt) / 1e3);
|
|
928
932
|
const timeStr = elapsed >= 60 ? `${Math.floor(elapsed / 60)}m${(elapsed % 60).toString().padStart(2, "0")}s` : `${elapsed}s`;
|
|
@@ -960,7 +964,7 @@ const banner = (version2) => [
|
|
|
960
964
|
`${shade}▝▜${light}████▛▘ ${reset$1}${dim}v${version2} ✨ supa-magic${reset$1}`,
|
|
961
965
|
`${shade} ▘${light} ▝`
|
|
962
966
|
].join("\n");
|
|
963
|
-
const version = "0.2.
|
|
967
|
+
const version = "0.2.6";
|
|
964
968
|
const program = new Command();
|
|
965
969
|
const gray = "\x1B[90m";
|
|
966
970
|
const reset = "\x1B[0m";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supa-magic/spm",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "CLI tool for managing AI skillsets",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "vite build",
|
|
31
|
-
"install": "npm install @supa-magic/spm",
|
|
32
31
|
"link": "npm link",
|
|
33
32
|
"pretest": "npm run build",
|
|
34
33
|
"start": "clear && claude --dangerously-skip-permissions",
|
|
@@ -41,12 +40,10 @@
|
|
|
41
40
|
"@biomejs/biome": "2.4.6",
|
|
42
41
|
"@types/node": "^25.4.0",
|
|
43
42
|
"typescript": "5.8.3",
|
|
44
|
-
"typescript-language-server": "^5.1.3",
|
|
45
43
|
"vite": "^7.3.1",
|
|
46
44
|
"vitest": "^4.0.18"
|
|
47
45
|
},
|
|
48
46
|
"dependencies": {
|
|
49
|
-
"@supa-magic/spm": "^0.2.3",
|
|
50
47
|
"commander": "^14.0.3",
|
|
51
48
|
"yaml": "^2.8.2"
|
|
52
49
|
}
|