stranger-quarkdown 4.0.0-alpha.0 → 4.0.0-alpha.2
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/squarkdown +32 -0
- package/bin/squarkdown-linux +0 -0
- package/bin/squarkdown-win.exe +0 -0
- package/package.json +4 -4
- package/bin/squarkdown.exe +0 -0
package/bin/squarkdown
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import * as path from "node:path";
|
|
4
|
+
import { platform } from "node:process";
|
|
5
|
+
import { spawn } from "node:child_process";
|
|
6
|
+
import { fileURLToPath } from "node:url";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
let bin;
|
|
10
|
+
|
|
11
|
+
switch (platform) {
|
|
12
|
+
case "linux": bin = "squarkdown-linux"; break;
|
|
13
|
+
case "win32": bin = "squarkdown-win.exe"; break;
|
|
14
|
+
default:
|
|
15
|
+
console.error("Squarkdown only supports 'win32' and 'linux', sorry =(");
|
|
16
|
+
process.exit(1);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
let folder = path.dirname(fileURLToPath(import.meta.url));
|
|
20
|
+
|
|
21
|
+
let squarkup = spawn(`${folder}/${bin}`, process.argv.slice(2), {
|
|
22
|
+
stdio: "inherit",
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
squarkup.on("error", e => {
|
|
26
|
+
console.error(e);
|
|
27
|
+
process.exit(1);
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
squarkup.on("exit", code => {
|
|
31
|
+
process.exit(code ?? 1);
|
|
32
|
+
});
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stranger-quarkdown",
|
|
3
3
|
"author": "Sup#2.0",
|
|
4
|
-
"version": "4.0.0-alpha.
|
|
4
|
+
"version": "4.0.0-alpha.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
|
|
7
7
|
"description": "Markdown preprocessing for SvelteKit projects",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"sideEffects": false,
|
|
23
23
|
"files": [
|
|
24
|
-
"./bin/
|
|
24
|
+
"./bin/",
|
|
25
25
|
"index.d.ts",
|
|
26
26
|
"package.json",
|
|
27
27
|
"LICENCE"
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"bin": {
|
|
35
|
-
"squarkdown": "bin/squarkdown
|
|
35
|
+
"squarkdown": "bin/squarkdown"
|
|
36
36
|
},
|
|
37
|
-
"os": ["win32"],
|
|
37
|
+
"os": ["win32", "linux"],
|
|
38
38
|
"cpu": ["x64"],
|
|
39
39
|
|
|
40
40
|
"scripts": {
|
package/bin/squarkdown.exe
DELETED
|
Binary file
|