create-absolutejs 0.0.5 → 0.0.7

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.
Files changed (2) hide show
  1. package/dist/index.js +34 -33
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env bun
2
+ // @bun
2
3
  var __create = Object.create;
3
4
  var __getProtoOf = Object.getPrototypeOf;
4
5
  var __defProp = Object.defineProperty;
@@ -146,15 +147,15 @@ var require_picocolors = __commonJS((exports, module) => {
146
147
  });
147
148
 
148
149
  // index.ts
149
- import { argv, exit } from "node:process";
150
- import { parseArgs } from "node:util";
150
+ import { argv, exit } from "process";
151
+ import { parseArgs } from "util";
151
152
 
152
153
  // node_modules/@clack/core/dist/index.mjs
153
154
  var import_sisteransi = __toESM(require_src(), 1);
154
- import { stdin as j, stdout as M } from "node:process";
155
+ import { stdin as j, stdout as M } from "process";
155
156
  var import_picocolors = __toESM(require_picocolors(), 1);
156
- import O from "node:readline";
157
- import { Writable as X } from "node:stream";
157
+ import O from "readline";
158
+ import { Writable as X } from "stream";
158
159
  function DD({ onlyFirst: e = false } = {}) {
159
160
  const t = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
160
161
  return new RegExp(t, e ? undefined : "g");
@@ -274,7 +275,7 @@ function CD() {
274
275
  }, enumerable: false }, rgbToAnsi: { value: (u, t, F) => C.ansi256ToAnsi(C.rgbToAnsi256(u, t, F)), enumerable: false }, hexToAnsi: { value: (u) => C.ansi256ToAnsi(C.hexToAnsi256(u)), enumerable: false } }), C;
275
276
  }
276
277
  var ED = CD();
277
- var d = new Set(["\x1B", "›"]);
278
+ var d = new Set(["\x1B", "\x9B"]);
278
279
  var oD = 39;
279
280
  var y = "\x07";
280
281
  var V = "[";
@@ -552,7 +553,7 @@ class RD extends x {
552
553
  if (this.state === "submit")
553
554
  return this.value;
554
555
  if (this.cursor >= this.value.length)
555
- return `${this.value}█`;
556
+ return `${this.value}\u2588`;
556
557
  const u = this.value.slice(0, this.cursor), [t, ...F] = this.value.slice(this.cursor);
557
558
  return `${u}${import_picocolors.default.inverse(t)}${F.join("")}`;
558
559
  }
@@ -569,33 +570,33 @@ class RD extends x {
569
570
  // node_modules/@clack/prompts/dist/index.mjs
570
571
  var import_picocolors2 = __toESM(require_picocolors(), 1);
571
572
  var import_sisteransi2 = __toESM(require_src(), 1);
572
- import y2 from "node:process";
573
+ import y2 from "process";
573
574
  function ce() {
574
575
  return y2.platform !== "win32" ? y2.env.TERM !== "linux" : !!y2.env.CI || !!y2.env.WT_SESSION || !!y2.env.TERMINUS_SUBLIME || y2.env.ConEmuTask === "{cmd::Cmder}" || y2.env.TERM_PROGRAM === "Terminus-Sublime" || y2.env.TERM_PROGRAM === "vscode" || y2.env.TERM === "xterm-256color" || y2.env.TERM === "alacritty" || y2.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
575
576
  }
576
577
  var V2 = ce();
577
578
  var u = (t, n) => V2 ? t : n;
578
- var le = u("", "*");
579
- var L2 = u("", "x");
580
- var W2 = u("", "x");
581
- var C2 = u("", "o");
582
- var ue = u("", "T");
583
- var o = u("", "|");
584
- var d2 = u("", "");
585
- var k2 = u("", ">");
586
- var P2 = u("", " ");
587
- var A2 = u("", "[]");
588
- var T = u("", "[+]");
589
- var F = u("", "[ ]");
590
- var $e = u("", "");
591
- var _2 = u("", "-");
592
- var me = u("", "+");
593
- var de = u("", "+");
594
- var pe = u("", "+");
595
- var q = u("", "");
596
- var D = u("", "*");
597
- var U = u("", "!");
598
- var K2 = u("", "x");
579
+ var le = u("\u25C6", "*");
580
+ var L2 = u("\u25A0", "x");
581
+ var W2 = u("\u25B2", "x");
582
+ var C2 = u("\u25C7", "o");
583
+ var ue = u("\u250C", "T");
584
+ var o = u("\u2502", "|");
585
+ var d2 = u("\u2514", "\u2014");
586
+ var k2 = u("\u25CF", ">");
587
+ var P2 = u("\u25CB", " ");
588
+ var A2 = u("\u25FB", "[\u2022]");
589
+ var T = u("\u25FC", "[+]");
590
+ var F = u("\u25FB", "[ ]");
591
+ var $e = u("\u25AA", "\u2022");
592
+ var _2 = u("\u2500", "-");
593
+ var me = u("\u256E", "+");
594
+ var de = u("\u251C", "+");
595
+ var pe = u("\u256F", "+");
596
+ var q = u("\u25CF", "\u2022");
597
+ var D = u("\u25C6", "*");
598
+ var U = u("\u25B2", "!");
599
+ var K2 = u("\u25A0", "x");
599
600
  var b2 = (t) => {
600
601
  switch (t) {
601
602
  case "initial":
@@ -886,9 +887,9 @@ if (pD(authProvider))
886
887
  var plugins = await fe({
887
888
  message: "Select additional Elysia plugins (space to select, enter to submit):",
888
889
  options: [
889
- { label: cyan("⚙️ @elysia/cors"), value: "cors" },
890
+ { label: cyan("\u2699\uFE0F @elysia/cors"), value: "cors" },
890
891
  { label: cyan("\uD83D\uDCE6 @elysia/static"), value: "static" },
891
- { label: green("\uD83D\uDEE0 elysia-rate-limit"), value: "rateLimit" },
892
+ { label: green("\uD83D\uDEE0\uFE0F elysia-rate-limit"), value: "rateLimit" },
892
893
  { label: green("\uD83D\uDCD1 elysia-swagger"), value: "swagger" }
893
894
  ],
894
895
  required: false
@@ -908,6 +909,6 @@ Se(`
908
909
  Plugins: ${plugins.length ? plugins.join(", ") : "None"}
909
910
 
910
911
  Framework Config:
911
- ${configs.map(({ framework, pages, index }) => `${frameworkNames[framework] ?? framework} pages: ${pages}, index: ${index}`).join(`
912
+ ${configs.map(({ framework, pages, index }) => `${frameworkNames[framework] ?? framework} \u21D2 pages: ${pages}, index: ${index}`).join(`
912
913
  `)}
913
914
  `);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-absolutejs",
3
3
  "description": "A CLI tool to create a new AbsoluteJS project",
4
- "version": "0.0.5",
4
+ "version": "0.0.7",
5
5
  "license": "CC BY-NC 4.0",
6
6
  "author": "Alex Kahn",
7
7
  "type": "module",
@@ -13,7 +13,7 @@
13
13
  "dist"
14
14
  ],
15
15
  "scripts": {
16
- "build": "rm -rf dist && bun build index.ts --outdir dist --target=node --external elysia && tsc --emitDeclarationOnly --project tsconfig.json",
16
+ "build": "rm -rf dist && bun build index.ts --outdir dist --target=bun && tsc --emitDeclarationOnly --project tsconfig.json",
17
17
  "test": "echo \"Error: no test specified\" && exit 1",
18
18
  "format": "prettier --write \"./**/*.{js,jsx,ts,tsx,css,json}\"",
19
19
  "dev": "bun run index.ts",