Commit 9f3451d
fix(build): simplify package build pipeline and fix windows pipeline issue (#2458)
* build: stop emitting .d.ts for schematics
Schematics ship as Angular CLI generators executed as runtime JavaScript;
their TypeScript types are not part of the public API surface. Up to now
the schematics tsconfig was emitting per-source `.d.ts` files, which the
postbuild had to strip from the build output before publish.
Flip declaration to false in both tsconfig.schematics.json files so the
files are never emitted in the first place. Net effect on the published
tarball is unchanged.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* build: drop rollup-based .d.ts flattening postbuild
ng-packagr 20.x already emits a single flattened `.d.ts` per entry point,
so `rollup-plugin-dts` has nothing left to bundle (running it against the
current output only reorders named-import members on one line). With the
previous commit stopping schematics `.d.ts` emission, `remove-dts.mjs`
also has nothing left to clean up.
The remove-dts step additionally carried a Windows-only path-separator
bug: `path.resolve` returns backslash paths while `glob.sync` returns
forward-slash paths, so the entry-point filter never matched on Windows
and every flattened entry-point d.ts was deleted along with the rest.
The bug went undetected because publishes ran from Linux CI.
Remove `yarn rollup -c rollup.config.mjs && node ./build/remove-dts.mjs`
from the postbuild script, delete the rollup config and the two helper
scripts, and drop the now-unused rollup / rollup-plugin-dts devDeps.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* build: exclude jest snapshot artifacts from schematics output
The storage-plugin schematics source contains a jest snapshot at
`schematics/src/ng-generate/__snapshots__/keys-migration.spec.ts.snap`
that lives alongside the spec file for the snapshot mechanism. The
file-copy step in build-schematics.mjs only filtered out `.ts` source
files, so the snapshot artifact was being copied into the publishable
output and shipped on npm.
Filter `.snap` files and `__snapshots__` directories out of the copy.
Store schematics output is unaffected (its source has no jest snapshots).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* chore: update changelog
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f62a3bf commit 9f3451d
9 files changed
Lines changed: 16 additions & 70 deletions
File tree
- build
- packages
- storage-plugin
- store
- tools
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
164 | 162 | | |
165 | 163 | | |
166 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9301 | 9301 | | |
9302 | 9302 | | |
9303 | 9303 | | |
9304 | | - | |
| 9304 | + | |
9305 | 9305 | | |
9306 | 9306 | | |
9307 | 9307 | | |
| |||
11772 | 11772 | | |
11773 | 11773 | | |
11774 | 11774 | | |
11775 | | - | |
| 11775 | + | |
11776 | 11776 | | |
11777 | 11777 | | |
11778 | 11778 | | |
| |||
13869 | 13869 | | |
13870 | 13870 | | |
13871 | 13871 | | |
13872 | | - | |
| 13872 | + | |
13873 | 13873 | | |
13874 | 13874 | | |
13875 | 13875 | | |
| |||
13912 | 13912 | | |
13913 | 13913 | | |
13914 | 13914 | | |
13915 | | - | |
| 13915 | + | |
13916 | 13916 | | |
13917 | 13917 | | |
13918 | 13918 | | |
| |||
0 commit comments