Skip to content

fix(live-editing): improve generated standalone and styles handling#3925

Open
dobromirts wants to merge 23 commits intovnextfrom
dTsvetkov/update-live-editing-generation
Open

fix(live-editing): improve generated standalone and styles handling#3925
dobromirts wants to merge 23 commits intovnextfrom
dTsvetkov/update-live-editing-generation

Conversation

@dobromirts
Copy link
Contributor

Added missing name, version, and scripts (ng, start, build) to the generated package.json for each standalone sample — previously the file was not a valid npm package and npm start would fail in StackBlitz/CodeSandbox
Added ^ semver range prefix to exact-pinned dependency versions in sampleDependencies so samples always resolve the latest compatible version instead of being pinned to a stale exact release
DevDependencies in generated package.json are now sourced from the main package.json ranges instead of hardcoded values in shared.json, which got overwritten on every generate-live-editing run
Bumped Angular peer dependencies from ^21.0.0 to ^21.1.0 to match the installed version and ensure @angular/compiler-cli 21.1.x is resolved — required by igniteui-angular 21.1.x which uses the passThroughInput compiler API introduced in 21.1
@import "tailwindcss" is now stripped from the shared styles.scss after generate-live-editing and injected back only into samples that declare tailwindcss as a dependency — both in the live editing source viewer and in the standalone sample output from repositoryfy

ChronosSF and others added 23 commits November 26, 2025 18:08
Updating Master with changes from Vnext
Updating prod with changes from staging
Updating latest fixes from staging to prod
…ail-chart-3823-master

fix(lob): import IgxCategoryChartModule instead of IgxCategoryChartCoreModule - master
Updating prod with fixes before 21.1
fix: slider styling and ticks-mirror samples
Updating production for 21.1
Update samples for grid lite with angular wrapper (#3916)
Updating prod for cell merging issue
? stylesFile.content
: stylesFile.content.replace(/((?:@use [^\n]+\n)+)/, '$1@import "tailwindcss";\n');
stylesFile.content = stylesFile.content.replace(/@import ["']tailwindcss["'];?\r?\n?/g, '');
fs.writeFileSync(sharedJsonPath, JSON.stringify(sharedJson));

Check failure

Code scanning / CodeQL

Potential file system race condition High

The file may have changed since it
was checked
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants