@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/bin.js +4 -1
- package/dist/bin.js.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -127,6 +127,7 @@ function loadEnvFiles() {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
// src/index.ts
|
|
130
|
+
import { createRequire } from "module";
|
|
130
131
|
import { Command } from "commander";
|
|
131
132
|
|
|
132
133
|
// src/client.ts
|
|
@@ -2788,9 +2789,11 @@ async function runTemplateWatch(dirArg) {
|
|
|
2788
2789
|
}
|
|
2789
2790
|
|
|
2790
2791
|
// src/index.ts
|
|
2792
|
+
var require2 = createRequire(import.meta.url);
|
|
2793
|
+
var { version: CLI_VERSION } = require2("../package.json");
|
|
2791
2794
|
function createProgram() {
|
|
2792
2795
|
const program = new Command();
|
|
2793
|
-
program.name("feeef").description("Feeef developer CLI \u2014 templates today, cloud tools tomorrow").version(
|
|
2796
|
+
program.name("feeef").description("Feeef developer CLI \u2014 templates today, cloud tools tomorrow").version(CLI_VERSION).hook("preAction", (thisCommand) => {
|
|
2794
2797
|
if (thisCommand.args.length === 0) return;
|
|
2795
2798
|
banner();
|
|
2796
2799
|
});
|