dataverse-utils 2.9.2 → 2.9.3
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.
|
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.retrieveAssembly = exports.deployAssembly = void 0;
|
|
7
7
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
8
8
|
const fs_1 = __importDefault(require("fs"));
|
|
9
|
-
const glob_1 =
|
|
9
|
+
const glob_1 = require("glob");
|
|
10
10
|
const node_1 = require("dataverse-webapi/lib/node");
|
|
11
11
|
const pluginType_1 = require("./pluginType");
|
|
12
12
|
const logger_1 = require("../logger");
|
|
13
13
|
async function deployAssembly(config, apiConfig, solution) {
|
|
14
|
-
const files = glob_1.
|
|
14
|
+
const files = await (0, glob_1.glob)(`bin/Debug/**/${config.name}.dll`);
|
|
15
15
|
if (files.length === 0) {
|
|
16
16
|
logger_1.logger.warn(`assembly ${config.name}.dll not found`);
|
|
17
17
|
return;
|
|
@@ -5,14 +5,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.deployPluginPackage = void 0;
|
|
7
7
|
const fs_1 = __importDefault(require("fs"));
|
|
8
|
-
const glob_1 =
|
|
8
|
+
const glob_1 = require("glob");
|
|
9
9
|
const node_1 = require("dataverse-webapi/lib/node");
|
|
10
10
|
const pluginAssembly_1 = require("./pluginAssembly");
|
|
11
11
|
const logger_1 = require("../logger");
|
|
12
12
|
const pluginType_1 = require("./pluginType");
|
|
13
13
|
const pluginStep_1 = require("./pluginStep");
|
|
14
14
|
async function deployPluginPackage(config, apiConfig, solution) {
|
|
15
|
-
const files = glob_1.
|
|
15
|
+
const files = await (0, glob_1.glob)(`**/${config.name}.*.nupkg`);
|
|
16
16
|
if (files.length === 0) {
|
|
17
17
|
logger_1.logger.warn(`package ${config.name}.nupkg not found`);
|
|
18
18
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dataverse-utils",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Utilities for interacting with Dataverse environments",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -26,16 +26,15 @@
|
|
|
26
26
|
"@azure/msal-node": "^2.6.1",
|
|
27
27
|
"commander": "^12.0.0",
|
|
28
28
|
"cryptr": "^6.2.0",
|
|
29
|
-
"dataverse-webapi": "^2.4.
|
|
30
|
-
"envinfo": "^7.10.0",
|
|
29
|
+
"dataverse-webapi": "^2.4.2",
|
|
31
30
|
"figures": "^3.2.0",
|
|
32
|
-
"glob": "^
|
|
31
|
+
"glob": "^10.3.10",
|
|
33
32
|
"kleur": "^4.1.5",
|
|
34
33
|
"prompts": "^2.4.2"
|
|
35
34
|
},
|
|
36
35
|
"devDependencies": {
|
|
37
36
|
"@types/cryptr": "^4.0.1",
|
|
38
|
-
"@types/glob": "^
|
|
37
|
+
"@types/glob": "^8.1.0",
|
|
39
38
|
"@types/node": "^18.19.20",
|
|
40
39
|
"@types/prompts": "^2.4.4"
|
|
41
40
|
},
|