@feeef.dev/cli 0.2.1 → 0.2.2

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 CHANGED
@@ -1,4 +1,5 @@
1
1
  // src/index.ts
2
+ import { createRequire } from "module";
2
3
  import { Command } from "commander";
3
4
 
4
5
  // src/client.ts
@@ -2768,9 +2769,11 @@ async function runTemplateWatch(dirArg) {
2768
2769
  }
2769
2770
 
2770
2771
  // src/index.ts
2772
+ var require2 = createRequire(import.meta.url);
2773
+ var { version: CLI_VERSION } = require2("../package.json");
2771
2774
  function createProgram() {
2772
2775
  const program = new Command();
2773
- program.name("feeef").description("Feeef developer CLI \u2014 templates today, cloud tools tomorrow").version("0.2.0").hook("preAction", (thisCommand) => {
2776
+ program.name("feeef").description("Feeef developer CLI \u2014 templates today, cloud tools tomorrow").version(CLI_VERSION).hook("preAction", (thisCommand) => {
2774
2777
  if (thisCommand.args.length === 0) return;
2775
2778
  banner();
2776
2779
  });