File tree 3 files changed +4
-8
lines changed
3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -46,18 +46,16 @@ async function buildWeb({ production }) {
46
46
await writeFile ( tmpBindingsPath , bindings ) ;
47
47
48
48
// run typescript
49
- let tscPromise = execPromise ( 'npx tsc -p tsconfig.web.json' ) ;
49
+ await execPromise ( 'npx tsc -p tsconfig.web.json' ) ;
50
50
51
51
// copy over pure js files
52
- let copyPromise = copy ( {
52
+ await copy ( {
53
53
'./src/bindings/compiled/web_bindings/' : './dist/web/web_bindings/' ,
54
54
'./src/snarky.d.ts' : './dist/web/snarky.d.ts' ,
55
- './src/bindings/js/wrapper .web.js' : './dist/web/bindings/js/wrapper .js' ,
55
+ './src/snarky .web.js' : './dist/web/snarky .js' ,
56
56
'./src/bindings/js/web/' : './dist/web/bindings/js/web/' ,
57
57
} ) ;
58
58
59
- await Promise . all ( [ tscPromise , copyPromise ] ) ;
60
-
61
59
if ( minify ) {
62
60
let o1jsWebPath = './dist/web/web_bindings/o1js_web.bc.js' ;
63
61
let o1jsWeb = await readFile ( o1jsWebPath , 'utf8' ) ;
Original file line number Diff line number Diff line change 3
3
"include" : [
4
4
" ./src/index.ts" ,
5
5
" ./src/snarky.js" ,
6
- " ./src/bindings/js/wrapper.js" ,
7
6
" ./src/mina-signer/src" ,
8
7
" ./src/mina-signer/mina-signer.ts" ,
9
8
" ./src/js_crypto" ,
Original file line number Diff line number Diff line change 3
3
"include" : [
4
4
" ./src/**/*.unit-test.ts" ,
5
5
" ./src/lib/**/*.ts" ,
6
- " ./src/snarky.js" ,
7
- " ./src/bindings/js/wrapper.js"
6
+ " ./src/snarky.js"
8
7
],
9
8
"compilerOptions" : {
10
9
"outDir" : " dist/node"
You can’t perform that action at this time.
0 commit comments