Misc fixes

This commit is contained in:
Akim Mamedov
2023-09-18 18:12:45 +07:00
parent 7ea0ac965b
commit 2550588e37
3 changed files with 10 additions and 6 deletions

View File

@ -3,9 +3,10 @@
"type": "module",
"version": "0.0.0",
"description": "Tool for generating aqua wrapper",
"main": "index.js",
"main": "dist/index.js",
"scripts": {
"test": "vitest run"
"test": "vitest run",
"build": "tsc"
},
"keywords": [],
"author": "Fluence Labs",

View File

@ -14,10 +14,12 @@
* limitations under the License.
*/
import pkg from '../package.json' assert { type: 'json' };
import { ArrowType, NonArrowType, ProductType } from '@fluencelabs/interfaces';
import { NonArrowType, ProductType } from '@fluencelabs/interfaces';
import { readFile } from 'fs/promises';
export function getAquaApiVersion() {
export async function getAquaApiVersion() {
const content = await readFile('../package.json');
const pkg = JSON.parse(content.toString());
return pkg.dependencies['@fluencelabs/aqua-api'];
}

View File

@ -2,7 +2,8 @@
"extends": "../../../tsconfig.json",
"compilerOptions": {
"esModuleInterop": true,
"resolveJsonModule": true
"resolveJsonModule": true,
"outDir": "./dist"
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"],