Skip to content

Commit

Permalink
Moves //packages/script_entry_generator/... to `//tools/binaries/sc…
Browse files Browse the repository at this point in the history
…ript_entry_generator/...`.

Refs #67.

This is because the script entry generator is a tool invoked at build time, not a package installed by the user.
  • Loading branch information
dgp1130 committed Feb 19, 2023
1 parent 06bc7c3 commit b9935f8
Show file tree
Hide file tree
Showing 7 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,4 +1,4 @@
import { PrerenderMetadata } from '../../common/models/prerender_metadata';
import { PrerenderMetadata } from '../../../common/models/prerender_metadata';

/**
* Generates a TypeScript entry point which imports all the scripts in the given
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mockPrerenderMetadata } from '../../common/models/prerender_metadata_mock';
import { mockPrerenderMetadata } from '../../../common/models/prerender_metadata_mock';
import { generateEntryPoint } from './generator';

describe('generator', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { promises as fs } from 'fs';
import * as yargs from 'yargs';
import { main } from '../../common/binary';
import { mdSpacing } from '../../common/formatters';
import { PrerenderMetadata } from '../../common/models/prerender_metadata';
import { main } from '../../../common/binary';
import { mdSpacing } from '../../../common/formatters';
import { PrerenderMetadata } from '../../../common/models/prerender_metadata';
import { generateEntryPoint } from './generator';

main(async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { promises as fs } from 'fs';
import { mockPrerenderMetadata, mockScriptMetadata } from '../../common/models/prerender_metadata_mock';
import { execBinary, ProcessResult } from '../../common/testing/binary';
import { useTempDir } from '../../common/testing/temp_dir';
import { mockPrerenderMetadata, mockScriptMetadata } from '../../../common/models/prerender_metadata_mock';
import { execBinary, ProcessResult } from '../../../common/testing/binary';
import { useTempDir } from '../../../common/testing/temp_dir';

const entryGenerator = 'packages/script_entry_generator/script_entry_generator.sh';
const entryGenerator = 'tools/binaries/script_entry_generator/script_entry_generator.sh';

/** Invokes the entry generator binary. */
async function run({ metadata, importDepth, output }: {
Expand Down
2 changes: 1 addition & 1 deletion tools/internal/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ alias(

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

0 comments on commit b9935f8

Please sign in to comment.