create-pds 0.0.7 → 0.0.8
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/dist/index.js +20 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2510,6 +2510,20 @@ ${J}${i$1.trimStart()}`), r$2 = 3 + stripVTControlCharacters(i$1.trimStart()).le
|
|
|
2510
2510
|
* create-pds - Create a new AT Protocol PDS on Cloudflare Workers
|
|
2511
2511
|
*/
|
|
2512
2512
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
2513
|
+
const BANNER = `
|
|
2514
|
+
☁️ ☁️ ☁️ ☁️ ☁️
|
|
2515
|
+
☁️ ☁️ ☁️ ☁️ ☁️ ☁️ ☁️
|
|
2516
|
+
☁️ ☁️ ☁️ ☁️ ☁️ ☁️ ☁️
|
|
2517
|
+
|
|
2518
|
+
██████╗██╗██████╗ ██████╗ ██╗ ██╗███████╗
|
|
2519
|
+
██╔════╝██║██╔══██╗██╔══██╗██║ ██║██╔════╝
|
|
2520
|
+
██║ ██║██████╔╝██████╔╝██║ ██║███████╗
|
|
2521
|
+
██║ ██║██╔══██╗██╔══██╗██║ ██║╚════██║
|
|
2522
|
+
╚██████╗██║██║ ██║██║ ██║╚██████╔╝███████║
|
|
2523
|
+
╚═════╝╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝
|
|
2524
|
+
|
|
2525
|
+
☁️ The lightest PDS in the Atmosphere ☁️
|
|
2526
|
+
`;
|
|
2513
2527
|
function detectPackageManager() {
|
|
2514
2528
|
const userAgent = process.env.npm_config_user_agent || "";
|
|
2515
2529
|
if (userAgent.startsWith("yarn")) return "yarn";
|
|
@@ -2612,8 +2626,8 @@ runMain(defineCommand({
|
|
|
2612
2626
|
},
|
|
2613
2627
|
async run({ args }) {
|
|
2614
2628
|
const nonInteractive = args.yes || !process.stdout.isTTY;
|
|
2615
|
-
|
|
2616
|
-
|
|
2629
|
+
console.log(BANNER);
|
|
2630
|
+
Ie("Let's build your new home");
|
|
2617
2631
|
M.warn("This is experimental software. Don't migrate your main account yet.");
|
|
2618
2632
|
if (!nonInteractive) M.message("Tip: Use --yes to skip prompts");
|
|
2619
2633
|
let projectName = args.name;
|
|
@@ -2744,8 +2758,11 @@ runMain(defineCommand({
|
|
|
2744
2758
|
}
|
|
2745
2759
|
} catch {
|
|
2746
2760
|
M.warning("Failed to run pds init. You can run it manually later:");
|
|
2747
|
-
M.info(` cd ${projectName} && ${pm}${pm === "npm" ? "run" : ""} pds init`);
|
|
2761
|
+
M.info(` cd ${projectName} && ${pm}${pm === "npm" ? " run" : ""} pds init`);
|
|
2748
2762
|
}
|
|
2763
|
+
} else if (!args["skip-init"] && args["skip-install"]) {
|
|
2764
|
+
M.info("Run pds init after installing dependencies:");
|
|
2765
|
+
M.info(` cd ${projectName} && ${pm}${pm === "npm" ? " run" : ""} pds init`);
|
|
2749
2766
|
}
|
|
2750
2767
|
Me([
|
|
2751
2768
|
`cd ${projectName}`,
|