@lionweb/cli 0.6.0 → 0.6.2-beta.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/README.md +4 -0
- package/dist/validator.js +2 -2
- package/dist/validator.js.map +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -39,6 +39,10 @@ That means that key-value pairs appear in precisely the same order as they do in
|
|
|
39
39
|
|
|
40
40
|
## Changelog
|
|
41
41
|
|
|
42
|
+
### 0.6.1
|
|
43
|
+
|
|
44
|
+
* Fix that `@lionweb/validation` was not specified as a (non-dev) dependency.
|
|
45
|
+
|
|
42
46
|
### 0.6.0
|
|
43
47
|
|
|
44
48
|
* Change the `diagram` command to output PlantUML and Mermaid diagram files _per language_.
|
package/dist/validator.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LanguageRegistry, validateFileResult } from "@lionweb/validation";
|
|
2
2
|
export function runValidation(file) {
|
|
3
3
|
console.log(`Validating ${file}`);
|
|
4
|
-
const validationResult =
|
|
4
|
+
const validationResult = validateFileResult(file, false, new LanguageRegistry());
|
|
5
5
|
console.log(validationResult.hasErrors()
|
|
6
6
|
? validationResult.issues.map(issue => issue.errorMsg()).join("\n")
|
|
7
7
|
: "No errors found");
|
package/dist/validator.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validator.js","sourceRoot":"","sources":["../src/validator.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"validator.js","sourceRoot":"","sources":["../src/validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAG1E,MAAM,UAAU,aAAa,CAAC,IAAY;IACtC,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,EAAE,CAAC,CAAA;IACjC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,gBAAgB,EAAE,CAAC,CAAA;IAChF,OAAO,CAAC,GAAG,CACP,gBAAgB,CAAC,SAAS,EAAE;QACxB,CAAC,CAAC,gBAAgB,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QACnE,CAAC,CAAC,iBAAiB,CAC1B,CAAA;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lionweb/cli",
|
|
3
|
-
"version": "0.6.0",
|
|
3
|
+
"version": "0.6.2-beta.0",
|
|
4
4
|
"description": "LionWeb CLI for {Java|Type}Script",
|
|
5
5
|
"bin": {
|
|
6
6
|
"lionweb-cli": "./dist/lionweb-cli.js"
|
|
@@ -18,8 +18,9 @@
|
|
|
18
18
|
"url": "https://github.com/LionWeb-io/lionweb-typescript/issues"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@lionweb/core": "0.6.
|
|
22
|
-
"@lionweb/utilities": "0.6.
|
|
21
|
+
"@lionweb/core": "0.6.1",
|
|
22
|
+
"@lionweb/utilities": "0.6.1",
|
|
23
|
+
"@lionweb/validation": "0.6.1"
|
|
23
24
|
},
|
|
24
25
|
"scripts": {
|
|
25
26
|
"clean": "rm -rf dist/ lionweb-cli-*.tgz",
|