diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cfc6598..5db3d20 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,6 +31,9 @@ jobs: with: node-version: 20 cache: yarn + - uses: noir-lang/noirup@v0.1.3 + with: + toolchain: 0.36.0 - run: yarn - run: yarn check diff --git a/package.json b/package.json index dcd2b16..ec8d1cd 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,8 @@ "bugs": "https://github.com/privacy-scaling-explorations/zk-kit.noir/issues", "private": true, "scripts": { - "check": "dprint check", - "fmt": "dprint fmt", + "check": "concurrently -c auto -n dprint,noirfmt 'dprint check' 'nargo fmt --check'", + "fmt": "concurrently -c auto -n dprint,noirfmt 'dprint fmt' 'nargo fmt'", "postinstall": "husky && git config --local core.editor cat", "build": "nargo compile", "test": "npm run build && mocha && nargo test --workspace", @@ -35,6 +35,7 @@ "@types/mocha": "^10", "chai": "^4.5.0", "changelogithub": "patch:changelogithub@npm%3A0.13.3#~/.yarn/patches/changelogithub-npm-0.13.3-1783949906.patch", + "concurrently": "^9.1.0", "czg": "^1.9.1", "dprint": "^0.46.3", "husky": "^9.0.11", diff --git a/yarn.lock b/yarn.lock index ee10f1d..0e59b5e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -811,7 +811,7 @@ __metadata: languageName: node linkType: hard -"chalk@npm:^4.1.0": +"chalk@npm:^4.1.0, chalk@npm:^4.1.2": version: 4.1.2 resolution: "chalk@npm:4.1.2" dependencies: @@ -1051,6 +1051,24 @@ __metadata: languageName: node linkType: hard +"concurrently@npm:^9.1.0": + version: 9.1.0 + resolution: "concurrently@npm:9.1.0" + dependencies: + chalk: "npm:^4.1.2" + lodash: "npm:^4.17.21" + rxjs: "npm:^7.8.1" + shell-quote: "npm:^1.8.1" + supports-color: "npm:^8.1.1" + tree-kill: "npm:^1.2.2" + yargs: "npm:^17.7.2" + bin: + conc: dist/bin/concurrently.js + concurrently: dist/bin/concurrently.js + checksum: 10/9ed158095a6dcb30b2fbc00f173a993d080b6eca466b8005650b051f82618991ba8ae76b39c41ae78780f83846154e5ec434753f402aa4401acf0ffb2422e1cf + languageName: node + linkType: hard + "confbox@npm:^0.1.7": version: 0.1.7 resolution: "confbox@npm:0.1.7" @@ -2219,6 +2237,13 @@ __metadata: languageName: node linkType: hard +"lodash@npm:^4.17.21": + version: 4.17.21 + resolution: "lodash@npm:4.17.21" + checksum: 10/c08619c038846ea6ac754abd6dd29d2568aa705feb69339e836dfa8d8b09abbb2f859371e86863eda41848221f9af43714491467b5b0299122431e202bb0c532 + languageName: node + linkType: hard + "log-symbols@npm:^4.1.0": version: 4.1.0 resolution: "log-symbols@npm:4.1.0" @@ -2943,6 +2968,15 @@ __metadata: languageName: node linkType: hard +"rxjs@npm:^7.8.1": + version: 7.8.1 + resolution: "rxjs@npm:7.8.1" + dependencies: + tslib: "npm:^2.1.0" + checksum: 10/b10cac1a5258f885e9dd1b70d23c34daeb21b61222ee735d2ec40a8685bdca40429000703a44f0e638c27a684ac139e1c37e835d2a0dc16f6fc061a138ae3abb + languageName: node + linkType: hard + "safe-buffer@npm:^5.1.0": version: 5.2.1 resolution: "safe-buffer@npm:5.2.1" @@ -2998,6 +3032,13 @@ __metadata: languageName: node linkType: hard +"shell-quote@npm:^1.8.1": + version: 1.8.1 + resolution: "shell-quote@npm:1.8.1" + checksum: 10/af19ab5a1ec30cb4b2f91fd6df49a7442d5c4825a2e269b3712eded10eedd7f9efeaab96d57829880733fc55bcdd8e9b1d8589b4befb06667c731d08145e274d + languageName: node + linkType: hard + "signal-exit@npm:^3.0.3, signal-exit@npm:^3.0.7": version: 3.0.7 resolution: "signal-exit@npm:3.0.7" @@ -3240,6 +3281,15 @@ __metadata: languageName: node linkType: hard +"tree-kill@npm:^1.2.2": + version: 1.2.2 + resolution: "tree-kill@npm:1.2.2" + bin: + tree-kill: cli.js + checksum: 10/49117f5f410d19c84b0464d29afb9642c863bc5ba40fcb9a245d474c6d5cc64d1b177a6e6713129eb346b40aebb9d4631d967517f9fbe8251c35b21b13cd96c7 + languageName: node + linkType: hard + "ts-node@npm:^10.9.2": version: 10.9.2 resolution: "ts-node@npm:10.9.2" @@ -3278,6 +3328,13 @@ __metadata: languageName: node linkType: hard +"tslib@npm:^2.1.0": + version: 2.8.1 + resolution: "tslib@npm:2.8.1" + checksum: 10/3e2e043d5c2316461cb54e5c7fe02c30ef6dccb3384717ca22ae5c6b5bc95232a6241df19c622d9c73b809bea33b187f6dbc73030963e29950c2141bc32a79f7 + languageName: node + linkType: hard + "tslib@npm:^2.4.0": version: 2.7.0 resolution: "tslib@npm:2.7.0" @@ -3498,7 +3555,7 @@ __metadata: languageName: node linkType: hard -"yargs@npm:^17.0.0": +"yargs@npm:^17.0.0, yargs@npm:^17.7.2": version: 17.7.2 resolution: "yargs@npm:17.7.2" dependencies: @@ -3547,6 +3604,7 @@ __metadata: "@types/mocha": "npm:^10" chai: "npm:^4.5.0" changelogithub: "patch:changelogithub@npm%3A0.13.3#~/.yarn/patches/changelogithub-npm-0.13.3-1783949906.patch" + concurrently: "npm:^9.1.0" czg: "npm:^1.9.1" dprint: "npm:^0.46.3" husky: "npm:^9.0.11"