This repository was archived by the owner on Jul 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
packages/core/aqua-to-js-compiler Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" ],
You can’t perform that action at this time.
0 commit comments