Skip to content

Commit

Permalink
fix(cli): improving install ability in children folder (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
productdevbook committed Dec 12, 2023
1 parent dc6be88 commit ed13da1
Show file tree
Hide file tree
Showing 3 changed files with 262 additions and 19 deletions.
6 changes: 3 additions & 3 deletions packages/cli/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
},
"dependencies": {
"@aws-sdk/client-ses": "^3.465.0",
"@pergel/graphql": "0.0.0",
"drizzle-kit": "^0.20.4",
"drizzle-orm": "^0.29.0",
"@pergel/graphql": "workspace:*",
"drizzle-kit": "^0.20.6",
"drizzle-orm": "^0.29.1",
"postgres": "^3.4.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default defineCommand({
return
}

const readmeString = readFileSync(resolve(file.config.src, 'README.yaml')).toString()
const readmeString = readFileSync(resolve(process.cwd(), file.config.src, 'README.yaml')).toString()

const json = parse(readmeString) as PergelYaml

Expand Down
Loading

0 comments on commit ed13da1

Please sign in to comment.