Skip to content

Commit b042d41

Browse files
committed
build: workaround bazel module resolution bug
See bazel-contrib/rules_nodejs#313 for details.
1 parent e7cd756 commit b042d41

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

packages/angular_devkit/schematics/tasks/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8-
export { NodePackageInstallTask } from './node-package/install-task';
9-
export { NodePackageLinkTask } from './node-package/link-task';
8+
// TODO: This folder should not be prefixed with `not-`, but its's needed to workaround a Bazel bug:
9+
// https://github.com/bazelbuild/rules_nodejs/issues/313
10+
export { NodePackageInstallTask } from './not-node-package/install-task';
11+
export { NodePackageLinkTask } from './not-node-package/link-task';
1012
export { RepositoryInitializerTask } from './repo-init/init-task';
1113
export { RunSchematicTask } from './run-schematic/task';
1214
export { TslintFixTask } from './tslint-fix/task';

packages/angular_devkit/schematics/tasks/node/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8+
// TODO: This folder should not be prefixed with `not-`, but its's needed to workaround a Bazel bug:
9+
// https://github.com/bazelbuild/rules_nodejs/issues/313
810
import { TaskExecutorFactory } from '../../src';
9-
import { NodePackageName, NodePackageTaskFactoryOptions } from '../node-package/options';
11+
import { NodePackageName, NodePackageTaskFactoryOptions } from '../not-node-package/options';
1012
import {
1113
RepositoryInitializerName,
1214
RepositoryInitializerTaskFactoryOptions,
@@ -17,7 +19,7 @@ import { TslintFixName } from '../tslint-fix/options';
1719
export class BuiltinTaskExecutor {
1820
static readonly NodePackage: TaskExecutorFactory<NodePackageTaskFactoryOptions> = {
1921
name: NodePackageName,
20-
create: (options) => import('../node-package/executor').then(mod => mod.default(options)),
22+
create: (options) => import('../not-node-package/executor').then(mod => mod.default(options)),
2123
};
2224
static readonly RepositoryInitializer:
2325
TaskExecutorFactory<RepositoryInitializerTaskFactoryOptions> = {

0 commit comments

Comments
 (0)