effing-cloud 0.0.0 → 0.1.1

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/cli.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/cli.ts
4
+ import { createRequire } from "module";
4
5
  import { Command } from "commander";
5
6
 
6
7
  // src/commands/login.ts
@@ -11,8 +12,10 @@ function registerLogin(program2) {
11
12
  }
12
13
 
13
14
  // src/cli.ts
15
+ var require2 = createRequire(import.meta.url);
16
+ var { version } = require2("../package.json");
14
17
  var program = new Command();
15
- program.name("effing-cloud").description("CLI for the effing-cloud platform").version("0.0.0");
18
+ program.name("effing-cloud").description("CLI for the effing-cloud platform").version(version);
16
19
  registerLogin(program);
17
20
  program.parse();
18
21
  //# sourceMappingURL=cli.js.map
package/dist/cli.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/cli.ts","../src/commands/login.ts"],"sourcesContent":["import { Command } from \"commander\";\nimport { registerLogin } from \"./commands/login.js\";\n\nconst program = new Command();\n\nprogram\n .name(\"effing-cloud\")\n .description(\"CLI for the effing-cloud platform\")\n .version(\"0.0.0\");\n\nregisterLogin(program);\n\nprogram.parse();\n","import type { Command } from \"commander\";\n\nexport function registerLogin(program: Command) {\n program\n .command(\"login\")\n .description(\"Authenticate with effing-cloud\")\n .action(() => {\n console.log(\"Login is not yet implemented.\");\n });\n}\n"],"mappings":";;;AAAA,SAAS,eAAe;;;ACEjB,SAAS,cAAcA,UAAkB;AAC9C,EAAAA,SACG,QAAQ,OAAO,EACf,YAAY,gCAAgC,EAC5C,OAAO,MAAM;AACZ,YAAQ,IAAI,+BAA+B;AAAA,EAC7C,CAAC;AACL;;;ADNA,IAAM,UAAU,IAAI,QAAQ;AAE5B,QACG,KAAK,cAAc,EACnB,YAAY,mCAAmC,EAC/C,QAAQ,OAAO;AAElB,cAAc,OAAO;AAErB,QAAQ,MAAM;","names":["program"]}
1
+ {"version":3,"sources":["../src/cli.ts","../src/commands/login.ts"],"sourcesContent":["import { createRequire } from \"node:module\";\nimport { Command } from \"commander\";\nimport { registerLogin } from \"./commands/login.js\";\n\nconst require = createRequire(import.meta.url);\nconst { version } = require(\"../package.json\");\n\nconst program = new Command();\n\nprogram.name(\"effing-cloud\").description(\"CLI for the effing-cloud platform\").version(version);\n\nregisterLogin(program);\n\nprogram.parse();\n","import type { Command } from \"commander\";\n\nexport function registerLogin(program: Command) {\n program\n .command(\"login\")\n .description(\"Authenticate with effing-cloud\")\n .action(() => {\n console.log(\"Login is not yet implemented.\");\n });\n}\n"],"mappings":";;;AAAA,SAAS,qBAAqB;AAC9B,SAAS,eAAe;;;ACCjB,SAAS,cAAcA,UAAkB;AAC9C,EAAAA,SACG,QAAQ,OAAO,EACf,YAAY,gCAAgC,EAC5C,OAAO,MAAM;AACZ,YAAQ,IAAI,+BAA+B;AAAA,EAC7C,CAAC;AACL;;;ADLA,IAAMC,WAAU,cAAc,YAAY,GAAG;AAC7C,IAAM,EAAE,QAAQ,IAAIA,SAAQ,iBAAiB;AAE7C,IAAM,UAAU,IAAI,QAAQ;AAE5B,QAAQ,KAAK,cAAc,EAAE,YAAY,mCAAmC,EAAE,QAAQ,OAAO;AAE7F,cAAc,OAAO;AAErB,QAAQ,MAAM;","names":["program","require"]}
package/package.json CHANGED
@@ -1,26 +1,28 @@
1
1
  {
2
2
  "name": "effing-cloud",
3
- "version": "0.0.0",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {
7
- "effing-cloud": "./dist/cli.js"
7
+ "effing-cloud": "dist/cli.js"
8
8
  },
9
- "files": ["dist"],
9
+ "files": [
10
+ "dist"
11
+ ],
10
12
  "publishConfig": {
11
13
  "access": "public"
12
14
  },
13
- "scripts": {
14
- "build": "tsup",
15
- "dev": "tsx src/cli.ts",
16
- "typecheck": "tsc --noEmit"
17
- },
18
15
  "dependencies": {
19
16
  "commander": "^13.0.0"
20
17
  },
21
18
  "devDependencies": {
22
19
  "tsup": "^8.0.0",
23
20
  "tsx": "^4.19.3",
24
- "typescript": "catalog:"
21
+ "typescript": "^5.7.2"
22
+ },
23
+ "scripts": {
24
+ "build": "tsup",
25
+ "dev": "tsx src/cli.ts",
26
+ "typecheck": "tsc --noEmit"
25
27
  }
26
- }
28
+ }