Skip to content

Commit

Permalink
fix introspection
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Jun 27, 2019
1 parent 14bfdf9 commit fde6ef8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
3 changes: 2 additions & 1 deletion introspection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"request": "^2.88.0",
"scuid": "^1.1.0",
"string-width": "^4.1.0",
"strip-ansi": "^5.2.0"
"strip-ansi": "^5.2.0",
"tmp": "^0.1.0"
},
"scripts": {
"build": "tsc -d && chmod +x dist/bin.js",
Expand Down
12 changes: 6 additions & 6 deletions introspection/src/loader.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as tar from 'tar'
import * as tmp from 'tmp'
import tar from 'tar'
import tmp from 'tmp'
import github from 'parse-github-url'
import * as fs from 'fs'
import fs from 'fs'
import ora from 'ora'
import request from 'request'
import * as execa from 'execa'
import execa from 'execa'
import chalk from 'chalk'

import { Template } from './templates'
Expand All @@ -15,9 +15,9 @@ export interface LoadOptions {

export async function loadStarter(template: Template, output: string, options: LoadOptions): Promise<void> {
const tar = getTemplateRepositoryTarInformation(template)
const tmp = await downloadRepository(tar)
const tmpDir = await downloadRepository(tar)

await extractStarterFromRepository(tmp, tar, output)
await extractStarterFromRepository(tmpDir, tar, output)

if (options.installDependencies) {
await installStarter(output)
Expand Down
7 changes: 7 additions & 0 deletions introspection/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5022,6 +5022,13 @@ through@2:
resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5"
integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=

tmp@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.1.0.tgz#ee434a4e22543082e294ba6201dcc6eafefa2877"
integrity sha512-J7Z2K08jbGcdA1kkQpJSqLF6T0tdQqpR2pnSUXsIchbPdTI9v3e85cLW0d6WDhwuAleOV71j2xWs8qMPfK7nKw==
dependencies:
rimraf "^2.6.3"

tmpl@1.0.x:
version "1.0.4"
resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.4.tgz#23640dd7b42d00433911140820e5cf440e521dd1"
Expand Down
2 changes: 1 addition & 1 deletion scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -ex
env

# Wait for Postgres
sleep 15
# sleep 15

# Run prisma2 tests
cd prisma2
Expand Down

0 comments on commit fde6ef8

Please sign in to comment.