Skip to content

Commit

Permalink
add annotation for zeit
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Mar 12, 2020
1 parent f158e2c commit 847b447
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/prisma2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
"ncc": "ncc build dist/bin.js -o build -m",
"ncc:download": "rm -rf download-build && ncc build scripts/download.js -o download-build --minify",
"build": "pnpm run tsc && pnpm run ncc:download && rm -rf build && pnpm run ncc && sed -i.bak 's/env ts-node/env node/g' 'build/index.js' && rm -f build/index.js.bak && bash scripts/copy-runtime.sh",
"pkg": "pkg . -o pkg-build"
"pkg": "pkg . -o pkg-build",
"prepublishOnly": "pnpm run build"
}
}
12 changes: 12 additions & 0 deletions cli/sdk/src/engineCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ export interface ConfigMetaFormat {
generators: GeneratorConfig[]
}

/**
* This annotation is used for `node-file-trace`
* See https://github.com/zeit/node-file-trace/issues/104
*/
const platform = 'placeholder'

path.join(__dirname, '../query-engine', platform)
path.join(__dirname, '../introspection-engine', platform)

/**
* Dynamic path resolution
*/
async function getPrismaPath(): Promise<string> {
// tslint:disable-next-line
if (process.env.PRISMA_QUERY_ENGINE_BINARY) {
Expand Down

0 comments on commit 847b447

Please sign in to comment.