Skip to content

Commit

Permalink
chore: update contributing.md and setup (#8294)
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre-Antoine Mills <pierreantoine.urvoy@gmail.com>
  • Loading branch information
hehex9 and millsp committed Jul 23, 2021
1 parent eb7ea5a commit ff8fa06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 23 deletions.
24 changes: 3 additions & 21 deletions src/packages/sdk/src/getGenerators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
GeneratorManifest,
GeneratorOptions,
} from '@prisma/generator-helper'
import { getPlatform, Platform } from '@prisma/get-platform'
import { getPlatform, Platform, platforms } from '@prisma/get-platform'
import chalk from 'chalk'
import fs from 'fs'
import makeDir from 'make-dir'
Expand Down Expand Up @@ -150,7 +150,7 @@ export async function getGenerators({
})

if (dmmf.datamodel.models.length === 0) {
// MongoDB needs extras for @id: @map("_id") @db.ObjectId
// MongoDB needs extras for @id: @map("_id") @db.ObjectId
if (config.datasources.some((d) => d.provider.includes('mongodb'))) {
throw new Error(missingModelMessageMongoDB)
}
Expand Down Expand Up @@ -543,25 +543,7 @@ export function skipIndex<T = any>(arr: T[], index: number): T[] {
return [...arr.slice(0, index), ...arr.slice(index + 1)]
}

export const knownBinaryTargets: Platform[] = [
'native',
'darwin',
'darwin-arm64',
'debian-openssl-1.0.x',
'debian-openssl-1.1.x',
'linux-arm-openssl-1.0.x',
'linux-arm-openssl-1.1.x',
'rhel-openssl-1.0.x',
'rhel-openssl-1.1.x',
'linux-musl',
'linux-nixos',
'windows',
'freebsd11',
'freebsd12',
'openbsd',
'netbsd',
'arm',
]
export const knownBinaryTargets: Platform[] = [...platforms, 'native']

const oldToNewBinaryTargetsMapping = {
'linux-glibc-libssl1.0.1': 'debian-openssl-1.0.x',
Expand Down
4 changes: 2 additions & 2 deletions src/scripts/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ has to point to the dev version you want to promote, for example 2.1.0-dev.123`)

await run(
'.',
`pnpm i --no-prefer-frozen-lockfile -r --reporter=silent`,
`pnpm i --no-prefer-frozen-lockfile --reporter=silent`,
).catch((e) => {})
}

Expand Down Expand Up @@ -113,7 +113,7 @@ has to point to the dev version you want to promote, for example 2.1.0-dev.123`)
// final install on top level
await pRetry(
async () => {
await run('.', 'pnpm i --no-prefer-frozen-lockfile -r')
await run('.', 'pnpm i --no-prefer-frozen-lockfile')
},
{
retries: 6,
Expand Down

0 comments on commit ff8fa06

Please sign in to comment.