Skip to content

Commit

Permalink
add pkg build [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Dec 4, 2019
1 parent 0fc61c4 commit d59474e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
1 change: 1 addition & 0 deletions cli/prisma2/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ examples
prisma-test-utils_ncc
tmp
@generated
pkg-build

prisma
.envrc
Expand Down
19 changes: 15 additions & 4 deletions cli/prisma2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@
"runtime/dist",
"photon"
],
"pkg": {
"scripts": "build/index.js",
"assets": [
"build/**/*",
"runtime/**/*",
"photon/**/*",
"download-build/**/*"
]
},
"bin": "build/index.js",
"prisma": {
"version": "f9dc134bb45be197241dd04b0c11073fc5917ed7"
Expand All @@ -26,9 +35,9 @@
"@prisma/lift": "workspace:*",
"@prisma/photon": "workspace:*",
"@prisma/sdk": "workspace:*",
"@prisma/studio": "0.164.0",
"@prisma/studio-server": "0.164.0",
"@prisma/studio-transports": "0.164.0",
"@prisma/studio": "0.160.0",
"@prisma/studio-server": "0.160.0",
"@prisma/studio-transports": "0.160.0",
"@sentry/node": "^5.9.0",
"@types/debug": "^4.1.5",
"@types/mocha": "^5.2.7",
Expand All @@ -38,6 +47,7 @@
"mocha": "6.2.2",
"mz": "2.7.0",
"open": "^7.0.0",
"pkg": "^4.4.0",
"pkg-up": "3.1.0",
"prisma-datamodel": "1.36.0-test.2",
"prisma-db-introspection": "1.36.0-test.2",
Expand All @@ -60,6 +70,7 @@
"ncc": "ncc build dist/bin.js -o build",
"ncc:download": "ncc build scripts/download.js -o download-build",
"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 && scripts/copy-runtime.sh",
"prepublishOnly": "pnpm run download && pnpm run ncc:download && pnpm run install && pnpm run test && pnpm run build"
"prepublishOnly": "pnpm run download && pnpm run ncc:download && pnpm run install && pnpm run test && pnpm run build",
"pkg": "pkg . -o pkg-build"
}
}

0 comments on commit d59474e

Please sign in to comment.