From c0c02313f13d904bcc133a3cdf563dc1f9460abb Mon Sep 17 00:00:00 2001 From: Nulo Date: Sat, 23 Dec 2023 20:32:28 -0300 Subject: [PATCH] comando para migrar --- db-datos/package.json | 5 +++-- pnpm-lock.yaml | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) 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