@projectinvicta/nails 3.0.8 → 3.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { type DbConfig } from '@projectinvicta/nails';
|
|
2
|
-
|
|
3
1
|
let DB_ADDRESS = process.env.NAILS_SQLITE_DB_FILE;
|
|
4
2
|
if (!DB_ADDRESS) DB_ADDRESS = 'sqlite://' + import.meta.dirname + '/development.db';
|
|
5
3
|
|
|
6
|
-
const db
|
|
4
|
+
const db = {
|
|
7
5
|
/** Sequelize Connector */
|
|
8
6
|
address: process.env.NAILS_RELEASE_STAGE == 'test'
|
|
9
7
|
? 'sqlite::memory:'
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const routes: RoutesConfig = [
|
|
1
|
+
const routes = [
|
|
4
2
|
// Routes the root request to index.html, as well as all other requests to static
|
|
5
3
|
['get', "/", {controller: 'home'}],
|
|
6
4
|
// Routes all requests starting with /public as static requests to the public folder.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Initializes application before server starts
|
|
2
2
|
// Each of these is REQUIRED
|
|
3
|
-
import routes from './routes.
|
|
4
|
-
import mimes from './mimes.
|
|
5
|
-
import db from './db.
|
|
3
|
+
import routes from './routes.ts';
|
|
4
|
+
import mimes from './mimes.ts';
|
|
5
|
+
import db from './db.ts';
|
|
6
6
|
|
|
7
7
|
import path from 'node:path';
|
|
8
8
|
var SERVER_ROOT = path.resolve(import.meta.dirname, '..');
|