@curenorway/kode-cli 1.0.3 → 1.0.4
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 +4 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
// src/cli.ts
|
|
19
19
|
import { Command } from "commander";
|
|
20
20
|
import chalk2 from "chalk";
|
|
21
|
+
import { createRequire } from "module";
|
|
21
22
|
|
|
22
23
|
// src/commands/pages.ts
|
|
23
24
|
import chalk from "chalk";
|
|
@@ -173,8 +174,10 @@ function printPageDetails(context) {
|
|
|
173
174
|
}
|
|
174
175
|
|
|
175
176
|
// src/cli.ts
|
|
177
|
+
var require2 = createRequire(import.meta.url);
|
|
178
|
+
var pkg = require2("../package.json");
|
|
176
179
|
var program = new Command();
|
|
177
|
-
program.name("kode").description("CLI for Cure Kode - manage JS/CSS scripts for Webflow sites").version(
|
|
180
|
+
program.name("kode").description("CLI for Cure Kode - manage JS/CSS scripts for Webflow sites").version(pkg.version);
|
|
178
181
|
program.command("init").description("Initialize Cure Kode in current directory").option("-k, --api-key <key>", "API key").option("-s, --site-slug <slug>", "Site slug").option("-f, --force", "Reinitialize even if already configured").action((options) => {
|
|
179
182
|
initCommand(options);
|
|
180
183
|
});
|