create-jd-app
Version:
Create modern type safed Solid web application within seconds
13 lines (12 loc) • 446 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const getAppLocation = (ctx) => {
const usingPRPC = ctx.installers.includes("pRPC");
const usingAuth = ctx.installers.includes("AuthJS");
if (usingPRPC && usingAuth)
return `${ctx.templateDir}/app/with-auth-prpc.tsx`;
else if (usingPRPC)
return `${ctx.templateDir}/app/with-prpc.tsx`;
return ``;
};
exports.default = getAppLocation;