@kipicore/dbcore 1.1.46 → 1.1.48
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/.sequelizerc +13 -0
- package/dist/.sequelizerc +13 -0
- package/dist/models/psql/walletModel.js +1 -1
- package/package.json +5 -3
package/.sequelizerc
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Import the path module to work with file paths
|
|
2
|
+
const path = require("path");
|
|
3
|
+
// Export an object with configuration options for Sequelize CLI
|
|
4
|
+
module.exports = {
|
|
5
|
+
// Configuration file path for Sequelize
|
|
6
|
+
config: path.resolve("configs", "postgresConfig"),
|
|
7
|
+
// Path to the directory where models are stored
|
|
8
|
+
"models-path": path.resolve("models", "psql"),
|
|
9
|
+
// Set the path to the directory to store seeders
|
|
10
|
+
"seeders-path": path.resolve("db/psql", "seeders"),
|
|
11
|
+
// Set the path to the directory to store migrations
|
|
12
|
+
"migrations-path": path.resolve("db/psql", "migrations"),
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Import the path module to work with file paths
|
|
2
|
+
const path = require("path");
|
|
3
|
+
// Export an object with configuration options for Sequelize CLI
|
|
4
|
+
module.exports = {
|
|
5
|
+
// Configuration file path for Sequelize
|
|
6
|
+
config: path.resolve("configs", "postgresConfig"),
|
|
7
|
+
// Path to the directory where models are stored
|
|
8
|
+
"models-path": path.resolve("models", "psql"),
|
|
9
|
+
// Set the path to the directory to store seeders
|
|
10
|
+
"seeders-path": path.resolve("db/psql", "seeders"),
|
|
11
|
+
// Set the path to the directory to store migrations
|
|
12
|
+
"migrations-path": path.resolve("db/psql", "migrations"),
|
|
13
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kipicore/dbcore",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.48",
|
|
4
4
|
"description": "Reusable DB core package with Postgres, MongoDB, models, services, interfaces, and types",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"build": "tsc -p tsconfig.json",
|
|
18
18
|
"prebuild": "npm run clean",
|
|
19
19
|
"lint": "eslint \"src/**/*.ts\"",
|
|
20
|
-
"test": "npm run build && tsd"
|
|
20
|
+
"test": "npm run build && tsd",
|
|
21
|
+
"postbuild": "cp .sequelizerc dist/"
|
|
21
22
|
},
|
|
22
23
|
"keywords": [
|
|
23
24
|
"postgres",
|
|
@@ -53,6 +54,7 @@
|
|
|
53
54
|
"files": [
|
|
54
55
|
"dist",
|
|
55
56
|
"README.md",
|
|
56
|
-
"LICENSE"
|
|
57
|
+
"LICENSE",
|
|
58
|
+
".sequelizerc"
|
|
57
59
|
]
|
|
58
60
|
}
|