@elek-io/core 0.1.0 → 0.1.1
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/dist/index.cjs +10 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -12
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2066,12 +2066,9 @@ var ProjectService = class extends AbstractCrudService {
|
|
|
2066
2066
|
// src/index.ts
|
|
2067
2067
|
var ElekIoCore = class {
|
|
2068
2068
|
constructor(props) {
|
|
2069
|
-
|
|
2070
|
-
import_shared13.constructorElekIoCoreSchema.parse(props);
|
|
2071
|
-
}
|
|
2072
|
-
const environment = import_shared13.environmentSchema.parse(process.env.NODE_ENV);
|
|
2069
|
+
const parsedProps = import_shared13.constructorElekIoCoreSchema.parse(props);
|
|
2073
2070
|
const defaults = {
|
|
2074
|
-
environment,
|
|
2071
|
+
environment: "production",
|
|
2075
2072
|
version: "0.0.0",
|
|
2076
2073
|
file: {
|
|
2077
2074
|
json: {
|
|
@@ -2079,7 +2076,7 @@ var ElekIoCore = class {
|
|
|
2079
2076
|
}
|
|
2080
2077
|
}
|
|
2081
2078
|
};
|
|
2082
|
-
this.options = Object.assign({}, defaults,
|
|
2079
|
+
this.options = Object.assign({}, defaults, parsedProps);
|
|
2083
2080
|
this.jsonFileService = new JsonFileService(this.options);
|
|
2084
2081
|
this.userService = new UserService(this.jsonFileService);
|
|
2085
2082
|
this.gitService = new GitService2(this.options, this.userService);
|
|
@@ -2122,10 +2119,13 @@ var ElekIoCore = class {
|
|
|
2122
2119
|
this.entryService,
|
|
2123
2120
|
this.valueService
|
|
2124
2121
|
);
|
|
2125
|
-
if (environment !== "production") {
|
|
2126
|
-
console.info(
|
|
2127
|
-
|
|
2128
|
-
|
|
2122
|
+
if (this.options.environment !== "production") {
|
|
2123
|
+
console.info(
|
|
2124
|
+
`Initializing inside an "${this.options.environment}" environment`,
|
|
2125
|
+
{
|
|
2126
|
+
...this.options
|
|
2127
|
+
}
|
|
2128
|
+
);
|
|
2129
2129
|
}
|
|
2130
2130
|
import_fs_extra8.default.mkdirpSync(pathTo.projects);
|
|
2131
2131
|
import_fs_extra8.default.mkdirpSync(pathTo.tmp);
|