@luvio/cli 0.63.1 → 0.65.0
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/lib/commands/generate.js +5 -5
- package/lib/commands/generate.js.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
package/lib/commands/generate.js
CHANGED
|
@@ -3,20 +3,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const core_1 = require("@oclif/core");
|
|
5
5
|
const compiler_1 = require("@luvio/compiler");
|
|
6
|
-
const path_1 = tslib_1.__importDefault(require("path"));
|
|
7
|
-
const reporter_1 = tslib_1.__importDefault(require("../reporter"));
|
|
6
|
+
const path_1 = (0, tslib_1.__importDefault)(require("path"));
|
|
7
|
+
const reporter_1 = (0, tslib_1.__importDefault)(require("../reporter"));
|
|
8
8
|
class Generate extends core_1.Command {
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = await this.parse(Generate);
|
|
11
11
|
let plugin;
|
|
12
12
|
if (flags.plugin) {
|
|
13
|
-
plugin = await Promise.resolve().then(() => tslib_1.__importStar(require(path_1.default.resolve(flags.plugin))));
|
|
13
|
+
plugin = await Promise.resolve().then(() => (0, tslib_1.__importStar)(require(path_1.default.resolve(flags.plugin))));
|
|
14
14
|
}
|
|
15
15
|
const filePath = args.input;
|
|
16
|
-
const parseErrors = await compiler_1.generate(filePath, args.outputDir, plugin);
|
|
16
|
+
const parseErrors = await (0, compiler_1.generate)(filePath, args.outputDir, plugin);
|
|
17
17
|
if (Array.isArray(parseErrors)) {
|
|
18
18
|
// eslint-disable-next-line no-console
|
|
19
|
-
console.log(reporter_1.default(filePath, parseErrors));
|
|
19
|
+
console.log((0, reporter_1.default)(filePath, parseErrors));
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.js","sourceRoot":"","sources":["../../src/commands/generate.ts"],"names":[],"mappings":";;;AAAA,sCAA6C;AAC7C,8CAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"generate.js","sourceRoot":"","sources":["../../src/commands/generate.ts"],"names":[],"mappings":";;;AAAA,sCAA6C;AAC7C,8CAA2C;AAC3C,6DAAwB;AACxB,wEAAmC;AAEnC,MAAqB,QAAS,SAAQ,cAAO;IAwBzC,KAAK,CAAC,GAAG;QACL,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACnD,IAAI,MAAM,CAAC;QACX,IAAI,KAAK,CAAC,MAAM,EAAE;YACd,MAAM,GAAG,qEAAa,cAAI,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,GAAC,CAAC;SACrD;QACD,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC;QAC5B,MAAM,WAAW,GAAG,MAAM,IAAA,mBAAQ,EAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QACrE,IAAI,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;YAC5B,sCAAsC;YACtC,OAAO,CAAC,GAAG,CAAC,IAAA,kBAAQ,EAAC,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC;SAChD;IACL,CAAC;;AApCL,2BAqCC;AApCU,oBAAW,GAAG,4DAA4D,CAAC;AAE3E,iBAAQ,GAAG,CAAC,0CAA0C,CAAC,CAAC;AAExD,aAAI,GAAG;IACV;QACI,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,YAAY;KAC5B;IACD;QACI,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,kBAAkB;KAClC;CACJ,CAAC;AAEK,cAAK,GAAG;IACX,MAAM,EAAE,YAAK,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,GAAG;KACZ,CAAC;CACL,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.run = void 0;
|
|
3
4
|
var core_1 = require("@oclif/core");
|
|
4
5
|
Object.defineProperty(exports, "run", { enumerable: true, get: function () { return core_1.run; } });
|
|
5
6
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,oCAAkC;AAAzB,2FAAA,GAAG,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luvio/cli",
|
|
3
3
|
"description": "CLI for Luvio Compiler",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.65.0",
|
|
5
5
|
"bin": {
|
|
6
6
|
"luvio": "./bin/run"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@luvio/compiler": "0.
|
|
9
|
+
"@luvio/compiler": "0.65.0",
|
|
10
10
|
"@oclif/core": "^1.0.11",
|
|
11
11
|
"chalk": "^4.0.0",
|
|
12
12
|
"strip-ansi": "^6.0.0",
|