## Description Fixes #7492 In order to run createMigration, we need to read in the previous snapshot file if one exists. When that snapshot was generated from an older version of drizzle-kit, we have to first migrate it up match the latest version for drizzle to generate the new migration. This change adds in the call to check the version and migrate the snapshot if needed.
90 lines
2.7 KiB
JSON
90 lines
2.7 KiB
JSON
{
|
|
"name": "@payloadcms/db-postgres",
|
|
"version": "3.0.0-beta.74",
|
|
"description": "The officially supported Postgres database adapter for Payload",
|
|
"homepage": "https://payloadcms.com",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/payloadcms/payload.git",
|
|
"directory": "packages/db-postgres"
|
|
},
|
|
"license": "MIT",
|
|
"author": "Payload <dev@payloadcms.com> (https://payloadcms.com)",
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"import": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"default": "./src/index.ts"
|
|
},
|
|
"./types": {
|
|
"import": "./src/types.ts",
|
|
"types": "./src/types.ts",
|
|
"default": "./src/types.ts"
|
|
},
|
|
"./migration-utils": {
|
|
"import": "./src/exports/migration-utils.ts",
|
|
"types": "./src/exports/migration-utils.ts",
|
|
"default": "./src/exports/migration-utils.ts"
|
|
}
|
|
},
|
|
"main": "./src/index.ts",
|
|
"types": "./src/types.ts",
|
|
"files": [
|
|
"dist",
|
|
"mock.js"
|
|
],
|
|
"scripts": {
|
|
"build": "rimraf .dist && rimraf tsconfig.tsbuildinfo && pnpm build:types && pnpm build:swc && pnpm build:esbuild && pnpm renamePredefinedMigrations",
|
|
"build:esbuild": "echo skipping esbuild",
|
|
"build:swc": "swc ./src -d ./dist --config-file .swcrc --strip-leading-paths",
|
|
"build:types": "tsc --emitDeclarationOnly --outDir dist",
|
|
"clean": "rimraf {dist,*.tsbuildinfo}",
|
|
"prepack": "pnpm clean && pnpm turbo build",
|
|
"prepublishOnly": "pnpm clean && pnpm turbo build",
|
|
"renamePredefinedMigrations": "tsx ./scripts/renamePredefinedMigrations.ts"
|
|
},
|
|
"dependencies": {
|
|
"@payloadcms/drizzle": "workspace:*",
|
|
"console-table-printer": "2.11.2",
|
|
"drizzle-kit": "0.23.2-df9e596",
|
|
"drizzle-orm": "0.32.1",
|
|
"pg": "8.11.3",
|
|
"prompts": "2.4.2",
|
|
"to-snake-case": "1.0.0",
|
|
"uuid": "10.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@hyrious/esbuild-plugin-commonjs": "^0.2.4",
|
|
"@payloadcms/eslint-config": "workspace:*",
|
|
"@types/pg": "8.10.2",
|
|
"@types/to-snake-case": "1.0.0",
|
|
"esbuild": "0.23.0",
|
|
"payload": "workspace:*"
|
|
},
|
|
"peerDependencies": {
|
|
"payload": "workspace:*"
|
|
},
|
|
"publishConfig": {
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./types": {
|
|
"import": "./dist/types.js",
|
|
"types": "./dist/types.d.ts",
|
|
"default": "./dist/types.js"
|
|
},
|
|
"./migration-utils": {
|
|
"import": "./dist/exports/migration-utils.js",
|
|
"types": "./dist/exports/migration-utils.d.ts",
|
|
"default": "./dist/exports/migration-utils.js"
|
|
}
|
|
},
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
}
|
|
}
|