From b2af62796267e69af36a32388b69664e58eefdfa Mon Sep 17 00:00:00 2001 From: Tom French <15848336+TomAFrench@users.noreply.github.com> Date: Fri, 26 Sep 2025 09:43:17 +0000 Subject: [PATCH] chore(ci): fix docs breaking JS releases --- examples/browser/package.json | 4 ++-- examples/browser/test.sh | 6 ++++-- package.json | 4 ++-- yarn.lock | 26 +++++++++++++------------- 4 files changed, 21 insertions(+), 19 deletions(-) diff --git a/examples/browser/package.json b/examples/browser/package.json index 6bace525e2d..aa3a576e486 100644 --- a/examples/browser/package.json +++ b/examples/browser/package.json @@ -1,10 +1,10 @@ { - "name": "docs_tutorials_browser", + "name": "browser_example", "version": "1.0.0", "private": true, "type": "module", "scripts": { - "build": "nargo compile && vite build", + "build": "vite build", "test": "yarn build && playwright test browser.test.ts" }, "dependencies": { diff --git a/examples/browser/test.sh b/examples/browser/test.sh index 9ef42f5acaf..d9c6234e852 100755 --- a/examples/browser/test.sh +++ b/examples/browser/test.sh @@ -4,5 +4,7 @@ set -eu # This file is used for Noir CI and is not required. cd $(dirname $0) -# Run the tests (which include building) -yarn test \ No newline at end of file +nargo compile + +# Run the tests +yarn test diff --git a/package.json b/package.json index 479743a45a2..77dd7b57eab 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "examples/browser" ], "scripts": { - "build": "yarn workspaces foreach -A -vp --topological-dev --exclude \"{docs,@noir-lang/root}\" run build", + "build": "yarn workspaces foreach -A -vp --topological-dev --exclude \"{docs,@noir-lang/root,browser_example}\" run build", + "build:js:only": "yarn workspaces foreach -A -vtp --exclude \"{@noir-lang/acvm_js,@noir-lang/noirc_abi,@noir-lang/noir_wasm,docs,@noir-lang/root,browser_example}\" run build", "test": "yarn workspaces foreach -A -vp run test", "test:integration": "yarn workspace integration-tests test", "clean:workspaces": "yarn workspaces foreach -A --exclude @noir-lang/root run clean", @@ -22,7 +23,6 @@ "lint": "yarn workspaces foreach -A -vp run lint", "spellcheck": "cspell '**/*.{md,rs}' -c ./cspell.json", "prepare:publish": "yarn clean && yarn build", - "build:js:only": "yarn workspaces foreach -A -vtp --exclude \"{@noir-lang/acvm_js,@noir-lang/noirc_abi,@noir-lang/noir_wasm,docs,@noir-lang/root}\" run build", "nightly:version": "yarn workspaces foreach -A run nightly:version", "publish:all": "yarn install && yarn workspaces foreach -A run publish" }, diff --git a/yarn.lock b/yarn.lock index bbfcc73e1c0..b97bd51834e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13226,6 +13226,19 @@ __metadata: languageName: node linkType: hard +"browser_example@workspace:examples/browser": + version: 0.0.0-use.local + resolution: "browser_example@workspace:examples/browser" + dependencies: + "@aztec/bb.js": "npm:v3.0.0-nightly.20250916" + "@noir-lang/noir_js": "workspace:*" + "@playwright/test": "npm:^1.49.0" + "@types/node": "npm:^20.0.0" + typescript: "npm:^5.8.3" + vite: "npm:^7.0.6" + languageName: unknown + linkType: soft + "browserify-fs@npm:^1.0.0": version: 1.0.0 resolution: "browserify-fs@npm:1.0.0" @@ -15735,19 +15748,6 @@ __metadata: languageName: unknown linkType: soft -"docs_tutorials_browser@workspace:examples/browser": - version: 0.0.0-use.local - resolution: "docs_tutorials_browser@workspace:examples/browser" - dependencies: - "@aztec/bb.js": "npm:v3.0.0-nightly.20250916" - "@noir-lang/noir_js": "workspace:*" - "@playwright/test": "npm:^1.49.0" - "@types/node": "npm:^20.0.0" - typescript: "npm:^5.8.3" - vite: "npm:^7.0.6" - languageName: unknown - linkType: soft - "docusaurus-plugin-llms@npm:^0.1.5": version: 0.1.5 resolution: "docusaurus-plugin-llms@npm:0.1.5"