@nuxt/module-builder
Version:
Complete solution for building Nuxt modules
20 lines (19 loc) • 535 B
JavaScript
import { resolve } from "pathe";
//#region src/commands/_shared.ts
const sharedArgs = {
cwd: {
type: "string",
valueHint: "directory",
description: "Specify the working directory, this takes precedence over ROOTDIR (default: `.`)",
default: void 0
},
rootDir: {
type: "positional",
description: "Specifies the working directory (default: `.`)",
required: false,
default: "."
}
};
const resolveCwdArg = (args) => resolve(args.cwd || args.rootDir || ".");
//#endregion
export { sharedArgs as n, resolveCwdArg as t };