Skip to content

Commit af2f551

Browse files
committed
* 'master' of https://github.com/mgechev/angular2-seed: fix(build.bundles): add packageConfigPaths so bundlers will work with npm packages using a main. Set PROJECT_ROOT to root of the project
2 parents d7c920e + 6587242 commit af2f551

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/config/seed.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const ENVIRONMENTS: Environments = {
1010

1111
export class SeedConfig {
1212
PORT = argv['port'] || 5555;
13-
PROJECT_ROOT = join(__dirname, '..');
13+
PROJECT_ROOT = join(__dirname, '../..');
1414
ENV = getEnvironment();
1515
DEBUG = argv['debug'] || false;
1616
DOCS_PORT = argv['docs-port'] || 4003;
@@ -132,6 +132,7 @@ export class SeedConfig {
132132

133133
SYSTEM_BUILDER_CONFIG = {
134134
defaultJSExtensions: true,
135+
packageConfigPaths: [join(this.PROJECT_ROOT, 'node_modules', '*', 'package.json')],
135136
paths: {
136137
[`${this.TMP_DIR}/*`]: `${this.TMP_DIR}/*`,
137138
'*': 'node_modules/*'

0 commit comments

Comments
 (0)