From e1967d322f3c60e26f27782f3c9a3ccfb97487b5 Mon Sep 17 00:00:00 2001 From: Bogdan Ivanov Date: Sun, 9 Jun 2024 09:50:19 +0300 Subject: [PATCH] fix(angular): package publish fixes --- packages/angular/aptabase-angular/LICENSE | 21 +++++++++++++++++++ .../angular/aptabase-angular/ng-package.json | 4 ++-- .../angular/aptabase-angular/package.json | 11 +++++++--- 3 files changed, 31 insertions(+), 5 deletions(-) create mode 100644 packages/angular/aptabase-angular/LICENSE diff --git a/packages/angular/aptabase-angular/LICENSE b/packages/angular/aptabase-angular/LICENSE new file mode 100644 index 0000000..a5e3447 --- /dev/null +++ b/packages/angular/aptabase-angular/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Sumbit Labs Ltd. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/angular/aptabase-angular/ng-package.json b/packages/angular/aptabase-angular/ng-package.json index 67bf02e..a10472d 100644 --- a/packages/angular/aptabase-angular/ng-package.json +++ b/packages/angular/aptabase-angular/ng-package.json @@ -1,7 +1,7 @@ { "$schema": "../node_modules/ng-packagr/ng-package.schema.json", - "dest": "../dist/aptabase-angular", + "dest": "dist", "lib": { "entryFile": "src/public-api.ts" } -} \ No newline at end of file +} diff --git a/packages/angular/aptabase-angular/package.json b/packages/angular/aptabase-angular/package.json index 0c99bdf..ee09130 100644 --- a/packages/angular/aptabase-angular/package.json +++ b/packages/angular/aptabase-angular/package.json @@ -1,6 +1,6 @@ { "name": "@aptabase/angular", - "version": "0.0.1", + "version": "0.0.6", "description": "Angular SDK for Aptabase: Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps", "repository": { "type": "git", @@ -12,9 +12,14 @@ }, "homepage": "https://github.com/aptabase/aptabase-js", "license": "MIT", + "scripts": { + "pre-build": "cp ../../shared.ts ./src", + "build": "npm run pre-build && ng build aptabase-angular", + "prepublishOnly": "npm run build" + }, "peerDependencies": { - "@angular/common": "^17.3.0", - "@angular/core": "^17.3.0" + "@angular/common": "^17.0.0", + "@angular/core": "^17.0.0" }, "dependencies": { "tslib": "^2.3.0"