Skip to content

Commit

Permalink
wip generators
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Oct 7, 2019
1 parent d21ee9a commit 7eeddd1
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 7 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.1",
"version": "0.0.2",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"typings": "dist/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion cli/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@
"@types/node": "^12.7.9",
"jest": "^24.9.0",
"ts-jest": "^24.1.0",
"ts-node": "^8.4.1",
"typescript": "^3.6.3"
},
"dependencies": {
"@prisma/cli": "^0.1.10",
"@prisma/fetch-engine": "^0.3.0",
"@prisma/generator-helper": "^0.0.1",
"@prisma/generator-helper": "^0.0.2",
"@prisma/get-platform": "^0.1.2",
"chalk": "^2.4.2",
"execa": "^2.0.4",
Expand Down
1 change: 1 addition & 0 deletions cli/sdk/src/getGenerators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ class Generator {
this.generatorProcess = new GeneratorProcess(this.executablePath)
}
async init() {
await this.generatorProcess.init()
this.manifest = await this.generatorProcess.getManifest()
}
stop() {
Expand Down
32 changes: 27 additions & 5 deletions cli/sdk/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,12 @@
p-retry "^4.1.0"
progress "^2.0.3"

"@prisma/generator-helper@^0.0.1":
version "0.0.1"
resolved "https://registry.yarnpkg.com/@prisma/generator-helper/-/generator-helper-0.0.1.tgz#602983bdefbdfb1771991269f81679cf0f94cd22"
integrity sha512-6StWjnlKPlH9BZjyODIjPiDtWYz1p9C1SDmZt49m0rTk3QK55uK3ML/yIjIIqPo4dqXw1Q8mImCZaxdxVo1mdg==
"@prisma/generator-helper@^0.0.2":
version "0.0.2"
resolved "https://registry.yarnpkg.com/@prisma/generator-helper/-/generator-helper-0.0.2.tgz#fc603795e479491a69eee65a084e6854684e3738"
integrity sha512-WKf5RA41HJE9JnQ2dEUgnLVUo2EXRUIFagC28DwRGiuxDznEBcuay3e7ujq1RnGJgdujp477RTaQCeSY4L/+KA==
dependencies:
chalk "^2.4.2"
debug "^4.1.1"

"@prisma/get-platform@^0.1.1", "@prisma/get-platform@^0.1.2":
Expand Down Expand Up @@ -1066,6 +1067,11 @@ diff-sequences@^24.9.0:
resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-24.9.0.tgz#5715d6244e2aa65f48bba0bc972db0b0b11e95b5"
integrity sha512-Dj6Wk3tWyTE+Fo1rW8v0Xhwk80um6yFYKbuAxc9c3EZxIHFDYwbi34Uk42u1CdnIiVorvt4RmlSDjIPyzGC2ew==

diff@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.1.tgz#0c667cb467ebbb5cea7f14f135cc2dba7780a8ff"
integrity sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==

dom-serializer@0:
version "0.2.1"
resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-0.2.1.tgz#13650c850daffea35d8b626a4cfc4d3a17643fdb"
Expand Down Expand Up @@ -2491,7 +2497,7 @@ make-error-cause@^1.2.1:
dependencies:
make-error "^1.2.0"

make-error@1.x, make-error@^1.2.0:
make-error@1.x, make-error@^1.1.1, make-error@^1.2.0:
version "1.3.5"
resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.5.tgz#efe4e81f6db28cadd605c70f29c831b58ef776c8"
integrity sha512-c3sIjNUow0+8swNwVpqoH4YCShKNFkMaw6oH1mNS2haDZQqkeZFlHS3dhoeEbKKmJB4vXpJucU6oH75aDYeE9g==
Expand Down Expand Up @@ -3789,6 +3795,17 @@ ts-jest@^24.1.0:
semver "^5.5"
yargs-parser "10.x"

ts-node@^8.4.1:
version "8.4.1"
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-8.4.1.tgz#270b0dba16e8723c9fa4f9b4775d3810fd994b4f"
integrity sha512-5LpRN+mTiCs7lI5EtbXmF/HfMeCjzt7DH9CZwtkr6SywStrNQC723wG+aOWFiLNn7zT3kD/RnFqi3ZUfr4l5Qw==
dependencies:
arg "^4.1.0"
diff "^4.0.1"
make-error "^1.1.1"
source-map-support "^0.5.6"
yn "^3.0.0"

tunnel-agent@^0.6.0:
version "0.6.0"
resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd"
Expand Down Expand Up @@ -4054,3 +4071,8 @@ yargs@^13.3.0:
which-module "^2.0.0"
y18n "^4.0.0"
yargs-parser "^13.1.1"

yn@^3.0.0:
version "3.1.1"
resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50"
integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==

0 comments on commit 7eeddd1

Please sign in to comment.