Skip to content

Commit 2b0f3fc

Browse files
josephperrottcrisbeto
authored andcommitted
build: remove all usages of @bazel/runfiles (#62805)
Remove usages of @bazel/runfiles throughout the repository PR Close #62805
1 parent 0040ac7 commit 2b0f3fc

File tree

66 files changed

+2659
-2700
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+2659
-2700
lines changed

.aspect/rules/external_repository_action_cache/npm_translate_lock_MzA5NzUwNzMx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
# This file should be checked into version control along with the pnpm-lock.yaml file.
44
.npmrc=-1406867100
55
.pnpmfile.cjs=1437575780
6-
adev/package.json=1321467985
6+
adev/package.json=-187337442
77
adev/shared-docs/package.json=735765359
88
adev/shared-docs/pipeline/api-gen/package.json=939673974
99
integration/package.json=-239561259
1010
modules/package.json=469491887
11-
package.json=-507758597
11+
package.json=947792718
1212
packages/animations/package.json=-678724831
1313
packages/benchpress/package.json=-1908328724
1414
packages/common/package.json=1729763064
@@ -26,7 +26,7 @@ packages/platform-server/package.json=-737662753
2626
packages/router/package.json=860819913
2727
packages/upgrade/package.json=16347051
2828
packages/zone.js/package.json=-1005735564
29-
pnpm-lock.yaml=-584416566
29+
pnpm-lock.yaml=1867133044
3030
pnpm-workspace.yaml=1738525657
3131
tools/bazel/rules_angular_store/package.json=-239561259
32-
yarn.lock=709843533
32+
yarn.lock=653879291

adev/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"@angular/platform-server": "workspace:*",
1717
"@angular/router": "workspace:*",
1818
"@angular/ssr": "20.1.2",
19-
"@bazel/runfiles": "6.3.1",
2019
"@codemirror/autocomplete": "6.18.6",
2120
"@codemirror/commands": "6.8.1",
2221
"@codemirror/lang-angular": "0.1.4",

adev/shared-docs/pipeline/api-gen/extraction/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ ts_project(
1414
# TODO(rules_js): Explore how this could work alternatively at runtime with the module names.
1515
"//adev/shared-docs/pipeline/api-gen:node_modules/@angular/compiler-cli",
1616
"//adev/shared-docs/pipeline/api-gen:node_modules/@angular/compiler",
17-
"//adev:node_modules/@bazel/runfiles",
1817
"//adev:node_modules/@types/node",
1918
"//adev:node_modules/typescript",
2019
],

adev/shared-docs/pipeline/api-gen/manifest/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ ts_project(
2323
srcs = glob(["**/*.mts"]),
2424
deps = [
2525
"//adev:node_modules/@angular/compiler-cli",
26-
"//adev:node_modules/@bazel/runfiles",
2726
"//adev:node_modules/@types/node",
2827
],
2928
)

adev/shared-docs/pipeline/api-gen/rendering/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ ts_project(
2929
enable_runtime_rnjs_interop = True,
3030
deps = [
3131
":entities_rjs",
32-
"//adev:node_modules/@bazel/runfiles",
3332
"//adev:node_modules/@types/node",
3433
"//adev:node_modules/html-entities",
3534
"//adev:node_modules/marked",

adev/shared-docs/pipeline/api-gen/rendering/test/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ ts_project(
1818
],
1919
),
2020
deps = [
21-
"//adev:node_modules/@bazel/runfiles",
2221
"//adev:node_modules/@types/jsdom",
2322
"//adev:node_modules/jsdom",
2423
"//adev/shared-docs/pipeline/api-gen/rendering:render_api_to_html_lib_rjs",

adev/shared-docs/pipeline/api-gen/rendering/test/cli.spec.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {runfiles} from '@bazel/runfiles';
9+
import {resolve} from 'path';
1010
import {readFile} from 'fs/promises';
1111
import {JSDOM} from 'jsdom';
1212
import {configureMarkedGlobally} from '../marked/configuration.mjs';
@@ -22,7 +22,7 @@ describe('CLI docs to html', () => {
2222
await initHighlighter();
2323
await configureMarkedGlobally();
2424

25-
const entryContent = await readFile(runfiles.resolvePackageRelative('fake-cli-entries.json'), {
25+
const entryContent = await readFile(resolve('./fake-cli-entries.json'), {
2626
encoding: 'utf-8',
2727
});
2828

adev/shared-docs/pipeline/api-gen/rendering/test/marked.spec.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {runfiles} from '@bazel/runfiles';
109
import {readFile} from 'fs/promises';
1110
import {JSDOM} from 'jsdom';
1211
import {configureMarkedGlobally} from '../marked/configuration.mjs';
1312
import {getRenderable} from '../processing.mjs';
1413
import {renderEntry} from '../rendering.mjs';
1514
import {initHighlighter} from '../shiki/shiki.mjs';
1615
import {setSymbols} from '../symbol-context.mjs';
16+
import {resolve} from 'path';
1717

1818
// Note: The tests will probably break if the schema of the api extraction changes.
1919
// All entries in the fake-entries are extracted from Angular's api.
@@ -27,7 +27,7 @@ describe('markdown to html', () => {
2727
await initHighlighter();
2828
await configureMarkedGlobally();
2929

30-
const entryContent = await readFile(runfiles.resolvePackageRelative('fake-entries.json'), {
30+
const entryContent = await readFile(resolve('./fake-entries.json'), {
3131
encoding: 'utf-8',
3232
});
3333
const entryJson = JSON.parse(entryContent) as any;

adev/shared-docs/pipeline/api-gen/rendering/test/renderable.spec.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {runfiles} from '@bazel/runfiles';
109
import {readFile} from 'fs/promises';
1110
import {DocEntryRenderable} from '../entities/renderables.mjs';
1211
import {configureMarkedGlobally} from '../marked/configuration.mjs';
1312
import {getRenderable} from '../processing.mjs';
1413
import {initHighlighter} from '../shiki/shiki.mjs';
1514
import {setSymbols} from '../symbol-context.mjs';
15+
import {resolve} from 'path';
1616

1717
// Note: The tests will probably break if the schema of the api extraction changes.
1818
// All entries in the fake-entries are extracted from Angular's api.
@@ -25,7 +25,7 @@ describe('renderable', () => {
2525
await initHighlighter();
2626
await configureMarkedGlobally();
2727

28-
const entryContent = await readFile(runfiles.resolvePackageRelative('fake-entries.json'), {
28+
const entryContent = await readFile(resolve('./fake-entries.json'), {
2929
encoding: 'utf-8',
3030
});
3131
const entryJson = JSON.parse(entryContent) as any;

adev/shared-docs/pipeline/guides/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ ts_project(
6161
"//adev/shared-docs:__subpackages__",
6262
],
6363
deps = [
64-
"//adev:node_modules/@bazel/runfiles",
6564
"//adev:node_modules/@types/jsdom",
6665
"//adev:node_modules/@types/node",
6766
"//adev:node_modules/diff",

0 commit comments

Comments
 (0)