moondust 0.0.2 → 0.2.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/README.md +1 -27
- package/bin/moondust.js +168 -0
- package/lib/download.js +67 -0
- package/lib/github.js +82 -0
- package/lib/platform.js +29 -0
- package/package.json +32 -90
- package/LICENSE +0 -21
- package/dist/dev.js +0 -2631
- package/dist/dev.jsx +0 -2628
- package/dist/index.d.ts +0 -18
- package/dist/index.js +0 -2630
- package/dist/index.jsx +0 -2627
package/README.md
CHANGED
|
@@ -1,27 +1 @@
|
|
|
1
|
-
|
|
2
|
-
<img width="100%" src="https://assets.solidjs.com/banner?type=Moondust&background=tiles&project=%20" alt="Moondust">
|
|
3
|
-
</p>
|
|
4
|
-
|
|
5
|
-
# Moondust
|
|
6
|
-
|
|
7
|
-
[](https://pnpm.io/)
|
|
8
|
-
|
|
9
|
-
Moondust is a component library designed with many themes in mind and customizable props.
|
|
10
|
-
|
|
11
|
-
## Quick start
|
|
12
|
-
|
|
13
|
-
Install it:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
npm i moondust
|
|
17
|
-
# or
|
|
18
|
-
yarn add moondust
|
|
19
|
-
# or
|
|
20
|
-
pnpm add moondust
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Use it:
|
|
24
|
-
|
|
25
|
-
```tsx
|
|
26
|
-
import moondust from "moondust";
|
|
27
|
-
```
|
|
1
|
+
Moondust is a local, open-source app for managing multiple repositories and the coding agents you use across them.
|
package/bin/moondust.js
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Interactive version pick, then ensure cached release binary exists and exec.
|
|
4
|
+
* Releases: https://github.com/zackarysantana/moondust — assets moondust_<semver>_<os>_<arch>.{tar.gz,zip}.
|
|
5
|
+
*/
|
|
6
|
+
import { spawn } from "node:child_process";
|
|
7
|
+
import { existsSync, mkdirSync, copyFileSync, unlinkSync, rmSync } from "node:fs";
|
|
8
|
+
import path from "node:path";
|
|
9
|
+
import os from "node:os";
|
|
10
|
+
import { stdin, stdout } from "node:process";
|
|
11
|
+
import { createInterface } from "node:readline/promises";
|
|
12
|
+
|
|
13
|
+
import { getTargetTriple, assetBasename } from "../lib/platform.js";
|
|
14
|
+
import {
|
|
15
|
+
getLatestReleaseTag,
|
|
16
|
+
listRecentReleases,
|
|
17
|
+
releaseTagExists,
|
|
18
|
+
getReleaseAssetUrl,
|
|
19
|
+
} from "../lib/github.js";
|
|
20
|
+
import {
|
|
21
|
+
downloadToFile,
|
|
22
|
+
extractArchive,
|
|
23
|
+
findBinaryInDir,
|
|
24
|
+
tempDownloadPath,
|
|
25
|
+
ensureExecutable,
|
|
26
|
+
} from "../lib/download.js";
|
|
27
|
+
|
|
28
|
+
/** GitHub owner/repo for releases (API + assets). */
|
|
29
|
+
const GITHUB_REPO = "zackarysantana/moondust";
|
|
30
|
+
|
|
31
|
+
function semverFromTag(tag) {
|
|
32
|
+
return tag.replace(/^v/i, "").trim();
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/** User input like "0.1.0" or "v0.1.0" → "v0.1.0" */
|
|
36
|
+
function tagFromUserVersion(raw) {
|
|
37
|
+
const t = raw.trim();
|
|
38
|
+
if (!t) return null;
|
|
39
|
+
return t.startsWith("v") ? t : `v${t}`;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function cacheDir(version) {
|
|
43
|
+
return path.join(os.homedir(), ".cache", "moondust", version);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function binaryName(ext) {
|
|
47
|
+
return `moondust${ext}`;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
async function ensureBinary(version, triple) {
|
|
51
|
+
const base = assetBasename(version, triple);
|
|
52
|
+
const isZip = triple.os === "windows";
|
|
53
|
+
const archiveName = isZip ? `${base}.zip` : `${base}.tar.gz`;
|
|
54
|
+
const tag = version.startsWith("v") ? version : `v${version}`;
|
|
55
|
+
const destDir = cacheDir(version);
|
|
56
|
+
const cached = path.join(destDir, binaryName(triple.ext));
|
|
57
|
+
|
|
58
|
+
if (existsSync(cached)) {
|
|
59
|
+
return cached;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const url = await getReleaseAssetUrl(GITHUB_REPO, tag, archiveName);
|
|
63
|
+
const tmpArchive = tempDownloadPath("moondust") + (isZip ? ".zip" : ".tar.gz");
|
|
64
|
+
const extractRoot = tempDownloadPath("moondust-extract");
|
|
65
|
+
|
|
66
|
+
try {
|
|
67
|
+
await downloadToFile(url, tmpArchive);
|
|
68
|
+
await extractArchive(tmpArchive, extractRoot, isZip);
|
|
69
|
+
const found = await findBinaryInDir(extractRoot, "moondust", triple.ext);
|
|
70
|
+
mkdirSync(destDir, { recursive: true });
|
|
71
|
+
copyFileSync(found, cached);
|
|
72
|
+
await ensureExecutable(cached);
|
|
73
|
+
} finally {
|
|
74
|
+
try {
|
|
75
|
+
unlinkSync(tmpArchive);
|
|
76
|
+
} catch {
|
|
77
|
+
/* ignore */
|
|
78
|
+
}
|
|
79
|
+
try {
|
|
80
|
+
rmSync(extractRoot, { recursive: true, force: true });
|
|
81
|
+
} catch {
|
|
82
|
+
/* ignore */
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return cached;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
async function chooseVersionInteractive() {
|
|
90
|
+
const rl = createInterface({ input: stdin, output: stdout });
|
|
91
|
+
try {
|
|
92
|
+
const line = await rl.question("Use latest version? [Y/n] ");
|
|
93
|
+
const useLatest = line.trim() === "" || /^y(es)?$/i.test(line.trim());
|
|
94
|
+
|
|
95
|
+
if (useLatest) {
|
|
96
|
+
const tag = await getLatestReleaseTag(GITHUB_REPO);
|
|
97
|
+
return semverFromTag(tag);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
const releases = await listRecentReleases(GITHUB_REPO, 5);
|
|
101
|
+
if (releases.length === 0) {
|
|
102
|
+
throw new Error(`No releases found for ${GITHUB_REPO}.`);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
console.log("\nRecent releases:");
|
|
106
|
+
for (let i = 0; i < releases.length; i++) {
|
|
107
|
+
const r = releases[i];
|
|
108
|
+
const title = r.name || r.tag_name;
|
|
109
|
+
const when = r.published_at
|
|
110
|
+
? new Date(r.published_at).toISOString().slice(0, 10)
|
|
111
|
+
: "";
|
|
112
|
+
console.log(
|
|
113
|
+
` ${i + 1}. ${r.tag_name} — ${title}${when ? ` — ${when}` : ""}`,
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
console.log(" … (Older releases may exist on GitHub.)\n");
|
|
117
|
+
|
|
118
|
+
for (;;) {
|
|
119
|
+
const raw = await rl.question(
|
|
120
|
+
"Enter version to install (e.g. 0.1.0): ",
|
|
121
|
+
);
|
|
122
|
+
const tag = tagFromUserVersion(raw);
|
|
123
|
+
if (!tag) {
|
|
124
|
+
console.error("Please enter a version.");
|
|
125
|
+
continue;
|
|
126
|
+
}
|
|
127
|
+
const exists = await releaseTagExists(GITHUB_REPO, tag);
|
|
128
|
+
if (!exists) {
|
|
129
|
+
console.error(
|
|
130
|
+
`No release found for ${tag}. Check the tag and try again.`,
|
|
131
|
+
);
|
|
132
|
+
continue;
|
|
133
|
+
}
|
|
134
|
+
return semverFromTag(tag);
|
|
135
|
+
}
|
|
136
|
+
} finally {
|
|
137
|
+
rl.close();
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
async function resolveVersion() {
|
|
142
|
+
if (!stdin.isTTY) {
|
|
143
|
+
const tag = await getLatestReleaseTag(GITHUB_REPO);
|
|
144
|
+
return semverFromTag(tag);
|
|
145
|
+
}
|
|
146
|
+
return chooseVersionInteractive();
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
async function main() {
|
|
150
|
+
const version = await resolveVersion();
|
|
151
|
+
const triple = getTargetTriple();
|
|
152
|
+
const binPath = await ensureBinary(version, triple);
|
|
153
|
+
|
|
154
|
+
const child = spawn(binPath, process.argv.slice(2), {
|
|
155
|
+
stdio: "inherit",
|
|
156
|
+
env: process.env,
|
|
157
|
+
windowsHide: false,
|
|
158
|
+
});
|
|
159
|
+
child.on("exit", (code, signal) => {
|
|
160
|
+
if (signal) process.kill(process.pid, signal);
|
|
161
|
+
else process.exit(code ?? 1);
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
main().catch((err) => {
|
|
166
|
+
console.error(err.message || err);
|
|
167
|
+
process.exit(1);
|
|
168
|
+
});
|
package/lib/download.js
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { createWriteStream } from "node:fs";
|
|
2
|
+
import { mkdir, chmod, stat } from "node:fs/promises";
|
|
3
|
+
import { pipeline } from "node:stream/promises";
|
|
4
|
+
import { tmpdir } from "node:os";
|
|
5
|
+
import path from "node:path";
|
|
6
|
+
import { randomBytes } from "node:crypto";
|
|
7
|
+
import extractZip from "extract-zip";
|
|
8
|
+
import { x as extractTar } from "tar";
|
|
9
|
+
|
|
10
|
+
export async function downloadToFile(url, destPath) {
|
|
11
|
+
const res = await fetch(url, {
|
|
12
|
+
headers: { "User-Agent": "moondust-npm-cli" },
|
|
13
|
+
});
|
|
14
|
+
if (!res.ok) {
|
|
15
|
+
const text = await res.text();
|
|
16
|
+
throw new Error(`Download failed ${res.status}: ${text.slice(0, 300)}`);
|
|
17
|
+
}
|
|
18
|
+
await mkdir(path.dirname(destPath), { recursive: true });
|
|
19
|
+
const tmp = `${destPath}.${randomBytes(8).toString("hex")}.part`;
|
|
20
|
+
await pipeline(res.body, createWriteStream(tmp));
|
|
21
|
+
const { rename } = await import("node:fs/promises");
|
|
22
|
+
await rename(tmp, destPath);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export async function extractArchive(archivePath, outDir, isZip) {
|
|
26
|
+
await mkdir(outDir, { recursive: true });
|
|
27
|
+
if (isZip) {
|
|
28
|
+
await extractZip(archivePath, { dir: outDir });
|
|
29
|
+
} else {
|
|
30
|
+
await extractTar({ file: archivePath, cwd: outDir });
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export async function findBinaryInDir(dir, baseName, ext) {
|
|
35
|
+
const expected = `${baseName}${ext}`;
|
|
36
|
+
const direct = path.join(dir, expected);
|
|
37
|
+
try {
|
|
38
|
+
await stat(direct);
|
|
39
|
+
return direct;
|
|
40
|
+
} catch {
|
|
41
|
+
// walk one level
|
|
42
|
+
}
|
|
43
|
+
const { readdir } = await import("node:fs/promises");
|
|
44
|
+
const entries = await readdir(dir, { withFileTypes: true });
|
|
45
|
+
for (const e of entries) {
|
|
46
|
+
if (e.isDirectory()) {
|
|
47
|
+
const p = path.join(dir, e.name, expected);
|
|
48
|
+
try {
|
|
49
|
+
await stat(p);
|
|
50
|
+
return p;
|
|
51
|
+
} catch {
|
|
52
|
+
/* continue */
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
throw new Error(`Could not find ${expected} inside extracted archive (looked in ${dir})`);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function tempDownloadPath(prefix) {
|
|
60
|
+
return path.join(tmpdir(), `${prefix}-${randomBytes(8).toString("hex")}`);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export async function ensureExecutable(filePath) {
|
|
64
|
+
if (process.platform === "win32") return;
|
|
65
|
+
const s = await stat(filePath);
|
|
66
|
+
await chmod(filePath, s.mode | 0o111);
|
|
67
|
+
}
|
package/lib/github.js
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
const HEADERS = {
|
|
2
|
+
Accept: "application/vnd.github+json",
|
|
3
|
+
"X-GitHub-Api-Version": "2022-11-28",
|
|
4
|
+
"User-Agent": "moondust-npm-cli",
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
async function githubJson(url) {
|
|
8
|
+
const res = await fetch(url, { headers: HEADERS });
|
|
9
|
+
const text = await res.text();
|
|
10
|
+
if (!res.ok) {
|
|
11
|
+
throw new Error(`GitHub API ${res.status}: ${text.slice(0, 500)}`);
|
|
12
|
+
}
|
|
13
|
+
return text ? JSON.parse(text) : null;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Latest non-prerelease release tag, or newest tag if /latest is missing.
|
|
18
|
+
*/
|
|
19
|
+
export async function getLatestReleaseTag(repo) {
|
|
20
|
+
const latestUrl = `https://api.github.com/repos/${repo}/releases/latest`;
|
|
21
|
+
const res = await fetch(latestUrl, { headers: HEADERS });
|
|
22
|
+
if (res.ok) {
|
|
23
|
+
const data = await res.json();
|
|
24
|
+
return data.tag_name;
|
|
25
|
+
}
|
|
26
|
+
if (res.status === 404) {
|
|
27
|
+
const arr = await githubJson(
|
|
28
|
+
`https://api.github.com/repos/${repo}/releases?per_page=1`,
|
|
29
|
+
);
|
|
30
|
+
if (!Array.isArray(arr) || arr.length === 0) {
|
|
31
|
+
throw new Error(`No releases found for ${repo}.`);
|
|
32
|
+
}
|
|
33
|
+
return arr[0].tag_name;
|
|
34
|
+
}
|
|
35
|
+
const text = await res.text();
|
|
36
|
+
throw new Error(`GitHub API ${res.status}: ${text.slice(0, 500)}`);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** Most recent releases (newest first), up to `limit`. */
|
|
40
|
+
export async function listRecentReleases(repo, limit) {
|
|
41
|
+
const data = await githubJson(
|
|
42
|
+
`https://api.github.com/repos/${repo}/releases?per_page=${limit}`,
|
|
43
|
+
);
|
|
44
|
+
return Array.isArray(data) ? data : [];
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* True if a release exists for this tag (e.g. v0.1.0).
|
|
49
|
+
*/
|
|
50
|
+
export async function releaseTagExists(repo, tag) {
|
|
51
|
+
const url = `https://api.github.com/repos/${repo}/releases/tags/${encodeURIComponent(tag)}`;
|
|
52
|
+
const res = await fetch(url, { headers: HEADERS });
|
|
53
|
+
return res.ok;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Resolve download URL for a release asset from GitHub's API (public repos).
|
|
58
|
+
*/
|
|
59
|
+
export async function getReleaseAssetUrl(repo, tag, assetName) {
|
|
60
|
+
const url = `https://api.github.com/repos/${repo}/releases/tags/${encodeURIComponent(tag)}`;
|
|
61
|
+
const res = await fetch(url, { headers: HEADERS });
|
|
62
|
+
if (res.status === 404) {
|
|
63
|
+
throw new Error(
|
|
64
|
+
`Release ${tag} not found for ${repo}. Publish a GitHub Release with that tag and matching assets.`,
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
if (!res.ok) {
|
|
68
|
+
const text = await res.text();
|
|
69
|
+
throw new Error(`GitHub API ${res.status}: ${text.slice(0, 500)}`);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const data = await res.json();
|
|
73
|
+
const assets = data.assets ?? [];
|
|
74
|
+
const match = assets.find((a) => a.name === assetName);
|
|
75
|
+
if (!match) {
|
|
76
|
+
const names = assets.map((a) => a.name).join(", ");
|
|
77
|
+
throw new Error(
|
|
78
|
+
`No asset named "${assetName}" on ${tag}. Available: ${names || "(none)"}`,
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
return match.browser_download_url;
|
|
82
|
+
}
|
package/lib/platform.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Maps Node's platform/arch to release asset names (see docs in repo root RELEASE_ASSETS.md).
|
|
3
|
+
*/
|
|
4
|
+
export function getTargetTriple() {
|
|
5
|
+
const platform = process.platform;
|
|
6
|
+
const arch = process.arch;
|
|
7
|
+
|
|
8
|
+
if (platform === "win32") {
|
|
9
|
+
if (arch === "x64" || arch === "ia32") return { os: "windows", arch: "amd64", ext: ".exe" };
|
|
10
|
+
if (arch === "arm64") return { os: "windows", arch: "arm64", ext: ".exe" };
|
|
11
|
+
}
|
|
12
|
+
if (platform === "darwin") {
|
|
13
|
+
if (arch === "arm64") return { os: "darwin", arch: "arm64", ext: "" };
|
|
14
|
+
if (arch === "x64") return { os: "darwin", arch: "amd64", ext: "" };
|
|
15
|
+
}
|
|
16
|
+
if (platform === "linux") {
|
|
17
|
+
if (arch === "x64") return { os: "linux", arch: "amd64", ext: "" };
|
|
18
|
+
if (arch === "arm64") return { os: "linux", arch: "arm64", ext: "" };
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
throw new Error(
|
|
22
|
+
`Unsupported platform: ${platform} ${arch}. Build or download a binary for this OS manually.`,
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function assetBasename(version, triple) {
|
|
27
|
+
const v = version.replace(/^v/, "");
|
|
28
|
+
return `moondust_${v}_${triple.os}_${triple.arch}`;
|
|
29
|
+
}
|
package/package.json
CHANGED
|
@@ -1,91 +1,33 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"default": "./dist/dev.js"
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"import": {
|
|
38
|
-
"types": "./dist/index.d.ts",
|
|
39
|
-
"default": "./dist/index.js"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"typesVersions": {},
|
|
43
|
-
"scripts": {
|
|
44
|
-
"dev": "vite serve dev",
|
|
45
|
-
"build": "tsup",
|
|
46
|
-
"test": "concurrently pnpm:test:*",
|
|
47
|
-
"test:client": "vitest",
|
|
48
|
-
"test:ssr": "pnpm run test:client --mode ssr",
|
|
49
|
-
"prepublishOnly": "pnpm build",
|
|
50
|
-
"format": "prettier --ignore-path .gitignore -w \"src/**/*.{js,ts,json,css,tsx,jsx}\" \"dev/**/*.{js,ts,json,css,tsx,jsx}\"",
|
|
51
|
-
"lint": "concurrently pnpm:lint:*",
|
|
52
|
-
"lint:code": "eslint --ignore-path .gitignore --max-warnings 0 src/**/*.{js,ts,tsx,jsx}",
|
|
53
|
-
"lint:types": "tsc --noEmit",
|
|
54
|
-
"update-deps": "pnpm up -Li"
|
|
55
|
-
},
|
|
56
|
-
"peerDependencies": {
|
|
57
|
-
"solid-js": "^1.6.0"
|
|
58
|
-
},
|
|
59
|
-
"devDependencies": {
|
|
60
|
-
"@types/node": "^20.12.12",
|
|
61
|
-
"@typescript-eslint/eslint-plugin": "^7.9.0",
|
|
62
|
-
"@typescript-eslint/parser": "^7.9.0",
|
|
63
|
-
"class-variance-authority": "^0.7.0",
|
|
64
|
-
"clsx": "^2.1.1",
|
|
65
|
-
"concurrently": "^8.2.2",
|
|
66
|
-
"esbuild": "^0.23.0",
|
|
67
|
-
"esbuild-plugin-solid": "^0.6.0",
|
|
68
|
-
"eslint": "^8.56.0",
|
|
69
|
-
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
70
|
-
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
71
|
-
"jsdom": "^24.0.0",
|
|
72
|
-
"prettier": "^3.3.3",
|
|
73
|
-
"prettier-plugin-tailwindcss": "^0.6.5",
|
|
74
|
-
"solid-js": "^1.8.17",
|
|
75
|
-
"tailwind-merge": "^2.4.0",
|
|
76
|
-
"tsup": "^8.0.2",
|
|
77
|
-
"tsup-preset-solid": "^2.2.0",
|
|
78
|
-
"typescript": "^5.4.5",
|
|
79
|
-
"vite": "^5.2.11",
|
|
80
|
-
"vite-plugin-solid": "^2.10.2",
|
|
81
|
-
"vitest": "^2.0.2"
|
|
82
|
-
},
|
|
83
|
-
"keywords": [
|
|
84
|
-
"solid"
|
|
85
|
-
],
|
|
86
|
-
"packageManager": "pnpm@9.1.1",
|
|
87
|
-
"engines": {
|
|
88
|
-
"node": ">=18",
|
|
89
|
-
"pnpm": ">=9.0.0"
|
|
90
|
-
}
|
|
91
|
-
}
|
|
2
|
+
"name": "moondust",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Download and run the Moondust desktop app from GitHub Releases",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"moondust": "bin/moondust.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"bin",
|
|
11
|
+
"lib"
|
|
12
|
+
],
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=18"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "https://github.com/zackarysantana/moondust.git"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"moondust",
|
|
22
|
+
"desktop",
|
|
23
|
+
"launcher"
|
|
24
|
+
],
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@types/node": "^22.10.0"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"extract-zip": "^2.0.1",
|
|
31
|
+
"tar": "^7.4.3"
|
|
32
|
+
}
|
|
33
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022 {{me}}
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|