Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ex7r3me committed Nov 22, 2024
1 parent e97aca8 commit 52d8eae
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion commands/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const generate = async () => {
try {
const resourcesRaw = await resourcePrompt();
const resources = resourcesRaw.split(",").map((res) => res.trim());
const projectPath = await promptProjectPath();
const projectPath = './'

for (const resource of resources) {
const schema = await getSchema(resource);
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lolocompany/ra-lolo-cli",
"version": "0.2.0",
"version": "0.2.1",
"description": "CLI tool to build react-admin components based on json-schema",
"main": "index.js",
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion services/compileService.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import handlebars from "handlebars";
import { pascalCase } from "change-case";
import { fixImports } from "../transformers/fixImport.js";

export function generateFiles(resourceName, components, projectPath = "./output") {
export function generateFiles(resourceName, components, projectPath = "./") {
const resourceNamePascalCase = pascalCase(resourceName);
const templateDir = "./templates/resource";
const outputDir = projectPath;
Expand Down
1 change: 0 additions & 1 deletion utils/config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import dotenv from "dotenv";

dotenv.config();
console.log(process.env.LO_API_KEY)
export const config = {
apiKey: process.env.LO_API_KEY,
baseUrl: process.env.LO_API
Expand Down

0 comments on commit 52d8eae

Please sign in to comment.