From e67d69abc02c239e7f282fa965f88e481c920e66 Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Sun, 8 Mar 2026 08:45:48 +0100 Subject: [PATCH] Updates --- README.md | 8 ++++---- dist/data/app-data.d.ts | 2 +- dist/data/app-data.js | 2 +- package.json | 2 +- src/data/app-data.ts | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index c91c744..fd44163 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ npm install @moduletrace/nsqlite ### 1. Create the config file -Create `nsqlite.config.ts` at your project root: +Create `nsqlite.config.js` at your project root: ```ts import type { NSQLiteConfig } from "@moduletrace/nsqlite"; @@ -147,7 +147,7 @@ await NSQLite.delete({ table: "users", targetId: 1 }); ## Configuration -The config file must be named `nsqlite.config.ts` and placed at the root of your project. +The config file must be named `nsqlite.config.js` and placed at the root of your project. | Field | Type | Required | Description | | --------------------- | -------- | -------- | ------------------------------------------------------------------------------------------ | @@ -784,14 +784,14 @@ node-sqlite/ │ └── trim-backups.ts # Prune oldest backups over max_backups └── test/ ├── test-01/ # Basic example project - │ ├── nsqlite.config.ts + │ ├── nsqlite.config.js │ ├── db/ │ │ ├── nsqlite-schema.ts │ │ └── types/nsqlite.ts # Generated types │ └── src/ │ └── sql.ts └── test-02/ # Full CRUD example project - ├── nsqlite.config.ts + ├── nsqlite.config.js ├── index.ts └── src/crud/ ├── insert.ts diff --git a/dist/data/app-data.d.ts b/dist/data/app-data.d.ts index f24a9ed..e633138 100644 --- a/dist/data/app-data.d.ts +++ b/dist/data/app-data.d.ts @@ -1,5 +1,5 @@ export declare const AppData: { - readonly ConfigFileName: "nsqlite.config.ts"; + readonly ConfigFileName: "nsqlite.config.js"; readonly MaxBackups: 10; readonly DefaultBackupDirName: ".backups"; }; diff --git a/dist/data/app-data.js b/dist/data/app-data.js index e789685..7af56d4 100644 --- a/dist/data/app-data.js +++ b/dist/data/app-data.js @@ -2,7 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.AppData = void 0; exports.AppData = { - ConfigFileName: "nsqlite.config.ts", + ConfigFileName: "nsqlite.config.js", MaxBackups: 10, DefaultBackupDirName: ".backups", }; diff --git a/package.json b/package.json index f731a59..ae2f855 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@moduletrace/nsqlite", - "version": "1.0.3", + "version": "1.0.4", "description": "SQLite manager for Node JS", "author": "Benjamin Toby", "main": "dist/index.js", diff --git a/src/data/app-data.ts b/src/data/app-data.ts index ad11087..d6f0bc3 100644 --- a/src/data/app-data.ts +++ b/src/data/app-data.ts @@ -1,5 +1,5 @@ export const AppData = { - ConfigFileName: "nsqlite.config.ts", + ConfigFileName: "nsqlite.config.js", MaxBackups: 10, DefaultBackupDirName: ".backups", } as const;