@golemio/core 1.2.7-dev.522263862 → 1.2.7-dev.523716850
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/import-test-data.js +11 -0
- package/package.json +3 -3
package/bin/import-test-data.js
CHANGED
|
@@ -22,6 +22,9 @@ const variables = {
|
|
|
22
22
|
mongoDataPaths: process.env.MONGO_DATA_PATHS || " ",
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated No longer maintained, use Golemio CLI instead
|
|
27
|
+
*/
|
|
25
28
|
const importPostgresTestData = async () => {
|
|
26
29
|
const files = glob.sync(variables.sqlDumpFiles, {
|
|
27
30
|
cwd: APP_ROOT_PATH,
|
|
@@ -42,6 +45,9 @@ const importPostgresTestData = async () => {
|
|
|
42
45
|
}
|
|
43
46
|
};
|
|
44
47
|
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated No longer maintained
|
|
50
|
+
*/
|
|
45
51
|
const importMongoTestData = async () => {
|
|
46
52
|
const paths = glob.sync(variables.mongoDataPaths, {
|
|
47
53
|
cwd: APP_ROOT_PATH,
|
|
@@ -108,6 +114,11 @@ const importMongoTestData = async () => {
|
|
|
108
114
|
};
|
|
109
115
|
|
|
110
116
|
(async () => {
|
|
117
|
+
console.log(
|
|
118
|
+
"\x1b[33m%s\x1b[0m",
|
|
119
|
+
"Deprecation warning: golemio-import-test-data is no longer maintained. Use Golemio CLI import-db-data instead"
|
|
120
|
+
);
|
|
121
|
+
|
|
111
122
|
await importPostgresTestData();
|
|
112
123
|
await importMongoTestData();
|
|
113
124
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/core",
|
|
3
|
-
"version": "1.2.7-dev.
|
|
3
|
+
"version": "1.2.7-dev.523716850",
|
|
4
4
|
"description": "Golemio Core Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"url": "https://gitlab.com/operator-ict/golemio/code/modules/core"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@commitlint/cli": "^
|
|
31
|
-
"@commitlint/config-conventional": "^
|
|
30
|
+
"@commitlint/cli": "^16.2.1",
|
|
31
|
+
"@commitlint/config-conventional": "^16.2.1",
|
|
32
32
|
"@golemio/eslint-config": "^1.1.0",
|
|
33
33
|
"@types/amqplib": "^0.5.17",
|
|
34
34
|
"@types/apicache": "^1.2.3",
|