@spinajs/configuration
Advanced tools
Comparing version 1.0.10 to 1.0.12
@@ -12,2 +12,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FrameworkConfiguration = exports.Configuration = void 0; | ||
const di_1 = require("@spinajs/di"); | ||
@@ -84,2 +85,4 @@ const fs = require("fs"); | ||
path_1.normalize(path_1.join(path_1.resolve(__dirname).split(path_1.sep + 'node_modules')[0], '/node_modules/@spinajs/http/lib/config')), | ||
path_1.normalize(path_1.join(path_1.resolve(__dirname).split(path_1.sep + 'node_modules')[0], '/node_modules/@spinajs/acl-http/lib/config')), | ||
path_1.normalize(path_1.join(path_1.resolve(__dirname).split(path_1.sep + 'node_modules')[0], '/node_modules/@spinajs/jobs/lib/config')), | ||
// project paths - last to allow overwrite @spinajs conf | ||
@@ -94,4 +97,4 @@ path_1.normalize(path_1.join(path_1.resolve(__dirname).split(path_1.sep + 'node_modules')[0], '/dist/config')), | ||
this.Config = {}; | ||
this.RunApp = (app !== null && app !== void 0 ? app : parseArgv('--app')); | ||
this.BaseDir = (_a = (appBaseDir !== null && appBaseDir !== void 0 ? appBaseDir : parseArgv('--appPath')), (_a !== null && _a !== void 0 ? _a : path_1.join(__dirname, '../apps/'))); | ||
this.RunApp = app !== null && app !== void 0 ? app : parseArgv('--app'); | ||
this.BaseDir = (_a = appBaseDir !== null && appBaseDir !== void 0 ? appBaseDir : parseArgv('--appPath')) !== null && _a !== void 0 ? _a : path_1.join(__dirname, '../apps/'); | ||
log(`Running app: ${this.RunApp}`); | ||
@@ -98,0 +101,0 @@ log(`Base dir at: ${this.BaseDir}`); |
{ | ||
"name": "@spinajs/configuration", | ||
"version": "1.0.10", | ||
"version": "1.0.12", | ||
"description": "framework configuration module", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19547
272
281
25
0
93