Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Commit 2550588

Browse files
author
Akim Mamedov
committed
Misc fixes
1 parent 7ea0ac9 commit 2550588

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

packages/core/aqua-to-js-compiler/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
"type": "module",
44
"version": "0.0.0",
55
"description": "Tool for generating aqua wrapper",
6-
"main": "index.js",
6+
"main": "dist/index.js",
77
"scripts": {
8-
"test": "vitest run"
8+
"test": "vitest run",
9+
"build": "tsc"
910
},
1011
"keywords": [],
1112
"author": "Fluence Labs",

packages/core/aqua-to-js-compiler/src/utils.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
* limitations under the License.
1515
*/
1616

17-
import pkg from '../package.json' assert { type: 'json' };
18-
import { ArrowType, NonArrowType, ProductType } from '@fluencelabs/interfaces';
17+
import { NonArrowType, ProductType } from '@fluencelabs/interfaces';
18+
import { readFile } from 'fs/promises';
1919

20-
export function getAquaApiVersion() {
20+
export async function getAquaApiVersion() {
21+
const content = await readFile('../package.json');
22+
const pkg = JSON.parse(content.toString());
2123
return pkg.dependencies['@fluencelabs/aqua-api'];
2224
}
2325

packages/core/aqua-to-js-compiler/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"extends": "../../../tsconfig.json",
33
"compilerOptions": {
44
"esModuleInterop": true,
5-
"resolveJsonModule": true
5+
"resolveJsonModule": true,
6+
"outDir": "./dist"
67
},
78
"include": ["src/**/*"],
89
"exclude": ["node_modules", "dist"],

0 commit comments

Comments
 (0)