-
Notifications
You must be signed in to change notification settings - Fork 12k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: setup
rules_js
and link dependencies
This also requires us to move patches from `patch:` protocol to `patch-package` temporarily. This is because we need to temporarily use pnpm and yarn berry in hybrid, and both don't have any overlap in how patching works; and pnpm would fail if it sees the `patch` protocol.
- Loading branch information
1 parent
183f772
commit f22d4ee
Showing
14 changed files
with
15,778 additions
and
515 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
.aspect/rules/external_repository_action_cache/npm_translate_lock_MzA5NzUwNzMx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# @generated | ||
# Input hashes for repository rule npm_translate_lock(name = "npm2", pnpm_lock = "@//:pnpm-lock.yaml"). | ||
# This file should be checked into version control along with the pnpm-lock.yaml file. | ||
.npmrc=-2023857461 | ||
package.json=1474377014 | ||
pnpm-lock.yaml=1733416088 | ||
pnpm-workspace.yaml=1711114604 | ||
yarn.lock=-607783516 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
engine-strict = true | ||
# Yarn Berry doesn't check engines at all, so pnpm shouldn't either. | ||
engine-strict = false | ||
|
||
# Disabling pnpm [hoisting](https://pnpm.io/npmrc#hoist) by setting `hoist=false` is recommended on | ||
# projects using rules_js so that pnpm outside of Bazel lays out a node_modules tree similar to what | ||
# rules_js lays out under Bazel (without a hidden node_modules/.pnpm/node_modules) | ||
hoist=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ | |
dist/ | ||
/tests/legacy-cli/e2e/assets/ | ||
/tools/test/*.json | ||
pnpm-lock.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,15 +10,14 @@ | |
"sdk", | ||
"Angular DevKit" | ||
], | ||
"packageManager": "[email protected]", | ||
"scripts": { | ||
"admin": "node --no-warnings=ExperimentalWarning --loader ts-node/esm/transpile-only ./scripts/devkit-admin.mjs", | ||
"test": "bazel test //packages/...", | ||
"build": "yarn admin build", | ||
"lint": "eslint --cache --max-warnings=0 \"**/*.@(ts|mts|cts)\"", | ||
"templates": "yarn admin templates", | ||
"validate": "yarn admin validate", | ||
"postinstall": "yarn webdriver-update && yarn husky", | ||
"postinstall": "patch-package && yarn webdriver-update && yarn husky", | ||
"//webdriver-update-README": "ChromeDriver version must match Puppeteer Chromium version, see https://github.com/GoogleChrome/puppeteer/releases http://chromedriver.chromium.org/downloads", | ||
"webdriver-update": "webdriver-manager update --standalone false --gecko false --versions.chrome 106.0.5249.21", | ||
"public-api:check": "node goldens/public-api/manage.js test", | ||
|
@@ -42,18 +41,10 @@ | |
"url": "https://github.com/angular/angular-cli/issues" | ||
}, | ||
"homepage": "https://github.com/angular/angular-cli", | ||
"workspaces": { | ||
"packages": [ | ||
"packages/angular/*", | ||
"packages/angular_devkit/*", | ||
"packages/ngtools/*", | ||
"packages/schematics/*" | ||
] | ||
}, | ||
"devDependencies": { | ||
"@ampproject/remapping": "2.3.0", | ||
"@angular/animations": "19.1.0-next.3", | ||
"@angular/bazel": "patch:@angular/bazel@https%3A//github.com/angular/bazel-builds.git%23commit=07617f0f8540d27f8895b1820a6f994e1e5b7277#~/.yarn/patches/@angular-bazel-https-9848736cf4.patch", | ||
"@angular/bazel": "https://github.com/angular/bazel-builds.git#07617f0f8540d27f8895b1820a6f994e1e5b7277", | ||
"@angular/build-tooling": "https://github.com/angular/dev-infra-private-build-tooling-builds.git#d17f802de0af0ac409259f97678ce59ddd0671a0", | ||
"@angular/cdk": "19.1.0-next.2", | ||
"@angular/common": "19.1.0-next.3", | ||
|
@@ -81,8 +72,8 @@ | |
"@babel/runtime": "7.26.0", | ||
"@bazel/bazelisk": "1.25.0", | ||
"@bazel/buildifier": "7.3.1", | ||
"@bazel/concatjs": "patch:@bazel/concatjs@npm%3A5.8.1#~/.yarn/patches/@bazel-concatjs-npm-5.8.1-1bf81df846.patch", | ||
"@bazel/jasmine": "patch:@bazel/jasmine@npm%3A5.8.1#~/.yarn/patches/@bazel-jasmine-npm-5.8.1-3370fee155.patch", | ||
"@bazel/concatjs": "5.8.1", | ||
"@bazel/jasmine": "5.8.1", | ||
"@bazel/rollup": "^5.8.1", | ||
"@bazel/runfiles": "^5.8.1", | ||
"@discoveryjs/json-ext": "0.6.3", | ||
|
@@ -175,6 +166,7 @@ | |
"ora": "5.4.1", | ||
"pacote": "20.0.0", | ||
"parse5-html-rewriting-stream": "7.0.0", | ||
"patch-package": "^8.0.0", | ||
"picomatch": "4.0.2", | ||
"piscina": "4.8.0", | ||
"postcss": "8.4.49", | ||
|
@@ -225,8 +217,10 @@ | |
"built": true | ||
} | ||
}, | ||
"pnpm": { | ||
"onlyBuiltDependencies": [] | ||
}, | ||
"resolutions": { | ||
"@bazel/concatjs@npm:5.8.1": "patch:@bazel/concatjs@npm%3A5.8.1#~/.yarn/patches/@bazel-concatjs-npm-5.8.1-1bf81df846.patch", | ||
"@microsoft/api-extractor/typescript": "5.6.3" | ||
"typescript": "5.7.2" | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
...hes/@angular-bazel-https-9848736cf4.patch → patches/@angular+bazel+19.0.0-next.7.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
diff --git a/jasmine_runner.js b/jasmine_runner.js | ||
diff --git a/node_modules/@bazel/jasmine/jasmine_runner.js b/node_modules/@bazel/jasmine/jasmine_runner.js | ||
index 097eb920357f5f02e5b6592e0e4be27c0b4bf25d..bd55c2dad833b32a9e644fed8c7d6b626cd01128 100755 | ||
--- a/jasmine_runner.js | ||
+++ b/jasmine_runner.js | ||
--- a/node_modules/@bazel/jasmine/jasmine_runner.js | ||
+++ b/node_modules/@bazel/jasmine/jasmine_runner.js | ||
@@ -147,7 +147,7 @@ async function main(args) { | ||
// TODO(6.0): remove support for deprecated versions of Jasmine that use the old API & | ||
// remember to update the `peerDependencies` as well. | ||
// Jasmine versions prior to 4.0.0 should use the old API. | ||
- if (jrunner.coreVersion().charAt(0) !== '4') { | ||
+ if (+jrunner.coreVersion().charAt(0) < 4) { | ||
console.warn(`DEPRECATED: Support for Jasmine versions prior to '4.0.x' is deprecated in '@bazel/jasmine'.`); | ||
|
||
// Old Jasmine API. |
Oops, something went wrong.