Skip to content

Commit

Permalink
fix pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Apr 6, 2020
1 parent 452bcbf commit cc1e50d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cli/prisma2/src/Version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ export class Version implements Command {
private constructor() {}
async parse(argv: string[]) {
const platform = await getPlatform()
const parentDir = fs.readdirSync(path.join(__dirname, '../'))
debug({ parentDir })
debug({ __dirname })

const introspectionEngine = await this.resolveEngine(
'introspection-engine',
Expand Down
2 changes: 1 addition & 1 deletion cli/sdk/src/resolveBinary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async function maybeCopyToTmp(file: string): Promise<string> {
// to make this work, we need to copy the binary to /tmp and execute it from there

const dir = eval('__dirname')
if (dir.startsWith('/snapshot/prisma2')) {
if (dir.startsWith('/snapshot/')) {
const targetDir = path.join(tempDir, 'prisma-binaries')
await makeDir(targetDir)
const target = path.join(targetDir, path.basename(file))
Expand Down

0 comments on commit cc1e50d

Please sign in to comment.