New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

prisma2

Package Overview
Dependencies
Maintainers
1
Versions
1100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prisma2 - npm Package Compare versions

Comparing version 2.0.0-preview024 to 2.0.0-preview025

index.js

120

package.json
{
"name": "prisma2",
"version": "2.0.0-preview024",
"main": "build/index.js",
"repository": "git@github.com:prisma/prisma2-cli.git",
"author": "Tim Suchanek <suchanek@prisma.io>",
"license": "Apache-2.0",
"engines": {
"node": ">=10"
},
"files": [
"build",
"download-build",
"runtime/*.js",
"runtime/*.d.ts",
"runtime/utils",
"runtime/dist",
"prisma-client"
],
"pkg": {
"assets": [
"build/**/*",
"runtime/**/*",
"prisma-client/**/*",
"download-build/**/*",
"query-engine*",
"migration-engine*",
"introspection-engine*"
]
},
"bin": "build/index.js",
"prisma": {
"version": "377df4fe30aa992f13f1ba152cf83d5770bdbc85"
},
"devDependencies": {
"@prisma/ci-info": "^2.1.1",
"@prisma/cli": "2.0.0-preview024",
"@prisma/client": "2.0.0-preview024",
"@prisma/fetch-engine": "2.0.0-preview024",
"@prisma/generator-helper": "2.0.0-preview024",
"@prisma/introspection": "2.0.0-preview024",
"@prisma/migrate": "2.0.0-preview024",
"@prisma/sdk": "2.0.0-preview024",
"@prisma/studio": "0.206.0",
"@prisma/studio-server": "0.206.0",
"@prisma/studio-transports": "0.206.0",
"@prisma/studio-types": "0.206.0",
"@sentry/node": "5.12.4",
"@types/debug": "^4.1.5",
"@types/mocha": "^5.2.7",
"@types/mysql2": "github:types/mysql2",
"@types/sqlite3": "^3.1.6",
"@zeit/ncc": "0.21.0",
"checkpoint-client": "^1.0.7",
"dotenv": "^8.2.0",
"jest": "^25.1.0",
"log-update": "^3.3.0",
"make-dir": "^3.0.0",
"mocha": "6.2.2",
"mysql2": "^2.1.0",
"mz": "2.7.0",
"open": "^7.0.0",
"pg": "^7.14.0",
"pkg": "^4.4.0",
"pkg-up": "3.1.0",
"resolve-pkg": "^2.0.0",
"rimraf": "^3.0.0",
"serialize-error": "^5.0.0",
"snap-shot-it": "^7.9.2",
"sqlite-async": "^1.0.12",
"sqlite3": "^4.1.1",
"strip-ansi": "^6.0.0",
"strip-indent": "3.0.0",
"terminal-link": "^2.0.0",
"tmp": "^0.1.0",
"ts-jest": "^25.2.1",
"ts-mocha": "6.0.0",
"typescript": "^3.8.3"
},
"scripts": {
"test-sqlite": "./node_modules/.bin/mocha src/__tests__/integrate.sqlite.test.ts --require ts-mocha src/__tests__/integrate.sqlite.test.ts --timeout 10s",
"test-mysql": "./node_modules/.bin/mocha src/__tests__/integrate.mysql.test.ts --require ts-mocha src/__tests__/integrate.mysql.test.ts --timeout 10s",
"test-postgresql": "./node_modules/.bin/mocha src/__tests__/integrate.postgresql.test.ts --require ts-mocha src/__tests__/integrate.postgresql.test.ts --timeout 10s",
"test": "./fixtures/test.sh && pnpm run test-postgresql && pnpm run test-sqlite && pnpm run test-mysql",
"test:debug": "./node_modules/.bin/mocha --inspect-brk src/__tests__/integrate.* --require ts-mocha src/__tests__/integrate.* --timeout 10s",
"test:mocha": "./node_modules/.bin/mocha src/__tests__/integrate.* --require ts-mocha src/__tests__/integrate.* --timeout 10s",
"test:update-snapshots": "SNAPSHOT_UPDATE=1 ./node_modules/.bin/mocha src/__tests__/integrate.* --require ts-mocha src/__tests__/integrate.* --timeout 10s",
"install": "node download-build/index.js",
"download": "rm -f download-done && node scripts/updateTag.js && node scripts/download.js || echo \"\"",
"tsc": "tsc -d && cp src/capture-worker.js dist/capture-worker.js && bash scripts/copy-runtime-dist.sh",
"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"
}
"name": "prisma2",
"version": "2.0.0-preview025",
"description": "",
"main": "index.js",
"scripts": {
"preinstall": "node index.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/prisma/prisma2.git"
},
"bugs": {
"url": "https://github.com/prisma/prisma2/issues"
},
"homepage": "https://github.com/prisma/prisma2#readme",
"np": {
"yarn": false,
"anyBranch": true,
"cleanup": false
},
"devDependencies": {
"np": "^6.2.0"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
}
}

@@ -1,55 +0,21 @@

# Prisma 2 CLI
# ~~prisma2~~ => @prisma/cli
Learn more about Prisma 2 in the [docs](https://github.com/prisma/prisma2).
The package `prisma2` has been renamed to [`@prisma/cli`](https://www.npmjs.com/package/@prisma/cli)
## Getting started
Please uninstall `prisma2` from your project or globally.
Then install [`@prisma/cli`](https://www.npmjs.com/package/@prisma/cli) to continue using **Prisma 2.0**:
Check out the [**"Getting Started"-guide**](https://github.com/prisma/prisma2/blob/master/docs/getting-started.md) to get started with Prisma 2.
## Installation
The Prisma 2 CLI currently requires [Node.js 10](https://nodejs.org/en/download/releases/) (or higher).
### npm
```
npm install -g prisma2
```
# Uninstall old CLI
npm uninstall prisma2
### Yarn
# Install new CLI
npm install @prisma/cli --save-dev
# Invoke via npx
npx prisma2 --help
```
yarn global add prisma2
```
## General
### `prisma2 init`
Sets up a `prisma/schema.prisma` file in the current directory.
### `prisma2 generate`
Invokes the generators specified in the Prisma project file.
### `prisma2 generate --watch`
Watches the Prisma project file and runs `generate` when the file changes.
### `prisma2 introspect`
Introspects the database and generates a data model from it.
## Migrate
### `prisma2 migrate save --experimental`
Creates a new migration folder based on current data model changes.
### `prisma2 migrate up --experimental`
Apply any migrations that have not been applied yet.
### `prisma2 migrate down --experimental`
Undo migrations.
Learn more here:
https://pris.ly/preview025
https://www.npmjs.com/package/@prisma/cli
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc