Initial Commit
This commit is contained in:
117
packages/api-stack/api/api-migrations/package.json
Normal file
117
packages/api-stack/api/api-migrations/package.json
Normal file
@@ -0,0 +1,117 @@
|
||||
{
|
||||
"name": "@suaveplan/api-migrations",
|
||||
"version": "0.1.0",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"description": "Database-agnostic migration runner for the Suaveplan API — narrow MigrationAdapter surface with per-dialect DDL bootstrap, real SHA-256 checksum validation against on-disk files, AbortSignal cancellation between migrations, OTel counter + histogram per apply, MigrationError with six MIGRATION.* codes. Ships three adapters (surrealql, postgres, sqlite); MySQL slot reserved in the dialect union. Server-tier — Bun + Node.",
|
||||
"license": "MIT",
|
||||
"author": "Suaveplan Team",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"exports": {
|
||||
"./package.json": "./package.json",
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"./runner/runner": {
|
||||
"import": {
|
||||
"types": "./dist/runner/runner.d.ts",
|
||||
"default": "./dist/runner/runner.js"
|
||||
}
|
||||
},
|
||||
"./adapters/surrealql/surrealql": {
|
||||
"import": {
|
||||
"types": "./dist/adapters/surrealql/surrealql.d.ts",
|
||||
"default": "./dist/adapters/surrealql/surrealql.js"
|
||||
}
|
||||
},
|
||||
"./adapters/postgres/postgres": {
|
||||
"import": {
|
||||
"types": "./dist/adapters/postgres/postgres.d.ts",
|
||||
"default": "./dist/adapters/postgres/postgres.js"
|
||||
}
|
||||
},
|
||||
"./adapters/sqlite/sqlite": {
|
||||
"import": {
|
||||
"types": "./dist/adapters/sqlite/sqlite.d.ts",
|
||||
"default": "./dist/adapters/sqlite/sqlite.js"
|
||||
}
|
||||
},
|
||||
"./otel/instruments": {
|
||||
"import": {
|
||||
"types": "./dist/otel/instruments.d.ts",
|
||||
"default": "./dist/otel/instruments.js"
|
||||
}
|
||||
},
|
||||
"./error-codes/error-codes": {
|
||||
"import": {
|
||||
"types": "./dist/error-codes/error-codes.d.ts",
|
||||
"default": "./dist/error-codes/error-codes.js"
|
||||
}
|
||||
},
|
||||
"./types/migration": {
|
||||
"import": {
|
||||
"types": "./dist/types/migration.d.ts",
|
||||
"default": "./dist/types/migration.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "vite build",
|
||||
"test": "vitest run --passWithNoTests",
|
||||
"test:watch": "vitest",
|
||||
"test:integration": "vitest run --config vitest.integration.config.ts --passWithNoTests",
|
||||
"test:coverage": "vitest run --coverage --passWithNoTests",
|
||||
"lint": "bunx biome check src/",
|
||||
"lint:fix": "bunx biome lint --fix --unsafe --max-diagnostics 500 src/",
|
||||
"format": "bunx biome format --write --max-diagnostics 500 src/",
|
||||
"check": "bunx biome check --write --unsafe --max-diagnostics 500 src/",
|
||||
"typecheck": "bunx tsc --noEmit --composite false -p tsconfig.lib.json",
|
||||
"docs:check": "bun run ../../../../scripts/docs-check.ts ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@opentelemetry/api": "catalog:observability",
|
||||
"@suaveplan/error": "workspace:^",
|
||||
"@suaveplan/types": "workspace:^",
|
||||
"tslib": "catalog:build"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"surrealdb": "catalog:database",
|
||||
"postgres": "catalog:database",
|
||||
"@sqlite.org/sqlite-wasm": "catalog:database"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"surrealdb": { "optional": true },
|
||||
"postgres": { "optional": true },
|
||||
"@sqlite.org/sqlite-wasm": { "optional": true }
|
||||
},
|
||||
"devDependencies": {
|
||||
"@opentelemetry/sdk-metrics": "1.30.0",
|
||||
"@sqlite.org/sqlite-wasm": "catalog:database",
|
||||
"@suaveplan/testing": "workspace:^",
|
||||
"@suaveplan/testing-integration": "workspace:^",
|
||||
"@suaveplan/testing-integration-surrealdb": "workspace:^",
|
||||
"@types/node": "catalog:",
|
||||
"@vitest/coverage-istanbul": "catalog:testing",
|
||||
"fast-check": "catalog:testing",
|
||||
"surrealdb": "catalog:database",
|
||||
"testcontainers": ">=11.0.0",
|
||||
"typescript": "catalog:",
|
||||
"vite": "catalog:build",
|
||||
"vite-plugin-dts": "catalog:build",
|
||||
"vitest": "catalog:testing"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://npmjs.fq.io/",
|
||||
"access": "public"
|
||||
},
|
||||
"files": ["dist", "src", "README.md"]
|
||||
}
|
||||
Reference in New Issue
Block a user