mirror of
https://github.com/fluencelabs/fluence-js.git
synced 2025-06-25 13:51:34 +00:00
Misc fixes
This commit is contained in:
@ -3,9 +3,10 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"description": "Tool for generating aqua wrapper",
|
"description": "Tool for generating aqua wrapper",
|
||||||
"main": "index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "vitest run"
|
"test": "vitest run",
|
||||||
|
"build": "tsc"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "Fluence Labs",
|
"author": "Fluence Labs",
|
||||||
|
@ -14,10 +14,12 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import pkg from '../package.json' assert { type: 'json' };
|
import { NonArrowType, ProductType } from '@fluencelabs/interfaces';
|
||||||
import { ArrowType, 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'];
|
return pkg.dependencies['@fluencelabs/aqua-api'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
"extends": "../../../tsconfig.json",
|
"extends": "../../../tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"resolveJsonModule": true
|
"resolveJsonModule": true,
|
||||||
|
"outDir": "./dist"
|
||||||
},
|
},
|
||||||
"include": ["src/**/*"],
|
"include": ["src/**/*"],
|
||||||
"exclude": ["node_modules", "dist"],
|
"exclude": ["node_modules", "dist"],
|
||||||
|
Reference in New Issue
Block a user