Skip to content

Commit c353e9e

Browse files
committed
build(project): build
1 parent 2dc76bf commit c353e9e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

dist/Utils/databaseFunctions.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3737
Object.defineProperty(exports, "__esModule", { value: true });
3838
const logger_1 = __importDefault(require("./logger")); // Assuming logger is imported from a separate file
3939
const fs = __importStar(require("fs"));
40+
const path = __importStar(require("path"));
4041
function InitializeDB(db) {
4142
return __awaiter(this, void 0, void 0, function* () {
4243
return new Promise((resolve, reject) => {
@@ -331,7 +332,7 @@ function deleteFromTable(db, name, id) {
331332
}
332333
function exportDatabaseToSQL(db) {
333334
return new Promise((resolve, reject) => {
334-
const outputPath = "/Users/mac/Documents/Code/SQLite-GUI/public/output.sql";
335+
const outputPath = path.resolve(__dirname, "..", "..", "public", "output.sql");
335336
let sql = "";
336337
db.serialize(() => {
337338
db.all("SELECT name, sql FROM sqlite_master WHERE type='table'", (err, tables) => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sqlite-gui-node",
3-
"version": "1.2.8",
3+
"version": "1.2.9",
44
"description": "GUI for Node js SQLite databases",
55
"main": "dist/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)