@microck/pangram-cli 0.0.0-tegami-trusted-publish-setup → 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/NOTICE.md +8 -0
- package/bin/pangram.js +32 -0
- package/package.json +23 -9
package/NOTICE.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Pangram fox artwork notice
|
|
2
|
+
|
|
3
|
+
The Pangram fox source animation and terminal-cell derivatives are Pangram Labs
|
|
4
|
+
brand artwork. Pangram permits their use in this project. The repository's MIT
|
|
5
|
+
license does not cover them.
|
|
6
|
+
|
|
7
|
+
The MIT license still covers the generator, renderer, playback code, and other
|
|
8
|
+
software in this repository.
|
package/bin/pangram.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { spawnSync } from "node:child_process";
|
|
3
|
+
import { createRequire } from "node:module";
|
|
4
|
+
|
|
5
|
+
const platform = `${process.platform}-${process.arch}`;
|
|
6
|
+
const packageName = `@microck/pangram-cli-${platform}`;
|
|
7
|
+
const require = createRequire(import.meta.url);
|
|
8
|
+
const manifest = require("../package.json");
|
|
9
|
+
if (!Object.hasOwn(manifest.optionalDependencies, packageName)) {
|
|
10
|
+
console.error(`pangram: unsupported platform ${platform}`);
|
|
11
|
+
process.exit(1);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
let executable;
|
|
15
|
+
try {
|
|
16
|
+
executable = require.resolve(
|
|
17
|
+
`${packageName}/bin/${process.platform === "win32" ? "pangram.exe" : "pangram"}`,
|
|
18
|
+
);
|
|
19
|
+
} catch {
|
|
20
|
+
console.error(`pangram: required platform package ${packageName} is not installed`);
|
|
21
|
+
process.exit(1);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const child = spawnSync(executable, process.argv.slice(2), { stdio: "inherit" });
|
|
25
|
+
if (child.error) {
|
|
26
|
+
console.error(`pangram: could not start the platform executable: ${child.error.message}`);
|
|
27
|
+
process.exit(1);
|
|
28
|
+
}
|
|
29
|
+
if (child.signal) {
|
|
30
|
+
process.kill(process.pid, child.signal);
|
|
31
|
+
}
|
|
32
|
+
process.exit(child.status ?? 1);
|
package/package.json
CHANGED
|
@@ -1,13 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microck/pangram-cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
-
},
|
|
9
|
-
"keywords": [],
|
|
10
|
-
"author": "",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Unofficial Pangram terminal client",
|
|
11
5
|
"license": "MIT",
|
|
12
|
-
"
|
|
6
|
+
"repository": "https://github.com/Microck/pangram-cli",
|
|
7
|
+
"bin": {
|
|
8
|
+
"pangram": "bin/pangram.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"bin",
|
|
12
|
+
"NOTICE.md"
|
|
13
|
+
],
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": ">=20"
|
|
16
|
+
},
|
|
17
|
+
"optionalDependencies": {
|
|
18
|
+
"@microck/pangram-cli-darwin-arm64": "0.1.1",
|
|
19
|
+
"@microck/pangram-cli-darwin-x64": "0.1.1",
|
|
20
|
+
"@microck/pangram-cli-linux-arm64": "0.1.1",
|
|
21
|
+
"@microck/pangram-cli-linux-x64": "0.1.1",
|
|
22
|
+
"@microck/pangram-cli-win32-x64": "0.1.1"
|
|
23
|
+
},
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
}
|
|
13
27
|
}
|