pinsay-cli 0.6.4 → 0.6.6
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 +2 -1
- package/dist/cli.js +9 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,8 @@ npx pinsay-cli init
|
|
|
10
10
|
|
|
11
11
|
`init` walks you through everything: server, project, AI tool, and the widget/script snippet to paste into your app. It takes about a minute.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
- `npx pinsay-cli <command>` runs it without installing — but you type the full name every time.
|
|
14
|
+
- `npm i -g pinsay-cli` installs a real `pinsay` command on your PATH (recommended).
|
|
14
15
|
|
|
15
16
|
## Commands
|
|
16
17
|
|
package/dist/cli.js
CHANGED
|
@@ -15,7 +15,7 @@ var init_build_constants = __esm({
|
|
|
15
15
|
"src/build-constants.ts"() {
|
|
16
16
|
"use strict";
|
|
17
17
|
BUILD_DEFAULT_SERVER = true ? "https://api.pinsay.dev" : "https://api.pinsay.dev";
|
|
18
|
-
BUILD_CLI_VERSION = true ? "0.6.
|
|
18
|
+
BUILD_CLI_VERSION = true ? "0.6.6" : "0.0.0-dev";
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
|
|
@@ -2519,6 +2519,14 @@ async function widgetCheck(cwd2, config = {}, prefix = "") {
|
|
|
2519
2519
|
}
|
|
2520
2520
|
const detection = await detectStack(cwd2).catch(() => null);
|
|
2521
2521
|
const candidates = [config.htmlPath, detection?.htmlPath, "index.html", "public/index.html", "src/index.html"].filter(Boolean);
|
|
2522
|
+
try {
|
|
2523
|
+
for (const entry of await fs11.readdir(cwd2, { withFileTypes: true })) {
|
|
2524
|
+
if (entry.isDirectory() && !entry.name.startsWith(".")) {
|
|
2525
|
+
candidates.push(join11(entry.name, "index.html"));
|
|
2526
|
+
}
|
|
2527
|
+
}
|
|
2528
|
+
} catch {
|
|
2529
|
+
}
|
|
2522
2530
|
for (const rel of candidates) {
|
|
2523
2531
|
try {
|
|
2524
2532
|
const html = await fs11.readFile(join11(cwd2, rel), "utf8");
|
package/package.json
CHANGED