I have a problem when i use prog module in caporal. i cannot use it because exist error 'cannot find module prog' . I have import with use 'import prog from "caporal"'. This is my code
#!/usr/bin/env node
const { program } = require("@caporal/core");
import prog from "caporal"; //not work
program
.command("random", "Generate random alphanumeric")
.option("--length", "length of string",prog.Int, 32)
// .option("--letters", "allow letters or not", true)
.action(({ logger, args, options }) => {
// logger.info(options.length)
let leng = options.length;
logger.info(leng);
});
program.run();
how i call prog module so that i cannot get error 'cannot find module prog'. Now i use latest version caporal