Skip to content

Commit 373dcc1

Browse files
committed
fixup! fix(@angular/build): enforce library compilerOptions and skip unused .tsbuildinfo emit
1 parent 11c6f39 commit 373dcc1

1 file changed

Lines changed: 0 additions & 26 deletions

File tree

  • packages/angular/build/src/builders/library/tests/behavior

‎packages/angular/build/src/builders/library/tests/behavior/build_spec.ts‎

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -278,31 +278,5 @@ describeLibraryBuilder(executeLibraryBuilder, LIBRARY_BUILDER_INFO, (harness) =>
278278
expect(dtsContent).toContain('LibComponent');
279279
expect(dtsContent).toContain('CACHED_BUILD');
280280
});
281-
282-
it('should override noEmit and emitDeclarationOnly in tsconfig.lib.json and emit both JS and .d.ts files', async () => {
283-
await harness.modifyFile('projects/lib/tsconfig.lib.json', (content) => {
284-
const tsconfig = JSON.parse(content);
285-
tsconfig.compilerOptions = {
286-
...tsconfig.compilerOptions,
287-
noEmit: true,
288-
emitDeclarationOnly: true,
289-
};
290-
291-
return JSON.stringify(tsconfig, null, 2);
292-
});
293-
294-
harness.useTarget('build', {
295-
...BASE_OPTIONS,
296-
});
297-
298-
const { result } = await harness.executeOnce();
299-
expect(result?.error).toBeUndefined();
300-
expect(result?.success).toBeTrue();
301-
302-
const fesmContent = harness.readFile('dist/lib/fesm2022/lib.mjs');
303-
expect(fesmContent).toContain('LibComponent');
304-
const dtsContent = harness.readFile('dist/lib/types/lib.d.ts');
305-
expect(dtsContent).toContain('LibComponent');
306-
});
307281
});
308282
});

0 commit comments

Comments
 (0)