Skip to content

Commit 217a4a1

Browse files
committed
build fixes
1 parent f82a45f commit 217a4a1

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

src/build/build-web.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,16 @@ async function buildWeb({ production }) {
4646
await writeFile(tmpBindingsPath, bindings);
4747

4848
// run typescript
49-
let tscPromise = execPromise('npx tsc -p tsconfig.web.json');
49+
await execPromise('npx tsc -p tsconfig.web.json');
5050

5151
// copy over pure js files
52-
let copyPromise = copy({
52+
await copy({
5353
'./src/bindings/compiled/web_bindings/': './dist/web/web_bindings/',
5454
'./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',
5656
'./src/bindings/js/web/': './dist/web/bindings/js/web/',
5757
});
5858

59-
await Promise.all([tscPromise, copyPromise]);
60-
6159
if (minify) {
6260
let o1jsWebPath = './dist/web/web_bindings/o1js_web.bc.js';
6361
let o1jsWeb = await readFile(o1jsWebPath, 'utf8');

tsconfig.node.json

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"include": [
44
"./src/index.ts",
55
"./src/snarky.js",
6-
"./src/bindings/js/wrapper.js",
76
"./src/mina-signer/src",
87
"./src/mina-signer/mina-signer.ts",
98
"./src/js_crypto",

tsconfig.test.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"include": [
44
"./src/**/*.unit-test.ts",
55
"./src/lib/**/*.ts",
6-
"./src/snarky.js",
7-
"./src/bindings/js/wrapper.js"
6+
"./src/snarky.js"
87
],
98
"compilerOptions": {
109
"outDir": "dist/node"

0 commit comments

Comments
 (0)