kschema-fs-read-config 1.4.7 → 1.4.8
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/bin/v4/index.js +3 -3
- package/index.js +1 -1
- package/package.json +1 -1
package/bin/v4/index.js
CHANGED
|
@@ -39,7 +39,7 @@ const getPort = (rootPath) => {
|
|
|
39
39
|
return process.env.PORT;
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
const
|
|
42
|
+
const getSchemasPath = (rootPath) => {
|
|
43
43
|
dotenv.config({
|
|
44
44
|
path: path.join(rootPath, ".env")
|
|
45
45
|
});
|
|
@@ -47,7 +47,7 @@ const schemasPath = (rootPath) => {
|
|
|
47
47
|
return process.env.SchemaPath;
|
|
48
48
|
};
|
|
49
49
|
|
|
50
|
-
const
|
|
50
|
+
const getDataPath = (rootPath) => {
|
|
51
51
|
dotenv.config({
|
|
52
52
|
path: path.join(rootPath, ".env")
|
|
53
53
|
});
|
|
@@ -57,5 +57,5 @@ const dataPath = (rootPath) => {
|
|
|
57
57
|
|
|
58
58
|
export {
|
|
59
59
|
getAllFilesContent, getTableNames, getPort,
|
|
60
|
-
|
|
60
|
+
getSchemasPath, getDataPath
|
|
61
61
|
};
|
package/index.js
CHANGED
|
@@ -45,6 +45,6 @@ if (!match || match[0] !== expectedExportLine) {
|
|
|
45
45
|
|
|
46
46
|
export { latestModule };
|
|
47
47
|
|
|
48
|
-
export const {
|
|
48
|
+
export const { getAllFilesContent, getDataPath, getPort, getSchemasPath, getTableNames } = latestModule;
|
|
49
49
|
|
|
50
50
|
|