@kaapi/cli 0.0.16 → 0.0.18
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/package.json +2 -2
- package/dist/generators/auth-design/authDesign.d.ts +0 -1
- package/dist/generators/auth-design/authDesign.js +0 -7
- package/dist/generators/auth-design/authDesign.js.map +0 -1
- package/dist/loadConfig.d.ts +0 -2
- package/dist/loadConfig.js +0 -33
- package/dist/loadConfig.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaapi/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"description": "CLI for kaapi",
|
|
5
5
|
"main": "dist/definitions.js",
|
|
6
6
|
"exports": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"scripts": {
|
|
36
36
|
"lint": "eslint .",
|
|
37
37
|
"build": "tsc",
|
|
38
|
-
"test": "ts-node src/index.ts",
|
|
38
|
+
"test:run": "ts-node src/index.ts",
|
|
39
39
|
"test:bin": "node dist/index.js"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
//1. questions
|
|
3
|
-
// - name of the class (to kebab case for the name of the strategy) => input text
|
|
4
|
-
// - type of auth (apiKey, bearer, basic, ...) => select
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
//2. create file (filepath)
|
|
7
|
-
//# sourceMappingURL=authDesign.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"authDesign.js","sourceRoot":"","sources":["../../../src/generators/auth-design/authDesign.ts"],"names":[],"mappings":";AAAA,cAAc;AACd,iFAAiF;AACjF,wDAAwD;;AAExD,2BAA2B"}
|
package/dist/loadConfig.d.ts
DELETED
package/dist/loadConfig.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.loadKaapiConfig = loadKaapiConfig;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const node_fs_1 = tslib_1.__importDefault(require("node:fs"));
|
|
6
|
-
const node_path_1 = tslib_1.__importDefault(require("node:path"));
|
|
7
|
-
const url_1 = require("url");
|
|
8
|
-
const prompts = tslib_1.__importStar(require("@clack/prompts"));
|
|
9
|
-
function loadKaapiConfig() {
|
|
10
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
|
-
const configNames = ['kaapi.config.mjs', 'kaapi.config.js'];
|
|
12
|
-
let configPath;
|
|
13
|
-
for (const name of configNames) {
|
|
14
|
-
const fullPath = node_path_1.default.resolve(process.cwd(), name);
|
|
15
|
-
if (node_fs_1.default.existsSync(fullPath)) {
|
|
16
|
-
configPath = fullPath;
|
|
17
|
-
break;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
if (!configPath) {
|
|
21
|
-
prompts.log.warn('No kaapi config file found.');
|
|
22
|
-
return {};
|
|
23
|
-
}
|
|
24
|
-
// Support both CommonJS and ESM exports
|
|
25
|
-
const configModulePath = node_path_1.default.resolve(configPath);
|
|
26
|
-
const configModuleUrl = (0, url_1.pathToFileURL)(configModulePath).href;
|
|
27
|
-
const configModule = yield import(configModuleUrl);
|
|
28
|
-
const config = configModule.default || configModule;
|
|
29
|
-
prompts.log.info(`Loaded kaapi config: ${configPath}`);
|
|
30
|
-
return config;
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=loadConfig.js.map
|
package/dist/loadConfig.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loadConfig.js","sourceRoot":"","sources":["../src/loadConfig.ts"],"names":[],"mappings":";;AAMA,0CA0BC;;AAhCD,8DAAyB;AACzB,kEAA6B;AAC7B,6BAAoC;AACpC,gEAA0C;AAG1C,SAAsB,eAAe;;QACjC,MAAM,WAAW,GAAG,CAAC,kBAAkB,EAAE,iBAAiB,CAAC,CAAC;QAC5D,IAAI,UAA8B,CAAC;QAEnC,KAAK,MAAM,IAAI,IAAI,WAAW,EAAE,CAAC;YAC7B,MAAM,QAAQ,GAAG,mBAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,CAAC;YACnD,IAAI,iBAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAC1B,UAAU,GAAG,QAAQ,CAAC;gBACtB,MAAM;YACV,CAAC;QACL,CAAC;QAED,IAAI,CAAC,UAAU,EAAE,CAAC;YACd,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;YAChD,OAAO,EAAE,CAAA;QACb,CAAC;QAED,wCAAwC;QACxC,MAAM,gBAAgB,GAAG,mBAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAClD,MAAM,eAAe,GAAG,IAAA,mBAAa,EAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC;QAC7D,MAAM,YAAY,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,IAAI,YAAY,CAAC;QAEpD,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,wBAAwB,UAAU,EAAE,CAAC,CAAA;QAEtD,OAAO,MAAM,CAAC;IAClB,CAAC;CAAA"}
|