Back to Fullcalendar

then, pnpm-install in root

packages/angular-upgrade.md

7.0.01.7 KB
Original Source

Before upgrading: higher version of Angular CLI sometimes do not output libs that support older versions. For example. Angular 15 outputs for >=14. More info:

Create new lib with certain version of angular cli:

npx -p "@angular/cli@16" ng new "@fullcalendar/angular-new" \
  --directory "angular-new" \
  --new-project-root . \
  --create-application=false \
  --skip-install

# then, pnpm-install in root

cd angular-new
pnpm ng generate library lib --skip-install
pnpm ng generate application app --skip-install

# then, install in root again

Port fullcalendar-related dependencies to package.json Port package.json::(scripts|publishConfig)

In .gitignore add "outer monorepo" line at end

Rename the lib package to @fullcalendar/angular-new:

  1. tsconfig.json::compilerOptions.paths
  2. lib/package.json::name

Remove unnecessary app assets:

  1. In angular.json remove "assets": [ arrays
  2. rm -rf app/src/assets app/src/favicon.ico

Port lib files Port app files Port README/LICENSE/CHANGELOG

Temporarily change all references of @fullcalendar/angular to @fullcalendar/angular-new

Review

AFTER:

Rename all @fullcalendar/angular-new to @fullcalendar/angular

Automatically update .editorconfig and such via meta:update scripts. Squash into previous commit