fiberx-backend-toolkit 0.0.21 → 0.0.23

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.
@@ -4,7 +4,7 @@ exports.SEQUELIZE_MODELS_INDEX_CODE_TEMPLATE = exports.SEQUELIZE_MODEL_CODE_TEMP
4
4
  const SEQUELIZE_SCHEMA_CODE_TEMPLATE = (schema_name, table_name, model_name, migration_priority) => {
5
5
  return `
6
6
  import { DataTypes } from "sequelize";
7
- import { SchemaDefinitionInterface } from "fiberx-backend-toolkit/types/schema_type";
7
+ import { SchemaDefinitionInterface } from "fiberx-backend-toolkit/dist/types/schema_type";
8
8
 
9
9
  const ${schema_name}: SchemaDefinitionInterface = {
10
10
  database_name: "public",
@@ -45,8 +45,8 @@ export default ${schema_name};
45
45
  exports.SEQUELIZE_SCHEMA_CODE_TEMPLATE = SEQUELIZE_SCHEMA_CODE_TEMPLATE;
46
46
  const SEQUELIZE_CREATE_NEW_SCHEMA_MIGRATION_FILE_CODE_TEMPLATE = (schema_table_name, schema_model_name, schema_file_name) => `
47
47
  import { QueryInterface, DataTypes, Sequelize } from "sequelize";
48
- import { LoggerUtil } from "fiberx-backend-toolkit//utils";
49
- import { SchemaDefinitionInterface } from "fiberx-backend-toolkit/types/schema_type";
48
+ import { LoggerUtil } from "fiberx-backend-toolkit/dist/utils";
49
+ import { SchemaDefinitionInterface } from "fiberx-backend-toolkit/dist/types/schema_type";
50
50
  import ${schema_model_name}Schema from "@/database/schemas/${schema_file_name.replace(".ts", "")}";
51
51
 
52
52
  class Create${schema_model_name}TableMigration {
@@ -107,8 +107,8 @@ export default Create${schema_model_name}TableMigration;
107
107
  exports.SEQUELIZE_CREATE_NEW_SCHEMA_MIGRATION_FILE_CODE_TEMPLATE = SEQUELIZE_CREATE_NEW_SCHEMA_MIGRATION_FILE_CODE_TEMPLATE;
108
108
  const SEQUELIZE_UPDATE_EXISTING_SCHEMA_MIGRATION_FILE_CODE_TEMPLATE = (schema_table_name, schema_model_name, diff, schema_file_name) => `
109
109
  import { QueryInterface, DataTypes, Sequelize } from "sequelize";
110
- import { LoggerUtil } from "fiberx-backend-toolkit//utils";
111
- import { SchemaDefinitionInterface } from "fiberx-backend-toolkit/types/schema_type";
110
+ import { LoggerUtil } from "fiberx-backend-toolkit/dist/utils";
111
+ import { SchemaDefinitionInterface } from "fiberx-backend-toolkit/dist/types/schema_type";
112
112
  import ${schema_model_name}Schema from "@/database/schemas/${schema_file_name.replace(".ts", "")}";
113
113
 
114
114
  class Update${schema_model_name}TableMigration {
@@ -68,7 +68,7 @@ class CreateSchemaScript {
68
68
  this.ensureSchemaDoesNotExist(file_path);
69
69
  this.createSchemaFile(file_path, schema_name, model_name, table_name, migration_priority);
70
70
  ;
71
- this.logger.success("✅ Schema created successfully Created database/schemas/${file_base_name}.ts");
71
+ this.logger.success(`✅ Schema created successfully Created database/schemas/${file_base_name}.ts`);
72
72
  this.logger.info(`📄 File Path: ${file_path}`);
73
73
  this.logger.info(`🧩 Schema Name: ${schema_name}`);
74
74
  this.logger.info(`📦 Model Name: ${model_name}`);
@@ -35,7 +35,7 @@ class EnvManagerUtil {
35
35
  return env_var_options?.production_file_name ?? "production_env.yaml";
36
36
  }
37
37
  else {
38
- return "env.yaml";
38
+ return env_var_options?.development_file_name ?? "development_env.yaml";
39
39
  }
40
40
  }
41
41
  // ✅ Global access point
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fiberx-backend-toolkit",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "description": "A TypeScript backend toolkit providing shared domain logic, infrastructure helpers, and utilities for FiberX server-side applications and services.",
5
5
  "type": "commonjs",
6
6
  "main": "./dist/index.js",