@berlysia/vertical-writing-slide-system 0.0.1 → 0.0.3
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/cli.js +6 -1
- package/package.json +2 -2
package/cli.js
CHANGED
|
@@ -23,7 +23,7 @@ async function runBuildAll() {
|
|
|
23
23
|
"scripts",
|
|
24
24
|
"build-pages.ts",
|
|
25
25
|
);
|
|
26
|
-
const command = `
|
|
26
|
+
const command = `npx tsx ${buildPagesPath}`;
|
|
27
27
|
|
|
28
28
|
try {
|
|
29
29
|
execSync(command, { stdio: "inherit" });
|
|
@@ -90,6 +90,11 @@ async function main() {
|
|
|
90
90
|
const [command] = positionals;
|
|
91
91
|
|
|
92
92
|
if (!command || !commands[command]) {
|
|
93
|
+
if (!command) {
|
|
94
|
+
console.error("Error: Command is required");
|
|
95
|
+
} else if (!commands[command]) {
|
|
96
|
+
console.error(`Error: Unknown command "${command}"`);
|
|
97
|
+
}
|
|
93
98
|
printUsage();
|
|
94
99
|
process.exit(1);
|
|
95
100
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@berlysia/vertical-writing-slide-system",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
|
-
".": "./cli.js",
|
|
7
6
|
"vertical-slides": "./cli.js"
|
|
8
7
|
},
|
|
9
8
|
"files": [
|
|
@@ -21,6 +20,7 @@
|
|
|
21
20
|
"rehype-stringify": "^10.0.1",
|
|
22
21
|
"remark-parse": "^11.0.0",
|
|
23
22
|
"remark-rehype": "^11.1.1",
|
|
23
|
+
"tsx": "^4.19.3",
|
|
24
24
|
"unified": "^11.0.5",
|
|
25
25
|
"vfile": "^6.0.3"
|
|
26
26
|
},
|