From 9acef7e48aecdf46e72a6ce7977fe5c270930163 Mon Sep 17 00:00:00 2001 From: arturovt Date: Thu, 19 Feb 2026 20:54:18 +0200 Subject: [PATCH] chore: rename package to @single-spa-community/angular --- CONTRIBUTING.md | 85 ------------- README.md | 17 ++- apps/chat/webpack.config.ts | 2 +- apps/navbar/webpack.config.ts | 2 +- apps/parcel/webpack.config.ts | 2 +- apps/shop/webpack.config.ts | 2 +- libs/single-spa-angular/project.json | 17 --- .../elements}/ng-package.json | 2 +- .../elements/src/index.ts | 6 +- .../elements/src/types.ts | 6 +- .../index.ts | 0 .../internals/ng-package.json | 2 +- .../internals/src/dom.ts | 0 .../internals/src/index.ts | 0 .../internals/src/types.ts | 0 .../ng-package.json | 2 +- .../package.json | 2 +- .../parcel}/ng-package.json | 2 +- .../parcel/src/index.ts | 0 .../parcel/src/parcel.component.ts | 0 .../parcel/src/parcel.module.ts | 0 .../single-spa-community-angular/project.json | 17 +++ .../src/extra-providers.ts | 0 .../src/prod-mode.ts | 0 .../src/public_api.ts | 0 .../src/single-spa-angular.ts | 2 +- .../src/types.ts | 2 +- .../tsconfig.json | 0 .../tsconfig.lib.json | 0 .../webpack/__snapshots__/index.spec.ts.snap | 0 .../webpack/externals.ts | 0 .../webpack/index.spec.ts | 0 .../webpack/index.ts | 0 .../webpack-5/remove-mini-css-extract.ts | 0 package.json | 4 +- system/rollup.config.js | 16 +-- tsconfig.base.json | 14 ++- tsconfig.webpack.json | 2 +- yarn.lock | 119 ++++++++++-------- 39 files changed, 136 insertions(+), 189 deletions(-) delete mode 100644 CONTRIBUTING.md delete mode 100644 libs/single-spa-angular/project.json rename libs/{single-spa-angular/parcel => single-spa-community-angular/elements}/ng-package.json (66%) rename libs/{single-spa-angular => single-spa-community-angular}/elements/src/index.ts (92%) rename libs/{single-spa-angular => single-spa-community-angular}/elements/src/types.ts (53%) rename libs/{single-spa-angular => single-spa-community-angular}/index.ts (100%) rename libs/{single-spa-angular => single-spa-community-angular}/internals/ng-package.json (66%) rename libs/{single-spa-angular => single-spa-community-angular}/internals/src/dom.ts (100%) rename libs/{single-spa-angular => single-spa-community-angular}/internals/src/index.ts (100%) rename libs/{single-spa-angular => single-spa-community-angular}/internals/src/types.ts (100%) rename libs/{single-spa-angular => single-spa-community-angular}/ng-package.json (72%) rename libs/{single-spa-angular => single-spa-community-angular}/package.json (95%) rename libs/{single-spa-angular/elements => single-spa-community-angular/parcel}/ng-package.json (67%) rename libs/{single-spa-angular => single-spa-community-angular}/parcel/src/index.ts (100%) rename libs/{single-spa-angular => single-spa-community-angular}/parcel/src/parcel.component.ts (100%) rename libs/{single-spa-angular => single-spa-community-angular}/parcel/src/parcel.module.ts (100%) create mode 100644 libs/single-spa-community-angular/project.json rename libs/{single-spa-angular => single-spa-community-angular}/src/extra-providers.ts (100%) rename libs/{single-spa-angular => single-spa-community-angular}/src/prod-mode.ts (100%) rename libs/{single-spa-angular => single-spa-community-angular}/src/public_api.ts (100%) rename libs/{single-spa-angular => single-spa-community-angular}/src/single-spa-angular.ts (98%) rename libs/{single-spa-angular => single-spa-community-angular}/src/types.ts (91%) rename libs/{single-spa-angular => single-spa-community-angular}/tsconfig.json (100%) rename libs/{single-spa-angular => single-spa-community-angular}/tsconfig.lib.json (100%) rename libs/{single-spa-angular => single-spa-community-angular}/webpack/__snapshots__/index.spec.ts.snap (100%) rename libs/{single-spa-angular => single-spa-community-angular}/webpack/externals.ts (100%) rename libs/{single-spa-angular => single-spa-community-angular}/webpack/index.spec.ts (100%) rename libs/{single-spa-angular => single-spa-community-angular}/webpack/index.ts (100%) rename libs/{single-spa-angular => single-spa-community-angular}/webpack/webpack-5/remove-mini-css-extract.ts (100%) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index 65493c37..00000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,85 +0,0 @@ -# Contributing to single-spa-angular - -Before doing any changes to the codebase you have to fork single-spa-angular repo and clone it. The next step is to install the dependencies inside of the single-spa-angular directory: - -```sh -# Prepare for some noise, there is the `postinstall` script that runs `ngcc` compiler. -yarn -``` - -Any changes to the codebase must be tested. We've got different applications inside the `apps` folder in which we make sure that the issues reported earlier are not reproduced. You can serve all of them in the development mode simultaneously by running the following command: - -```sh -yarn serve:all -``` - -After that, you can make sure that all applications are running by going to the `http://localhost:8080`. - -If you fix a bug or add a feature, then you need to add integration tests as well, we use Cypress for that. There is a `cypress/integration` folder where we keep our integration tests. You can look at how other integration tests are implemented and create new tests following their example. - -When you have written a new test, you need to run it. You can do that by running the following command: - -```sh -yarn cy:run -``` - -This will open the Cypress GUI and you can select the file in which to run the tests. Note that applications should also be running, so do it in different terminals. - -To run the final tests, you need to build all applications in production mode and run the Cypress again. This can be done by running the below commands: - -```sh -yarn build:all -yarn test:ci:integration -``` - -### Schematics - -To test out the angular schematics locally, run the following commands: - -```sh -yarn build - -## Now link the built files -cd lib -yarn link - -# Now navigate to a new directory where we'll create an angular application to test this with -cd ../.. - -## Now create an angular app -ng new - -## This project uses yarn, so it's easiest to use yarn in your example project, too -yarn install - -yarn link single-spa-angular - -## Run the schematics -ng g single-spa-angular:ng-add - -## Install dependencies -yarn add single-spa -yarn add file:../single-spa-angular/lib - -## Now try things out! -yarn build -yarn start -``` - -# Publishing - -1. Modify `libs/single-spa-angular/package.json` to have the new `"version"` -2. Terminal commands - -```sh -yarn build -cd lib -yarn publish # do not change the version - it already has correct version from step 1 -cd .. -git add . -git commit -m "v1.2.5" # replace 1.2.5 with the newly published version -git tag -a v1.2.5 -m v.1.2.5 # replace 1.2.5 with the newly published version -git push -``` - -3. Create Github release diff --git a/README.md b/README.md index 87256070..896214f3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,8 @@ -# single-spa-angular +

+ @single-spa-community/angular logo +

+ +# @single-spa-community/angular Helpers for building [single-spa](https://github.com/single-spa/single-spa) applications which use Angular. @@ -12,4 +16,13 @@ See [documentation on single-spa.js.org](https://single-spa.js.org/docs/ecosyste ## Project Status -This project needs new maintainers. The single-spa core team does not have the Angular expertise needed to continously support all versions of Angular, as none of us use single-spa-angular in any of our serious projects. We could use help keeping up with the six month release cadence of Angular, diagnosing problems in the issue queues, and providing support in the single-spa Slack workspace. Angular is the framework that is hardest to support in the single-spa ecosystem, and we rely on the community to help us with it. If you have interest in helping with the maintenance of this project, please let us know! +The package has been republished under the `@single-spa-community` scope due to a change in maintainership. + +> **Note:** This package is the continuation of the original `single-spa-angular` package. If you are migrating from `single-spa-angular`, simply update the package name in your dependencies — no other changes are required. + +## Compatibility + +| `@single-spa-community/angular` | Angular | +| ------------------------------- | ------- | +| `20.x` | `20.x` | +| `19.x` | `19.x` | diff --git a/apps/chat/webpack.config.ts b/apps/chat/webpack.config.ts index a61bc244..20b29317 100644 --- a/apps/chat/webpack.config.ts +++ b/apps/chat/webpack.config.ts @@ -1 +1 @@ -export { default } from '../../libs/single-spa-angular/webpack'; +export { default } from '../../libs/single-spa-community-angular/webpack'; diff --git a/apps/navbar/webpack.config.ts b/apps/navbar/webpack.config.ts index a61bc244..20b29317 100644 --- a/apps/navbar/webpack.config.ts +++ b/apps/navbar/webpack.config.ts @@ -1 +1 @@ -export { default } from '../../libs/single-spa-angular/webpack'; +export { default } from '../../libs/single-spa-community-angular/webpack'; diff --git a/apps/parcel/webpack.config.ts b/apps/parcel/webpack.config.ts index a61bc244..20b29317 100644 --- a/apps/parcel/webpack.config.ts +++ b/apps/parcel/webpack.config.ts @@ -1 +1 @@ -export { default } from '../../libs/single-spa-angular/webpack'; +export { default } from '../../libs/single-spa-community-angular/webpack'; diff --git a/apps/shop/webpack.config.ts b/apps/shop/webpack.config.ts index a61bc244..20b29317 100644 --- a/apps/shop/webpack.config.ts +++ b/apps/shop/webpack.config.ts @@ -1 +1 @@ -export { default } from '../../libs/single-spa-angular/webpack'; +export { default } from '../../libs/single-spa-community-angular/webpack'; diff --git a/libs/single-spa-angular/project.json b/libs/single-spa-angular/project.json deleted file mode 100644 index d42b7232..00000000 --- a/libs/single-spa-angular/project.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name": "single-spa-angular", - "$schema": "../../node_modules/nx/schemas/project-schema.json", - "projectType": "library", - "sourceRoot": "libs/single-spa-angular/src", - "prefix": "single-spa-angular", - "targets": { - "build": { - "executor": "@nx/angular:package", - "options": { - "tsConfig": "libs/single-spa-angular/tsconfig.lib.json", - "project": "libs/single-spa-angular/ng-package.json" - } - } - }, - "tags": [] -} diff --git a/libs/single-spa-angular/parcel/ng-package.json b/libs/single-spa-community-angular/elements/ng-package.json similarity index 66% rename from libs/single-spa-angular/parcel/ng-package.json rename to libs/single-spa-community-angular/elements/ng-package.json index e3b2079f..f5e734f5 100644 --- a/libs/single-spa-angular/parcel/ng-package.json +++ b/libs/single-spa-community-angular/elements/ng-package.json @@ -2,6 +2,6 @@ "$schema": "../../../node_modules/ng-packagr/ng-package.schema.json", "lib": { "entryFile": "src/index.ts", - "flatModuleFile": "single-spa-angular-parcel" + "flatModuleFile": "single-spa-community-angular-elements" } } diff --git a/libs/single-spa-angular/elements/src/index.ts b/libs/single-spa-community-angular/elements/src/index.ts similarity index 92% rename from libs/single-spa-angular/elements/src/index.ts rename to libs/single-spa-community-angular/elements/src/index.ts index 393a5f5f..6916b172 100644 --- a/libs/single-spa-angular/elements/src/index.ts +++ b/libs/single-spa-community-angular/elements/src/index.ts @@ -1,11 +1,11 @@ import type { LifeCycles } from 'single-spa'; import type { NgElement } from '@angular/elements'; import { - BaseSingleSpaAngularOptions, + type BaseSingleSpaAngularOptions, getContainerElementAndSetTemplate, -} from 'single-spa-angular/internals'; +} from '@single-spa-community/angular/internals'; -import { BootstrappedSingleSpaAngularElementsOptions } from './types'; +import type { BootstrappedSingleSpaAngularElementsOptions } from './types'; const defaultOptions: BootstrappedSingleSpaAngularElementsOptions = { element: null, diff --git a/libs/single-spa-angular/elements/src/types.ts b/libs/single-spa-community-angular/elements/src/types.ts similarity index 53% rename from libs/single-spa-angular/elements/src/types.ts rename to libs/single-spa-community-angular/elements/src/types.ts index 9e3d1af4..e19ae385 100644 --- a/libs/single-spa-angular/elements/src/types.ts +++ b/libs/single-spa-community-angular/elements/src/types.ts @@ -1,6 +1,6 @@ -import { ApplicationRef, NgModuleRef } from '@angular/core'; -import { NgElement } from '@angular/elements'; -import { BaseSingleSpaAngularOptions } from 'single-spa-angular/internals'; +import type { ApplicationRef, NgModuleRef } from '@angular/core'; +import type { NgElement } from '@angular/elements'; +import type { BaseSingleSpaAngularOptions } from '@single-spa-community/angular/internals'; export interface BootstrappedSingleSpaAngularElementsOptions extends BaseSingleSpaAngularOptions { ngModuleRefOrAppRef: NgModuleRef | ApplicationRef | null; diff --git a/libs/single-spa-angular/index.ts b/libs/single-spa-community-angular/index.ts similarity index 100% rename from libs/single-spa-angular/index.ts rename to libs/single-spa-community-angular/index.ts diff --git a/libs/single-spa-angular/internals/ng-package.json b/libs/single-spa-community-angular/internals/ng-package.json similarity index 66% rename from libs/single-spa-angular/internals/ng-package.json rename to libs/single-spa-community-angular/internals/ng-package.json index fddd0860..0b71c2c9 100644 --- a/libs/single-spa-angular/internals/ng-package.json +++ b/libs/single-spa-community-angular/internals/ng-package.json @@ -2,6 +2,6 @@ "$schema": "../../../node_modules/ng-packagr/ng-package.schema.json", "lib": { "entryFile": "src/index.ts", - "flatModuleFile": "single-spa-angular-internals" + "flatModuleFile": "single-spa-community-angular-internals" } } diff --git a/libs/single-spa-angular/internals/src/dom.ts b/libs/single-spa-community-angular/internals/src/dom.ts similarity index 100% rename from libs/single-spa-angular/internals/src/dom.ts rename to libs/single-spa-community-angular/internals/src/dom.ts diff --git a/libs/single-spa-angular/internals/src/index.ts b/libs/single-spa-community-angular/internals/src/index.ts similarity index 100% rename from libs/single-spa-angular/internals/src/index.ts rename to libs/single-spa-community-angular/internals/src/index.ts diff --git a/libs/single-spa-angular/internals/src/types.ts b/libs/single-spa-community-angular/internals/src/types.ts similarity index 100% rename from libs/single-spa-angular/internals/src/types.ts rename to libs/single-spa-community-angular/internals/src/types.ts diff --git a/libs/single-spa-angular/ng-package.json b/libs/single-spa-community-angular/ng-package.json similarity index 72% rename from libs/single-spa-angular/ng-package.json rename to libs/single-spa-community-angular/ng-package.json index 91983ccd..038d4a0c 100644 --- a/libs/single-spa-angular/ng-package.json +++ b/libs/single-spa-community-angular/ng-package.json @@ -2,7 +2,7 @@ "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", "dest": "../../lib", "lib": { - "flatModuleFile": "single-spa-angular", + "flatModuleFile": "single-spa-community-angular", "entryFile": "index.ts" } } diff --git a/libs/single-spa-angular/package.json b/libs/single-spa-community-angular/package.json similarity index 95% rename from libs/single-spa-angular/package.json rename to libs/single-spa-community-angular/package.json index 9291710e..3df10780 100644 --- a/libs/single-spa-angular/package.json +++ b/libs/single-spa-community-angular/package.json @@ -1,6 +1,6 @@ { "$schema": "../node_modules/ng-packagr/ng-package.schema.json", - "name": "single-spa-angular", + "name": "@single-spa-community/angular", "version": "20.0.0", "description": "Helpers for building single-spa applications which use Angular 2", "schematics": "./schematics/schematics.json", diff --git a/libs/single-spa-angular/elements/ng-package.json b/libs/single-spa-community-angular/parcel/ng-package.json similarity index 67% rename from libs/single-spa-angular/elements/ng-package.json rename to libs/single-spa-community-angular/parcel/ng-package.json index 4ca7c596..23b53a0b 100644 --- a/libs/single-spa-angular/elements/ng-package.json +++ b/libs/single-spa-community-angular/parcel/ng-package.json @@ -2,6 +2,6 @@ "$schema": "../../../node_modules/ng-packagr/ng-package.schema.json", "lib": { "entryFile": "src/index.ts", - "flatModuleFile": "single-spa-angular-elements" + "flatModuleFile": "single-spa-community-angular-parcel" } } diff --git a/libs/single-spa-angular/parcel/src/index.ts b/libs/single-spa-community-angular/parcel/src/index.ts similarity index 100% rename from libs/single-spa-angular/parcel/src/index.ts rename to libs/single-spa-community-angular/parcel/src/index.ts diff --git a/libs/single-spa-angular/parcel/src/parcel.component.ts b/libs/single-spa-community-angular/parcel/src/parcel.component.ts similarity index 100% rename from libs/single-spa-angular/parcel/src/parcel.component.ts rename to libs/single-spa-community-angular/parcel/src/parcel.component.ts diff --git a/libs/single-spa-angular/parcel/src/parcel.module.ts b/libs/single-spa-community-angular/parcel/src/parcel.module.ts similarity index 100% rename from libs/single-spa-angular/parcel/src/parcel.module.ts rename to libs/single-spa-community-angular/parcel/src/parcel.module.ts diff --git a/libs/single-spa-community-angular/project.json b/libs/single-spa-community-angular/project.json new file mode 100644 index 00000000..d1dd1abc --- /dev/null +++ b/libs/single-spa-community-angular/project.json @@ -0,0 +1,17 @@ +{ + "name": "single-spa-community-angular", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "projectType": "library", + "sourceRoot": "libs/single-spa-community-angular/src", + "prefix": "single-spa-community-angular", + "targets": { + "build": { + "executor": "@nx/angular:package", + "options": { + "tsConfig": "libs/single-spa-community-angular/tsconfig.lib.json", + "project": "libs/single-spa-community-angular/ng-package.json" + } + } + }, + "tags": [] +} diff --git a/libs/single-spa-angular/src/extra-providers.ts b/libs/single-spa-community-angular/src/extra-providers.ts similarity index 100% rename from libs/single-spa-angular/src/extra-providers.ts rename to libs/single-spa-community-angular/src/extra-providers.ts diff --git a/libs/single-spa-angular/src/prod-mode.ts b/libs/single-spa-community-angular/src/prod-mode.ts similarity index 100% rename from libs/single-spa-angular/src/prod-mode.ts rename to libs/single-spa-community-angular/src/prod-mode.ts diff --git a/libs/single-spa-angular/src/public_api.ts b/libs/single-spa-community-angular/src/public_api.ts similarity index 100% rename from libs/single-spa-angular/src/public_api.ts rename to libs/single-spa-community-angular/src/public_api.ts diff --git a/libs/single-spa-angular/src/single-spa-angular.ts b/libs/single-spa-community-angular/src/single-spa-angular.ts similarity index 98% rename from libs/single-spa-angular/src/single-spa-angular.ts rename to libs/single-spa-community-angular/src/single-spa-angular.ts index 93844b1a..94a0c7f8 100644 --- a/libs/single-spa-angular/src/single-spa-angular.ts +++ b/libs/single-spa-community-angular/src/single-spa-angular.ts @@ -1,6 +1,6 @@ import type { ApplicationRef, NgModuleRef, NgZone } from '@angular/core'; import type { LifeCycles } from 'single-spa'; -import { getContainerElementAndSetTemplate } from 'single-spa-angular/internals'; +import { getContainerElementAndSetTemplate } from '@single-spa-community/angular/internals'; import { SingleSpaPlatformLocation } from './extra-providers'; import type { SingleSpaAngularOptions, BootstrappedSingleSpaAngularOptions } from './types'; diff --git a/libs/single-spa-angular/src/types.ts b/libs/single-spa-community-angular/src/types.ts similarity index 91% rename from libs/single-spa-angular/src/types.ts rename to libs/single-spa-community-angular/src/types.ts index 35b0dd51..e8aa3817 100644 --- a/libs/single-spa-angular/src/types.ts +++ b/libs/single-spa-community-angular/src/types.ts @@ -1,6 +1,6 @@ import type { NgModuleRef, Type, NgZone, ApplicationRef } from '@angular/core'; import type { AppProps } from 'single-spa'; -import type { BaseSingleSpaAngularOptions } from 'single-spa-angular/internals'; +import type { BaseSingleSpaAngularOptions } from '@single-spa-community/angular/internals'; export interface SingleSpaAngularOptions< T = Record, diff --git a/libs/single-spa-angular/tsconfig.json b/libs/single-spa-community-angular/tsconfig.json similarity index 100% rename from libs/single-spa-angular/tsconfig.json rename to libs/single-spa-community-angular/tsconfig.json diff --git a/libs/single-spa-angular/tsconfig.lib.json b/libs/single-spa-community-angular/tsconfig.lib.json similarity index 100% rename from libs/single-spa-angular/tsconfig.lib.json rename to libs/single-spa-community-angular/tsconfig.lib.json diff --git a/libs/single-spa-angular/webpack/__snapshots__/index.spec.ts.snap b/libs/single-spa-community-angular/webpack/__snapshots__/index.spec.ts.snap similarity index 100% rename from libs/single-spa-angular/webpack/__snapshots__/index.spec.ts.snap rename to libs/single-spa-community-angular/webpack/__snapshots__/index.spec.ts.snap diff --git a/libs/single-spa-angular/webpack/externals.ts b/libs/single-spa-community-angular/webpack/externals.ts similarity index 100% rename from libs/single-spa-angular/webpack/externals.ts rename to libs/single-spa-community-angular/webpack/externals.ts diff --git a/libs/single-spa-angular/webpack/index.spec.ts b/libs/single-spa-community-angular/webpack/index.spec.ts similarity index 100% rename from libs/single-spa-angular/webpack/index.spec.ts rename to libs/single-spa-community-angular/webpack/index.spec.ts diff --git a/libs/single-spa-angular/webpack/index.ts b/libs/single-spa-community-angular/webpack/index.ts similarity index 100% rename from libs/single-spa-angular/webpack/index.ts rename to libs/single-spa-community-angular/webpack/index.ts diff --git a/libs/single-spa-angular/webpack/webpack-5/remove-mini-css-extract.ts b/libs/single-spa-community-angular/webpack/webpack-5/remove-mini-css-extract.ts similarity index 100% rename from libs/single-spa-angular/webpack/webpack-5/remove-mini-css-extract.ts rename to libs/single-spa-community-angular/webpack/webpack-5/remove-mini-css-extract.ts diff --git a/package.json b/package.json index 11a8d24b..efea2c99 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "single-spa-angular", + "name": "@single-spa-community/angular", "version": "0.0.0", "description": "Helpers for building single-spa applications which use Angular 2+", "repository": { @@ -34,7 +34,7 @@ "test": "yarn clean && jest", "lint": "eslint apps libs --ext ts", "// - SINGLE-SPA-ANGULAR": "Scripts for building single-spa-angular", - "build:single-spa-angular": "nx build single-spa-angular --skip-nx-cache && cpx README.md lib", + "build:single-spa-angular": "nx build single-spa-community-angular --skip-nx-cache && cpx README.md lib", "// - WEBPACK": "Scripts for building Webpack config transformer", "build:webpack": "rimraf lib/lib && tsc -p tsconfig.webpack.json", "// - SYSTEM": "Scripts for building singla-spa-angular in SystemJS format", diff --git a/system/rollup.config.js b/system/rollup.config.js index a6d5f6a7..3997eb67 100644 --- a/system/rollup.config.js +++ b/system/rollup.config.js @@ -26,23 +26,23 @@ const packages = ['2022'] .map(ecma => [ { ecma, - angularPackage: 'single-spa-angular/internals', - filename: 'single-spa-angular-internals', + angularPackage: '@single-spa-community/angular/internals', + filename: 'single-spa-community-angular-internals', }, { ecma, - angularPackage: 'single-spa-angular', - filename: 'single-spa-angular', + angularPackage: '@single-spa-community/angular', + filename: 'single-spa-community-angular', }, { ecma, - angularPackage: 'single-spa-angular/elements', - filename: 'single-spa-angular-elements', + angularPackage: '@single-spa-community/angular/elements', + filename: 'single-spa-community-angular-elements', }, { ecma, - angularPackage: 'single-spa-angular/parcel', - filename: 'single-spa-angular-parcel', + angularPackage: '@single-spa-community/angular/parcel', + filename: 'single-spa-community-angular-parcel', }, ]) .flat(); diff --git a/tsconfig.base.json b/tsconfig.base.json index 357a4b6b..ecd0da4a 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -2,10 +2,16 @@ "compilerOptions": { "baseUrl": ".", "paths": { - "single-spa-angular": ["libs/single-spa-angular/index.ts"], - "single-spa-angular/elements": ["libs/single-spa-angular/elements/src/index.ts"], - "single-spa-angular/internals": ["libs/single-spa-angular/internals/src/index.ts"], - "single-spa-angular/parcel": ["libs/single-spa-angular/parcel/src/index.ts"] + "@single-spa-community/angular": ["libs/single-spa-community-angular/index.ts"], + "@single-spa-community/angular/elements": [ + "libs/single-spa-community-angular/elements/src/index.ts" + ], + "@single-spa-community/angular/internals": [ + "libs/single-spa-community-angular/internals/src/index.ts" + ], + "@single-spa-community/angular/parcel": [ + "libs/single-spa-community-angular/parcel/src/index.ts" + ] }, "target": "es2015", "module": "esnext", diff --git a/tsconfig.webpack.json b/tsconfig.webpack.json index 29f97512..8fd358a8 100644 --- a/tsconfig.webpack.json +++ b/tsconfig.webpack.json @@ -6,5 +6,5 @@ "module": "CommonJS", "types": ["node"] }, - "include": ["./libs/single-spa-angular/webpack/index.ts"] + "include": ["./libs/single-spa-community-angular/webpack/index.ts"] } diff --git a/yarn.lock b/yarn.lock index 1534d804..c4b80cb6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1721,13 +1721,13 @@ semver "^7.6.0" "@commitlint/lint@^20.4.1": - version "20.4.1" - resolved "https://registry.yarnpkg.com/@commitlint/lint/-/lint-20.4.1.tgz#27252b57a8058f91c95c04787060ade6ea601de5" - integrity sha512-g94LrGl/c6UhuhDQqNqU232aslLEN2vzc7MPfQTHzwzM4GHNnEAwVWWnh0zX8S5YXecuLXDwbCsoGwmpAgPWKA== + version "20.4.2" + resolved "https://registry.yarnpkg.com/@commitlint/lint/-/lint-20.4.2.tgz#c22dd66cbe689f3e8b9be468739b4394fcae8ad4" + integrity sha512-buquzNRtFng6xjXvBU1abY/WPEEjCgUipNQrNmIWe8QuJ6LWLtei/LDBAzEe5ASm45+Q9L2Xi3/GVvlj50GAug== dependencies: "@commitlint/is-ignored" "^20.4.1" "@commitlint/parse" "^20.4.1" - "@commitlint/rules" "^20.4.1" + "@commitlint/rules" "^20.4.2" "@commitlint/types" "^20.4.0" "@commitlint/load@^20.4.0": @@ -1782,10 +1782,10 @@ lodash.mergewith "^4.6.2" resolve-from "^5.0.0" -"@commitlint/rules@^20.4.1": - version "20.4.1" - resolved "https://registry.yarnpkg.com/@commitlint/rules/-/rules-20.4.1.tgz#3c26108286e88f35e4bef47f918778fd8a5504ac" - integrity sha512-WtqypKEPbQEuJwJS4aKs0OoJRBKz1HXPBC9wRtzVNH68FLhPWzxXlF09hpUXM9zdYTpm4vAdoTGkWiBgQ/vL0g== +"@commitlint/rules@^20.4.2": + version "20.4.2" + resolved "https://registry.yarnpkg.com/@commitlint/rules/-/rules-20.4.2.tgz#0370422fedc037b0e00259445d9b82377743a8a1" + integrity sha512-oz83pnp5Yq6uwwTAabuVQPNlPfeD2Y5ZjMb7Wx8FSUlu4sLYJjbBWt8031Z0osCFPfHzAwSYrjnfDFKtuSMdKg== dependencies: "@commitlint/ensure" "^20.4.1" "@commitlint/message" "^20.4.0" @@ -3595,9 +3595,9 @@ integrity sha512-uuG5HZFXLfyFKqg8QypsmgLQW7smiRjVc45bqD/ofZZcR/uxEjgQU8qDPv0s9TEeMUiAAU/GC5bR6++UdTirIQ== "@npmcli/package-json@^7.0.0": - version "7.0.4" - resolved "https://registry.yarnpkg.com/@npmcli/package-json/-/package-json-7.0.4.tgz#f4178e5d90b888f3bdf666915706f613c2d870d7" - integrity sha512-0wInJG3j/K40OJt/33ax47WfWMzZTm6OQxB9cDhTt5huCP2a9g2GnlsxmfN+PulItNPIpPrZ+kfwwUil7eHcZQ== + version "7.0.5" + resolved "https://registry.yarnpkg.com/@npmcli/package-json/-/package-json-7.0.5.tgz#e29481dfc586d1625a6553799e6bec52ae0487a5" + integrity sha512-iVuTlG3ORq2iaVa1IWUxAO/jIp77tUKBhoMjuzYW2kL4MLN1bi/ofqkZ7D7OOwh8coAx1/S2ge0rMdGv8sLSOQ== dependencies: "@npmcli/git" "^7.0.0" glob "^13.0.0" @@ -3605,7 +3605,7 @@ json-parse-even-better-errors "^5.0.0" proc-log "^6.0.0" semver "^7.5.3" - validate-npm-package-license "^3.0.4" + spdx-expression-parse "^4.0.0" "@npmcli/promise-spawn@^9.0.0": version "9.0.1" @@ -4873,11 +4873,11 @@ "@types/node" "*" "@types/node@*": - version "25.2.3" - resolved "https://registry.yarnpkg.com/@types/node/-/node-25.2.3.tgz#9c18245be768bdb4ce631566c7da303a5c99a7f8" - integrity sha512-m0jEgYlYz+mDJZ2+F4v8D1AyQb+QzsNqRuI7xg1VQX/KlKS0qT9r1Mo16yo5F/MtifXFgaofIFsdFMox2SxIbQ== + version "25.3.0" + resolved "https://registry.yarnpkg.com/@types/node/-/node-25.3.0.tgz#749b1bd4058e51b72e22bd41e9eab6ebd0180470" + integrity sha512-4K3bqJpXpqfg2XKGK9bpDTc6xO/xoUP/RBWS7AtRMug6zZFaRekiLzjVtAoZMquxoAbzBvy5nxQ7veS5eYzf8A== dependencies: - undici-types "~7.16.0" + undici-types "~7.18.0" "@types/node@25.2.0": version "25.2.0" @@ -5431,16 +5431,16 @@ acorn-jsx@^5.3.2: integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== acorn-walk@^8.0.2, acorn-walk@^8.1.1: - version "8.3.4" - resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.4.tgz#794dd169c3977edf4ba4ea47583587c5866236b7" - integrity sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g== + version "8.3.5" + resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.5.tgz#8a6b8ca8fc5b34685af15dabb44118663c296496" + integrity sha512-HEHNfbars9v4pgpW6SO1KSPkfoS0xVOM/9UzkJltjlsHZmJasxg8aXkuZa7SMf8vKGIBhpUsPluQSqhJFCqebw== dependencies: acorn "^8.11.0" acorn@^8.1.0, acorn@^8.11.0, acorn@^8.15.0, acorn@^8.4.1, acorn@^8.8.1, acorn@^8.9.0: - version "8.15.0" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.15.0.tgz#a360898bc415edaac46c8241f6383975b930b816" - integrity sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg== + version "8.16.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.16.0.tgz#4ce79c89be40afe7afe8f3adb902a1f1ce9ac08a" + integrity sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw== address@^1.0.1: version "1.2.2" @@ -6014,9 +6014,9 @@ base@^0.11.1: pascalcase "^0.1.1" baseline-browser-mapping@^2.9.0: - version "2.9.19" - resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.9.19.tgz#3e508c43c46d961eb4d7d2e5b8d1dd0f9ee4f488" - integrity sha512-ipDqC8FrAl/76p2SSWKSI+H9tFwm7vYqXQrItCuiVPt26Km0jS+NzSsBWAaBusvSbQcfJG+JitdMm+wZAgTYqg== + version "2.10.0" + resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.10.0.tgz#5b09935025bf8a80e29130251e337c6a7fc8cbb9" + integrity sha512-lIyg0szRfYbiy67j9KN8IyeD7q7hcmqnJ1ddWmNt19ItGpNN64mnllmxUNFIOdOm6by97jlL6wfpTTJrmnjWAA== basic-auth@^2.0.1: version "2.0.1" @@ -8823,10 +8823,10 @@ get-caller-file@^2.0.1, get-caller-file@^2.0.5: resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== -get-east-asian-width@^1.0.0, get-east-asian-width@^1.3.0, get-east-asian-width@^1.3.1: - version "1.4.0" - resolved "https://registry.yarnpkg.com/get-east-asian-width/-/get-east-asian-width-1.4.0.tgz#9bc4caa131702b4b61729cb7e42735bc550c9ee6" - integrity sha512-QZjmEOC+IT1uk6Rx0sX22V6uHWVwbdbxf1faPqJ1QhLdGgsRGCZoyaQBm/piRdJy/D2um6hM1UP7ZEeQ4EkP+Q== +get-east-asian-width@^1.0.0, get-east-asian-width@^1.3.1, get-east-asian-width@^1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/get-east-asian-width/-/get-east-asian-width-1.5.0.tgz#ce7008fe345edcf5497a6f557cfa54bc318a9ce7" + integrity sha512-CQ+bEO+Tva/qlmw24dCejulK5pMzVnUOFOijVogd3KQs07HnRIgp8TGipvCCRT06xeYEbpbgwaCxglFyiuIcmA== get-intrinsic@^1.2.4, get-intrinsic@^1.2.5, get-intrinsic@^1.2.6, get-intrinsic@^1.3.0: version "1.3.0" @@ -8944,13 +8944,13 @@ glob2base@^0.0.12: find-index "^0.1.1" glob@^13.0.0: - version "13.0.5" - resolved "https://registry.yarnpkg.com/glob/-/glob-13.0.5.tgz#a48f760c6312b1a19d2950fcb577384221c4ec00" - integrity sha512-BzXxZg24Ibra1pbQ/zE7Kys4Ua1ks7Bn6pKLkVPZ9FZe4JQS6/Q7ef3LG1H+k7lUf5l4T3PLSyYyYJVYUvfgTw== + version "13.0.6" + resolved "https://registry.yarnpkg.com/glob/-/glob-13.0.6.tgz#078666566a425147ccacfbd2e332deb66a2be71d" + integrity sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw== dependencies: - minimatch "^10.2.1" - minipass "^7.1.2" - path-scurry "^2.0.0" + minimatch "^10.2.2" + minipass "^7.1.3" + path-scurry "^2.0.2" glob@^7.0.5, glob@^7.1.3, glob@^7.1.4: version "7.2.3" @@ -11329,10 +11329,10 @@ minimatch@3.1.2, minimatch@^3.0.2, minimatch@^3.0.4, minimatch@^3.0.5, minimatch dependencies: brace-expansion "^1.1.7" -minimatch@^10.0.3, minimatch@^10.1.1, minimatch@^10.2.1: - version "10.2.1" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-10.2.1.tgz#9d82835834cdc85d5084dd055e9a4685fa56e5f0" - integrity sha512-MClCe8IL5nRRmawL6ib/eT4oLyeKMGCghibcDWK+J0hh0Q8kqSdia6BvbRMVk6mPa6WqUa5uR2oxt6C5jd533A== +minimatch@^10.0.3, minimatch@^10.1.1, minimatch@^10.2.2: + version "10.2.2" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-10.2.2.tgz#361603ee323cfb83496fea2ae17cc44ea4e1f99f" + integrity sha512-+G4CpNBxa5MprY+04MbgOw1v7So6n5JY166pFi9KfYwT78fxScCeSNQSNzp6dpPSW2rONOps6Ocam1wFhCgoVw== dependencies: brace-expansion "^5.0.2" @@ -11408,10 +11408,10 @@ minipass@^3.0.0: dependencies: yallist "^4.0.0" -minipass@^7.0.2, minipass@^7.0.3, minipass@^7.0.4, minipass@^7.1.2: - version "7.1.2" - resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.1.2.tgz#93a9626ce5e5e66bd4db86849e7515e92340a707" - integrity sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw== +minipass@^7.0.2, minipass@^7.0.3, minipass@^7.0.4, minipass@^7.1.2, minipass@^7.1.3: + version "7.1.3" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.1.3.tgz#79389b4eb1bb2d003a9bba87d492f2bd37bdc65b" + integrity sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A== minizlib@^3.0.1, minizlib@^3.1.0: version "3.1.0" @@ -12290,10 +12290,10 @@ path-parse@^1.0.7: resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== -path-scurry@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/path-scurry/-/path-scurry-2.0.1.tgz#4b6572376cfd8b811fca9cd1f5c24b3cbac0fe10" - integrity sha512-oWyT4gICAu+kaA7QWk/jvCHWarMKNs6pXOGWKDTr7cw4IGcUbW+PeTfbaQiLGheFRpjo6O9J0PmyMfQPjH71oA== +path-scurry@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/path-scurry/-/path-scurry-2.0.2.tgz#6be0d0ee02a10d9e0de7a98bae65e182c9061f85" + integrity sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg== dependencies: lru-cache "^11.0.0" minipass "^7.1.2" @@ -14399,6 +14399,14 @@ spdx-expression-parse@^3.0.0: spdx-exceptions "^2.1.0" spdx-license-ids "^3.0.0" +spdx-expression-parse@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-4.0.0.tgz#a23af9f3132115465dac215c099303e4ceac5794" + integrity sha512-Clya5JIij/7C6bRR22+tnGXbc4VKlibKSVj2iHvVeX5iMW7s1SIQlqu699JkODJJIhh/pUu8L0/VLh8xflD+LQ== + dependencies: + spdx-exceptions "^2.1.0" + spdx-license-ids "^3.0.0" + spdx-license-ids@^3.0.0: version "3.0.22" resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.22.tgz#abf5a08a6f5d7279559b669f47f0a43e8f3464ef" @@ -14592,12 +14600,12 @@ string-width@^7.0.0, string-width@^7.2.0: strip-ansi "^7.1.0" string-width@^8.0.0, string-width@^8.1.0: - version "8.1.1" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-8.1.1.tgz#9b5aa0df72e3f232611c57fd47eb41dd97866bd3" - integrity sha512-KpqHIdDL9KwYk22wEOg/VIqYbrnLeSApsKT/bSj6Ez7pn3CftUiLAv2Lccpq1ALcpLV9UX1Ppn92npZWu2w/aw== + version "8.2.0" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-8.2.0.tgz#bdb6a9bd6d7800db635adae96cdb0443fec56c42" + integrity sha512-6hJPQ8N0V0P3SNmP6h2J99RLuzrWz2gvT7VnK5tKvrNqJoyS9W4/Fb8mo31UiPvy00z7DQXkP2hnKBVav76thw== dependencies: - get-east-asian-width "^1.3.0" - strip-ansi "^7.1.0" + get-east-asian-width "^1.5.0" + strip-ansi "^7.1.2" string_decoder@^1.1.1: version "1.3.0" @@ -15125,6 +15133,11 @@ undici-types@~7.16.0: resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.16.0.tgz#ffccdff36aea4884cbfce9a750a0580224f58a46" integrity sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw== +undici-types@~7.18.0: + version "7.18.2" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.18.2.tgz#29357a89e7b7ca4aef3bf0fd3fd0cd73884229e9" + integrity sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w== + undici@7.18.2: version "7.18.2" resolved "https://registry.yarnpkg.com/undici/-/undici-7.18.2.tgz#6cf724ef799a67d94fd55adf66b1e184176efcdf" @@ -15307,7 +15320,7 @@ v8-to-istanbul@^9.0.1: "@types/istanbul-lib-coverage" "^2.0.1" convert-source-map "^2.0.0" -validate-npm-package-license@^3.0.1, validate-npm-package-license@^3.0.4: +validate-npm-package-license@^3.0.1: version "3.0.4" resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==