mapsource-node 0.1.0 → 0.1.1
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/bin/mapsource-node.mjs +1 -4
- package/package.json +27 -8
package/bin/mapsource-node.mjs
CHANGED
|
@@ -10,10 +10,7 @@ const [command, ...args] = process.argv.slice(2);
|
|
|
10
10
|
|
|
11
11
|
try {
|
|
12
12
|
if (command === "--version" && !args.length) console.log(`mapsource-node ${pkg.version}`);
|
|
13
|
-
else if (command === "--
|
|
14
|
-
const { readTelemetry } = await import("../src/telemetry.ts");
|
|
15
|
-
console.log(JSON.stringify(await readTelemetry(), null, 2));
|
|
16
|
-
} else if (command === undefined || command === "--self-test") {
|
|
13
|
+
else if (command === undefined || command === "--self-test" || command === "--json") {
|
|
17
14
|
if (command === undefined && await (await import("../src/commands.mjs")).firstRun()) process.exit(0);
|
|
18
15
|
const candidates = { x64: "@oven/bun-linux-x64-baseline", arm64: "@oven/bun-linux-aarch64" };
|
|
19
16
|
const platform = candidates[process.arch];
|
package/package.json
CHANGED
|
@@ -1,16 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mapsource-node",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Mapsource node operations and enrollment",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
|
-
"repository": {
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/robit-man/mapsource-node.git"
|
|
10
|
+
},
|
|
8
11
|
"homepage": "https://mapsource.io",
|
|
9
|
-
"bin": {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
12
|
+
"bin": {
|
|
13
|
+
"mapsource-node": "bin/mapsource-node.mjs"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"bin/",
|
|
17
|
+
"src/",
|
|
18
|
+
"protocol/"
|
|
19
|
+
],
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=24.14.0"
|
|
22
|
+
},
|
|
23
|
+
"os": [
|
|
24
|
+
"linux"
|
|
25
|
+
],
|
|
26
|
+
"cpu": [
|
|
27
|
+
"x64",
|
|
28
|
+
"arm64"
|
|
29
|
+
],
|
|
14
30
|
"packageManager": "npm@11.9.0",
|
|
15
31
|
"scripts": {
|
|
16
32
|
"check": "npm run typecheck && npm test && npm run test:tui",
|
|
@@ -30,5 +46,8 @@
|
|
|
30
46
|
"@types/bun": "1.3.14",
|
|
31
47
|
"typescript": "6.0.3"
|
|
32
48
|
},
|
|
33
|
-
"publishConfig": {
|
|
49
|
+
"publishConfig": {
|
|
50
|
+
"access": "public",
|
|
51
|
+
"registry": "https://registry.npmjs.org/"
|
|
52
|
+
}
|
|
34
53
|
}
|