@aeriajs/cli 0.0.201 → 0.0.203

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.
@@ -1,9 +1,5 @@
1
- export declare const SCHEMAS_DIR = "schemas";
1
+ export declare const OUT_DIR = ".aeria/out";
2
2
  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
3
  readonly _tag: "Error";
8
4
  readonly error: string;
9
5
  readonly result: undefined;
@@ -1,13 +1,9 @@
1
1
  import { Result } from '@aeriajs/types';
2
2
  import { compileFromFiles } from '@aeriajs/compiler';
3
- import * as fs from 'node:fs';
4
- export const SCHEMAS_DIR = 'schemas';
3
+ export const OUT_DIR = '.aeria/out';
5
4
  export const buildAeriaLangPhase = async () => {
6
- if (!fs.existsSync(SCHEMAS_DIR)) {
7
- return Result.result(`skipped build as the schemas directory ${SCHEMAS_DIR} wasn't found`);
8
- }
9
- const result = await compileFromFiles(SCHEMAS_DIR, {
10
- outDir: '.aeria/out',
5
+ const result = await compileFromFiles({
6
+ outDir: OUT_DIR,
11
7
  });
12
8
  if (!result.success) {
13
9
  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.201",
4
+ "version": "0.0.203",
5
5
  "description": "",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.mjs",
@@ -11,8 +11,8 @@
11
11
  },
12
12
  "exports": {
13
13
  ".": {
14
- "import": "./dist/index.js",
15
- "types": "./dist/index.d.ts"
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.js"
16
16
  },
17
17
  "./config/*": "./dist/config/*"
18
18
  },
@@ -40,10 +40,10 @@
40
40
  "@aeriajs/types": "link:../types"
41
41
  },
42
42
  "peerDependencies": {
43
- "@aeriajs/builtins": "^0.0.243",
43
+ "@aeriajs/builtins": "^0.0.244",
44
44
  "@aeriajs/common": "^0.0.136",
45
- "@aeriajs/compiler": "^0.0.15",
46
- "@aeriajs/core": "^0.0.243",
45
+ "@aeriajs/compiler": "^0.0.17",
46
+ "@aeriajs/core": "^0.0.244",
47
47
  "@aeriajs/entrypoint": "^0.0.140",
48
48
  "@aeriajs/types": "^0.0.118"
49
49
  },