diff --git a/db-datos/package.json b/db-datos/package.json index 6989079..dfc8438 100644 --- a/db-datos/package.json +++ b/db-datos/package.json @@ -5,7 +5,7 @@ "description": "", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "migrate": "node --import tsx/esm migrate.ts" }, "keywords": [], "author": "", @@ -13,7 +13,8 @@ "dependencies": { "better-sqlite3": "^9.2.2", "drizzle-kit": "^0.20.7", - "drizzle-orm": "^0.29.1" + "drizzle-orm": "^0.29.1", + "tsx": "^4.7.0" }, "devDependencies": { "@types/better-sqlite3": "^7.6.8" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8fda63b..ee03856 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -32,6 +32,9 @@ importers: drizzle-orm: specifier: ^0.29.1 version: 0.29.1(@types/better-sqlite3@7.6.8)(better-sqlite3@9.2.2) + tsx: + specifier: ^4.7.0 + version: 4.7.0 devDependencies: '@types/better-sqlite3': specifier: ^7.6.8