create-absolutejs 0.0.4 → 0.0.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.
Files changed (2) hide show
  1. package/dist/index.js +32 -33
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env node
2
- // @bun
3
2
  var __create = Object.create;
4
3
  var __getProtoOf = Object.getPrototypeOf;
5
4
  var __defProp = Object.defineProperty;
@@ -147,15 +146,15 @@ var require_picocolors = __commonJS((exports, module) => {
147
146
  });
148
147
 
149
148
  // index.ts
150
- import { argv, exit } from "process";
151
- import { parseArgs } from "util";
149
+ import { argv, exit } from "node:process";
150
+ import { parseArgs } from "node:util";
152
151
 
153
152
  // node_modules/@clack/core/dist/index.mjs
154
153
  var import_sisteransi = __toESM(require_src(), 1);
155
- import { stdin as j, stdout as M } from "process";
154
+ import { stdin as j, stdout as M } from "node:process";
156
155
  var import_picocolors = __toESM(require_picocolors(), 1);
157
- import O from "readline";
158
- import { Writable as X } from "stream";
156
+ import O from "node:readline";
157
+ import { Writable as X } from "node:stream";
159
158
  function DD({ onlyFirst: e = false } = {}) {
160
159
  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("|");
161
160
  return new RegExp(t, e ? undefined : "g");
@@ -275,7 +274,7 @@ function CD() {
275
274
  }, 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;
276
275
  }
277
276
  var ED = CD();
278
- var d = new Set(["\x1B", "\x9B"]);
277
+ var d = new Set(["\x1B", "›"]);
279
278
  var oD = 39;
280
279
  var y = "\x07";
281
280
  var V = "[";
@@ -553,7 +552,7 @@ class RD extends x {
553
552
  if (this.state === "submit")
554
553
  return this.value;
555
554
  if (this.cursor >= this.value.length)
556
- return `${this.value}\u2588`;
555
+ return `${this.value}█`;
557
556
  const u = this.value.slice(0, this.cursor), [t, ...F] = this.value.slice(this.cursor);
558
557
  return `${u}${import_picocolors.default.inverse(t)}${F.join("")}`;
559
558
  }
@@ -570,33 +569,33 @@ class RD extends x {
570
569
  // node_modules/@clack/prompts/dist/index.mjs
571
570
  var import_picocolors2 = __toESM(require_picocolors(), 1);
572
571
  var import_sisteransi2 = __toESM(require_src(), 1);
573
- import y2 from "process";
572
+ import y2 from "node:process";
574
573
  function ce() {
575
574
  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";
576
575
  }
577
576
  var V2 = ce();
578
577
  var u = (t, n) => V2 ? t : n;
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");
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");
600
599
  var b2 = (t) => {
601
600
  switch (t) {
602
601
  case "initial":
@@ -887,9 +886,9 @@ if (pD(authProvider))
887
886
  var plugins = await fe({
888
887
  message: "Select additional Elysia plugins (space to select, enter to submit):",
889
888
  options: [
890
- { label: cyan("\u2699\uFE0F @elysia/cors"), value: "cors" },
889
+ { label: cyan("⚙️ @elysia/cors"), value: "cors" },
891
890
  { label: cyan("\uD83D\uDCE6 @elysia/static"), value: "static" },
892
- { label: green("\uD83D\uDEE0\uFE0F elysia-rate-limit"), value: "rateLimit" },
891
+ { label: green("\uD83D\uDEE0 elysia-rate-limit"), value: "rateLimit" },
893
892
  { label: green("\uD83D\uDCD1 elysia-swagger"), value: "swagger" }
894
893
  ],
895
894
  required: false
@@ -909,6 +908,6 @@ Se(`
909
908
  Plugins: ${plugins.length ? plugins.join(", ") : "None"}
910
909
 
911
910
  Framework Config:
912
- ${configs.map(({ framework, pages, index }) => `${frameworkNames[framework] ?? framework} \u21D2 pages: ${pages}, index: ${index}`).join(`
911
+ ${configs.map(({ framework, pages, index }) => `${frameworkNames[framework] ?? framework} pages: ${pages}, index: ${index}`).join(`
913
912
  `)}
914
913
  `);
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.4",
4
+ "version": "0.0.6",
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=bun --external elysia && tsc --emitDeclarationOnly --project tsconfig.json",
16
+ "build": "rm -rf dist && bun build index.ts --outdir dist --target=node && 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",