dceky 1.0.5-beta.ky-declarations.3 → 1.0.5-beta.ky-declarations.4
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.
|
@@ -25,7 +25,9 @@ var genKyCommandDeclarations = function () {
|
|
|
25
25
|
var root = (0, getRootPath_1.default)();
|
|
26
26
|
// Get paths
|
|
27
27
|
var kyCommandsDir = path_1.default.join(root, 'node_modules/dceky/src/commands');
|
|
28
|
-
var declarationsPath = path_1.default.join(root, 'cypress/
|
|
28
|
+
var declarationsPath = path_1.default.join(root, 'cypress/support/kyCommandDeclarations.ts');
|
|
29
|
+
console.log('Generating Ky command declarations file...');
|
|
30
|
+
console.log(kyCommandsDir, declarationsPath);
|
|
29
31
|
// Find all command files
|
|
30
32
|
var commandFiles = (fs_1.default
|
|
31
33
|
// Read all files in the commands directory
|
|
@@ -38,6 +40,8 @@ var genKyCommandDeclarations = function () {
|
|
|
38
40
|
.filter(function (file) {
|
|
39
41
|
return file !== 'index.ts';
|
|
40
42
|
}));
|
|
43
|
+
console.log("Found ".concat(commandFiles.length, " Ky command files."));
|
|
44
|
+
console.log(commandFiles);
|
|
41
45
|
// Read the files, extract declarations
|
|
42
46
|
var unprocessedDeclarations = [];
|
|
43
47
|
for (var i = 0; i < commandFiles.length; i += 1) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"genKyCommandDeclarations.js","sourceRoot":"","sources":["../../setup/genKyCommandDeclarations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,kBAAkB;AAClB,0CAAoB;AACpB,8CAAwB;AAExB,wBAAwB;AACxB,sEAAgD;AAEhD;;;GAGG;AACH,IAAM,wBAAwB,GAAG;IAC/B,IAAM,IAAI,GAAG,IAAA,qBAAW,GAAE,CAAC;IAE3B,YAAY;IACZ,IAAM,aAAa,GAAG,cAAI,CAAC,IAAI,CAAC,IAAI,EAAE,iCAAiC,CAAC,CAAC;IACzE,IAAM,gBAAgB,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,kBAAkB;QAClB,uBAAuB;QACvB,2BAA2B;OAExB,qBAAqB;QACxB,OAAO;QACP,KAAK;QACL,GAAG;QACH,EAAE;cACF,IAAI,CAAC,IAAI,CAAC,CAAC;IAEb,gBAAgB;IAChB,YAAE,CAAC,aAAa,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,CAAC,CAAC;AAChE,CAAC,CAAC;AAEF,kBAAe,wBAAwB,CAAC"}
|
package/package.json
CHANGED
|
@@ -14,7 +14,9 @@ const genKyCommandDeclarations = () => {
|
|
|
14
14
|
|
|
15
15
|
// Get paths
|
|
16
16
|
const kyCommandsDir = path.join(root, 'node_modules/dceky/src/commands');
|
|
17
|
-
const declarationsPath = path.join(root, 'cypress/
|
|
17
|
+
const declarationsPath = path.join(root, 'cypress/support/kyCommandDeclarations.ts');
|
|
18
|
+
console.log('Generating Ky command declarations file...');
|
|
19
|
+
console.log(kyCommandsDir, declarationsPath);
|
|
18
20
|
|
|
19
21
|
// Find all command files
|
|
20
22
|
const commandFiles = (
|
|
@@ -30,6 +32,8 @@ const genKyCommandDeclarations = () => {
|
|
|
30
32
|
return file !== 'index.ts';
|
|
31
33
|
})
|
|
32
34
|
);
|
|
35
|
+
console.log(`Found ${commandFiles.length} Ky command files.`);
|
|
36
|
+
console.log(commandFiles);
|
|
33
37
|
|
|
34
38
|
// Read the files, extract declarations
|
|
35
39
|
const unprocessedDeclarations: string[] = [];
|