@mxfb/cli 0.0.20 → 0.0.31

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.
@@ -0,0 +1 @@
1
+ 0.0.31
package/cli/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import t from"node:process";import{promises as r}from"node:fs";import a from"node:url";import i from"node:path";var e=a.fileURLToPath(import.meta.url),m=i.dirname(e),l=t.argv.at(2)?.trim();if(l==="--list"){let o=i.join(m,"assets/list.txt"),s=await r.readFile(o,{encoding:"utf-8"});console.log(s),t.exit(0)}
2
+ import s from"node:process";import{promises as a}from"node:fs";import e from"node:url";import t from"node:path";import{program as i}from"commander";var m=e.fileURLToPath(import.meta.url),n=t.dirname(m);i.name("@mxfb-cli/cli").description("The home of @mxfb/cli's project").option("-v, --version","print program's version").action((...o)=>{console.log(o)});i.command("list").description("list all the available commands").action(async()=>{let o=t.join(n,"assets/list.txt"),r=await a.readFile(o,{encoding:"utf-8"});console.log(r)});i.parse(s.argv);
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import e from"node:process";import{existsSync as m}from"node:fs";import r from"node:url";import t from"node:path";var s=e.cwd(),i=r.fileURLToPath(import.meta.url),a=t.dirname(i),o=t.join(a,"assets/template");m(o)||(console.error(`Could not find the template to copy at ${o}`),e.exit(1));console.log("cp",o,"to",t.join(s,"template"));
2
+ import e from"node:process";import{existsSync as l}from"node:fs";import m from"node:url";import t from"node:path";var s=e.cwd(),n=m.fileURLToPath(import.meta.url),r=t.dirname(n),o=t.join(r,"assets/template");console.log("-----");console.log("cp",o,"to",t.join(s,"template"));console.log("-----");l(o)||(console.error(`Could not find the template to copy at ${o}`),e.exit(1));console.log("cp",o,"to",t.join(s,"template"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mxfb/cli",
3
- "version": "0.0.20",
3
+ "version": "0.0.31",
4
4
  "description": "",
5
5
  "author": "Maxime Fabas",
6
6
  "license": "ISC",
@@ -15,12 +15,15 @@
15
15
  "cli": "./cli/index.js",
16
16
  "make-html": "./make-html/index.js"
17
17
  },
18
+ "dependencies": {
19
+ "commander": "^12.0.0"
20
+ },
18
21
  "devDependencies": {
22
+ "@commander-js/extra-typings": "^12.0.1",
19
23
  "@mxfb/tools": "^0.0.16",
20
24
  "@types/node": "^20.11.30",
21
25
  "@types/prompts": "^2.4.9",
22
26
  "@types/semver": "^7.5.8",
23
- "camelcase": "^8.0.0",
24
27
  "esbuild": "^0.20.2",
25
28
  "prompts": "^2.4.2",
26
29
  "semver": "^7.6.0",