## 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.
86 lines
2.4 KiB
JSON
86 lines
2.4 KiB
JSON
{
|
|
"name": "@payloadcms/db-sqlite",
|
|
"version": "3.0.0-beta.74",
|
|
"description": "The officially supported SQLite database adapter for Payload",
|
|
"homepage": "https://payloadcms.com",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/payloadcms/payload.git",
|
|
"directory": "packages/db-sqlite"
|
|
},
|
|
"license": "MIT",
|
|
"author": "Payload <dev@payloadcms.com> (https://payloadcms.com)",
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"import": "./src/index.ts",
|
|
"require": "./src/index.ts",
|
|
"types": "./src/index.ts"
|
|
},
|
|
"./types": {
|
|
"import": "./src/types.ts",
|
|
"require": "./src/types.ts",
|
|
"types": "./src/types.ts"
|
|
},
|
|
"./migration-utils": {
|
|
"import": "./src/exports/migration-utils.ts",
|
|
"require": "./src/exports/migration-utils.ts",
|
|
"types": "./src/exports/migration-utils.ts"
|
|
}
|
|
},
|
|
"main": "./src/index.ts",
|
|
"types": "./src/types.ts",
|
|
"files": [
|
|
"dist",
|
|
"mock.js"
|
|
],
|
|
"scripts": {
|
|
"build": "pnpm build:swc && pnpm build:types",
|
|
"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"
|
|
},
|
|
"dependencies": {
|
|
"@libsql/client": "^0.6.2",
|
|
"@payloadcms/drizzle": "workspace:*",
|
|
"console-table-printer": "2.11.2",
|
|
"drizzle-kit": "0.23.2-df9e596",
|
|
"drizzle-orm": "0.32.1",
|
|
"prompts": "2.4.2",
|
|
"to-snake-case": "1.0.0",
|
|
"uuid": "9.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@payloadcms/eslint-config": "workspace:*",
|
|
"@types/pg": "8.10.2",
|
|
"@types/to-snake-case": "1.0.0",
|
|
"payload": "workspace:*"
|
|
},
|
|
"peerDependencies": {
|
|
"payload": "workspace:*"
|
|
},
|
|
"publishConfig": {
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"require": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
},
|
|
"./types": {
|
|
"import": "./dist/types.js",
|
|
"require": "./dist/types.js",
|
|
"types": "./dist/types.d.ts"
|
|
},
|
|
"./migration-utils": {
|
|
"import": "./dist/exports/migration-utils.js",
|
|
"require": "./dist/exports/migration-utils.js",
|
|
"types": "./dist/exports/migration-utils.d.ts"
|
|
}
|
|
},
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
}
|
|
}
|