@aeriajs/cli 0.0.201 → 0.0.202
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/dist/buildAeriaLang.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const GLOB_PATTERN = "**/*.aeria";
|
|
2
|
+
export declare const OUT_DIR = ".aeria/out";
|
|
2
3
|
export declare const buildAeriaLangPhase: () => Promise<{
|
|
3
|
-
readonly _tag: "Result";
|
|
4
|
-
readonly error: undefined;
|
|
5
|
-
readonly result: "skipped build as the schemas directory schemas wasn't found";
|
|
6
|
-
} | {
|
|
7
4
|
readonly _tag: "Error";
|
|
8
5
|
readonly error: string;
|
|
9
6
|
readonly result: undefined;
|
package/dist/buildAeriaLang.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { Result } from '@aeriajs/types';
|
|
2
2
|
import { compileFromFiles } from '@aeriajs/compiler';
|
|
3
|
-
|
|
4
|
-
export const
|
|
3
|
+
export const GLOB_PATTERN = '**/*.aeria';
|
|
4
|
+
export const OUT_DIR = '.aeria/out';
|
|
5
5
|
export const buildAeriaLangPhase = async () => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
const result = await compileFromFiles(SCHEMAS_DIR, {
|
|
10
|
-
outDir: '.aeria/out',
|
|
6
|
+
const result = await compileFromFiles(GLOB_PATTERN, {
|
|
7
|
+
outDir: OUT_DIR,
|
|
11
8
|
});
|
|
12
9
|
if (!result.success) {
|
|
13
10
|
return Result.error(result.errors.map((error) => `\n${error.fileLocation}:${error.location.line} at column (${error.location.start}-${error.location.end}) - ${error.message}`).join(' | '));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.202",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.mjs",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"@aeriajs/types": "link:../types"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@aeriajs/builtins": "^0.0.
|
|
43
|
+
"@aeriajs/builtins": "^0.0.244",
|
|
44
44
|
"@aeriajs/common": "^0.0.136",
|
|
45
|
-
"@aeriajs/compiler": "^0.0.
|
|
46
|
-
"@aeriajs/core": "^0.0.
|
|
45
|
+
"@aeriajs/compiler": "^0.0.16",
|
|
46
|
+
"@aeriajs/core": "^0.0.244",
|
|
47
47
|
"@aeriajs/entrypoint": "^0.0.140",
|
|
48
48
|
"@aeriajs/types": "^0.0.118"
|
|
49
49
|
},
|