Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Nov 26, 2019
1 parent 61d9928 commit 428d9b6
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cli/generator-helper/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prisma/generator-helper",
"version": "0.0.24",
"version": "0.0.25",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"typings": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion cli/introspection/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prisma/introspection",
"version": "0.0.139",
"version": "0.0.141",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion cli/prisma2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prisma2",
"version": "2.0.0-alpha.353",
"version": "2.0.0-alpha.355",
"main": "build/index.js",
"repository": "git@github.com:prisma/prisma2-cli.git",
"author": "Tim Suchanek <suchanek@prisma.io>",
Expand Down
1 change: 1 addition & 0 deletions cli/prisma2/src/Generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export class Generate implements Command {
schemaPath: datamodelPath,
printDownloadProgress: true,
version: pkg.prisma.version,
cliVersion: pkg.version,
})

if (generators.length === 0) {
Expand Down
2 changes: 1 addition & 1 deletion cli/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prisma/sdk",
"version": "0.0.62",
"version": "0.0.63",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"repository": "git@github.com:prisma/prisma2.git",
Expand Down
4 changes: 3 additions & 1 deletion cli/sdk/src/getGenerators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export type ProviderAliases = { [alias: string]: GeneratorPaths }
export type GetGeneratorOptions = {
schemaPath: string
providerAliases?: ProviderAliases
cliVersion?: string
version?: string
printDownloadProgress?: boolean
baseDir?: string // useful in tests to resolve the base dir from which `output` is resolved
Expand All @@ -51,6 +52,7 @@ export async function getGenerators({
schemaPath,
providerAliases: aliases, // do you get the pun?
version,
cliVersion,
printDownloadProgress,
baseDir = path.dirname(schemaPath),
overrideGenerators,
Expand Down Expand Up @@ -100,7 +102,7 @@ export async function getGenerators({
} else if (predefinedGeneratorResolvers[generator.provider]) {
paths = await predefinedGeneratorResolvers[generator.provider](
baseDir,
version,
cliVersion,
)
debug(paths)
generatorPath = paths.generatorPath
Expand Down

0 comments on commit 428d9b6

Please sign in to comment.