Skip to content

Commit

Permalink
Moves //packages/resource_packager/... to `//tools/binaries/resourc…
Browse files Browse the repository at this point in the history
…e_packager/...`.

Refs #67.

This is because the resource packager is a tool invoked at build time, not a package installed by users.
  • Loading branch information
dgp1130 committed Feb 19, 2023
1 parent f388a27 commit 06bc7c3
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 10 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { loadPackage } from './package_loader';
import { useTempDir } from '../../common/testing/temp_dir';
import { useTempDir } from '../../../common/testing/temp_dir';
import { promises as fs } from 'fs';

describe('package_loader', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as fs from '../../common/fs';
import * as fs from '../../../common/fs';
import { ResourceMap } from './resource_map';

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as fs from '../../common/fs';
import * as fs from '../../../common/fs';
import { pack } from './packager';
import { ResourceMap } from './resource_map';
import { mockFileRef } from './resource_map_mock';
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import { UrlPath, FileRef, ResourceMap } from './resource_map';
import { Public, unmockedFunc } from '../../common/testing/mocks';
import { Public, unmockedFunc } from '../../../common/testing/mocks';

/** Mocks a {@link ResourceMap} object with the given property overrides. */
export function mockResourceMap(overrides: Partial<ResourceMap> = {}):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as yargs from 'yargs';
import { main } from '../../common/binary';
import { mdSpacing } from '../../common/formatters';
import { main } from '../../../common/binary';
import { mdSpacing } from '../../../common/formatters';
import { pack } from './packager';
import { ResourceMap } from './resource_map';
import { loadPackage } from './package_loader';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { promises as fs } from 'fs';
import { useTempDir } from '../../common/testing/temp_dir';
import { ProcessResult, execBinary } from '../../common/testing/binary';
import { useTempDir } from '../../../common/testing/temp_dir';
import { ProcessResult, execBinary } from '../../../common/testing/binary';

const binary = 'packages/resource_packager/resource_packager.sh';
const binary = 'tools/binaries/resource_packager/resource_packager.sh';

async function run({ urlPaths, fileRefs, mergeDirs, destDir }: {
urlPaths: string[],
Expand Down
2 changes: 1 addition & 1 deletion tools/internal/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ alias(

alias(
name = "resource_packager",
actual = "//packages/resource_packager",
actual = "//tools/binaries/resource_packager",
)

alias(
Expand Down

0 comments on commit 06bc7c3

Please sign in to comment.