Skip to content

Commit

Permalink
fix: Dependency Upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
bcanfield committed Aug 16, 2023
1 parent 098a92e commit 6804a36
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ export async function run(options?: GeneratorOptions) {
const includedModels = cliArgs.include
? cliArgs.Include.split(",")
: options?.generator.config.include
? options?.generator.config.include.split(",")
? String(options.generator.config.include).split(",")
: [];
const excludedModels =
includedModels.length > 0
? []
: cliArgs?.exclude
? cliArgs.exclude.split(",")
: options?.generator.config.exclude
? options?.generator.config.exclude.split(",")
? String(options?.generator.config.exclude).split(",")
: [];

console.log(
Expand Down
5 changes: 2 additions & 3 deletions src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import prettier from "prettier";
import { RouteObject } from "./generators";
import { ESLint } from "eslint";
import chalk from "chalk";
import * as fse from "fs-extra";

export function copyAndRenameFile(
sourceFilePath: string,
Expand Down Expand Up @@ -238,7 +237,7 @@ export const formatNextJsFilesRecursively = async (directory: string) => {
const fileContents = await fs.promises.readFile(entryPath, "utf8");

// Format the file contents using Prettier
const formattedContents = prettier.format(fileContents, {
const formattedContents = await prettier.format(fileContents, {
parser: "babel-ts", // Specify the parser according to your project's configuration
});

Expand Down Expand Up @@ -322,7 +321,7 @@ export async function formatDirectory(directoryPath: string): Promise<void> {
results.map(async (result) => {
const filePath = result.filePath;
const fileContent = await fs.promises.readFile(filePath, "utf-8");
const formattedContent = prettier.format(fileContent, {
const formattedContent = await prettier.format(fileContent, {
...prettierConfig,
filepath: filePath,
});
Expand Down
15 changes: 8 additions & 7 deletions templateRoot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,21 @@
},
"dependencies": {
"@prisma/client": "5.1.1",
"@types/node": "20.3.1",
"@types/react": "18.2.12",
"@types/react-dom": "18.2.5",
"clsx": "^2.0.0",
"next": "13.4.5",
"next": "13.4.16",
"prisma": "5.1.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"typescript": "5.1.3"
"typescript": "5.1.6"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.4",
"autoprefixer": "^10.4.14",
"postcss": "^8.4.27",
"@types/node": "20.5.0",
"@types/react": "18.2.20",
"@types/react-dom": "18.2.7",
"autoprefixer": "^10.4.15",
"nexquik": "^2.0.3",
"postcss": "^8.4.28",
"tailwindcss": "^3.3.3"
}
}

0 comments on commit 6804a36

Please sign in to comment.