Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions packages/angular/cli/src/commands/add/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ import { NgAddSaveDependency, PackageManifest, PackageMetadata } from '../../pac
import { assertIsError } from '../../utilities/error';
import { isTTY } from '../../utilities/tty';
import { VERSION } from '../../utilities/version';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore strict-deps: Markdown files are asset dependencies bundled/loaded at runtime
import longDescription from './long-description.md';

class CommandError extends Error {}
Expand Down
2 changes: 0 additions & 2 deletions packages/angular/cli/src/commands/analytics/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ import {
demandCommandFailureMessage,
} from '../../command-builder/utilities/command';
import { AnalyticsInfoCommandModule } from './info/cli';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore strict-deps: Markdown files are asset dependencies bundled/loaded at runtime
import longDescription from './long-description.md';
import {
AnalyticsDisableModule,
Expand Down
2 changes: 0 additions & 2 deletions packages/angular/cli/src/commands/build/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
import { ArchitectCommandModule } from '../../command-builder/architect-command-module';
import { CommandModuleImplementation } from '../../command-builder/command-module';
import { RootCommands } from '../command-config';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore strict-deps: Markdown files are asset dependencies bundled/loaded at runtime
import longDescription from './long-description.md';

export default class BuildCommandModule
Expand Down
2 changes: 0 additions & 2 deletions packages/angular/cli/src/commands/cache/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ import {
} from '../../command-builder/utilities/command';
import { CacheCleanModule } from './clean/cli';
import { CacheInfoCommandModule } from './info/cli';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore strict-deps: Markdown files are asset dependencies bundled/loaded at runtime
import longDescription from './long-description.md';
import { CacheDisableModule, CacheEnableModule } from './settings/cli';

Expand Down
2 changes: 0 additions & 2 deletions packages/angular/cli/src/commands/completion/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import { addCommandModuleToYargs } from '../../command-builder/utilities/command
import { colors } from '../../utilities/color';
import { hasGlobalCliInstall, initializeAutocomplete } from '../../utilities/completion';
import { assertIsError } from '../../utilities/error';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore strict-deps: Markdown files are asset dependencies bundled/loaded at runtime
import longDescription from './long-description.md';

export default class CompletionCommandModule
Expand Down
2 changes: 0 additions & 2 deletions packages/angular/cli/src/commands/config/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ import {
} from '../../command-builder/command-module';
import { getWorkspaceRaw, validateWorkspace } from '../../utilities/config';
import { JSONFile, parseJson } from '../../utilities/json-file';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore strict-deps: Markdown files are asset dependencies bundled/loaded at runtime
import longDescription from './long-description.md';

interface ConfigCommandArgs {
Expand Down
2 changes: 0 additions & 2 deletions packages/angular/cli/src/commands/deploy/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
import { MissingTargetChoice } from '../../command-builder/architect-base-command-module';
import { ArchitectCommandModule } from '../../command-builder/architect-command-module';
import { CommandModuleImplementation } from '../../command-builder/command-module';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore strict-deps: Markdown files are asset dependencies bundled/loaded at runtime
import longDescription from './long-description.md';

export default class DeployCommandModule
Expand Down
2 changes: 0 additions & 2 deletions packages/angular/cli/src/commands/lint/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
import { MissingTargetChoice } from '../../command-builder/architect-base-command-module';
import { ArchitectCommandModule } from '../../command-builder/architect-command-module';
import { CommandModuleImplementation } from '../../command-builder/command-module';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore strict-deps: Markdown files are asset dependencies bundled/loaded at runtime
import longDescription from './long-description.md';

export default class LintCommandModule
Expand Down
2 changes: 0 additions & 2 deletions packages/angular/cli/src/commands/new/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import {
} from '../../command-builder/schematics-command-module';
import { VERSION } from '../../utilities/version';
import { RootCommands } from '../command-config';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore strict-deps: Markdown files are asset dependencies bundled/loaded at runtime
import longDescription from './long-description.md';

interface NewCommandArgs extends SchematicsCommandArgs {
Expand Down
2 changes: 0 additions & 2 deletions packages/angular/cli/src/commands/run/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ import {
Options,
OtherOptions,
} from '../../command-builder/command-module';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore strict-deps: Markdown files are asset dependencies bundled/loaded at runtime
import longDescription from './long-description.md';

export interface RunCommandArgs {
Expand Down
2 changes: 0 additions & 2 deletions packages/angular/cli/src/commands/test/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
import { ArchitectCommandModule } from '../../command-builder/architect-command-module';
import { CommandModuleImplementation } from '../../command-builder/command-module';
import { RootCommands } from '../command-config';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore strict-deps: Markdown files are asset dependencies bundled/loaded at runtime
import longDescription from './long-description.md';

export default class TestCommandModule
Expand Down
2 changes: 0 additions & 2 deletions packages/angular/cli/src/commands/update/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ import type { InstalledPackage, PackageManager, PackageManifest } from '../../pa
import { colors } from '../../utilities/color';
import { disableVersionCheck } from '../../utilities/environment-options';
import { assertIsError } from '../../utilities/error';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore strict-deps: Markdown files are asset dependencies bundled/loaded at runtime
import longDescription from './long-description.md';
import {
UpdatePlan,
Expand Down
6 changes: 6 additions & 0 deletions tools/defaults.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ def ts_project(
if tsconfig == None:
tsconfig = "//:test-tsconfig" if testonly else "//:build-tsconfig"

package_json = kwargs.pop("package_json", None)
if not package_json and native.glob(["package.json"], allow_empty = True):
package_json = "package.json"

_ts_project(
name = name,
testonly = testonly,
Expand All @@ -32,6 +36,8 @@ def ts_project(
strict_deps_test(
name = "%s_strict_deps_test" % name,
srcs = kwargs.get("srcs", []),
data = kwargs.get("data", []),
package_json = package_json,
tsconfig = tsconfig,
deps = deps,
)
Expand Down
Loading