diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index a8e9069..599e532 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -24,7 +24,7 @@ jobs: run: npm run test:headless - name: Build - run: npm run build:prod + run: npm run build:gh - name: Deploy if: success() diff --git a/package.json b/package.json index bffd2eb..042e4a3 100644 --- a/package.json +++ b/package.json @@ -4,10 +4,11 @@ "scripts": { "ng": "ng", "start": "ng serve", - "build": "ng build", - "build:copy-assets": "", - "build:sources": "ng build --configuration production --base-href https://lonli-lokli.github.io/ng-result/", - "build:prod": "run-s build:sources build:copy-assets", + "build": "ng build", + "build:gh": "ng build --configuration production --base-href https://lonli-lokli.github.io/ng-result/", + "build:library": "ng build --configuration production ng-result", + "build:copy-assets": "shx cp README.md dist/ng-result", + "build:package": "run-s build:library build:copy-assets", "watch": "ng build --watch --configuration development", "test": "jest", "test:headless": "jest --watch=false --browsers=ChromeHeadless" diff --git a/projects/ng-result/ng-package.json b/projects/ng-result/ng-package.json index 24d1f50..795c246 100644 --- a/projects/ng-result/ng-package.json +++ b/projects/ng-result/ng-package.json @@ -3,5 +3,8 @@ "dest": "../../dist/ng-result", "lib": { "entryFile": "src/public-api.ts" - } + }, + "allowedNonPeerDependencies": [ + "@lonli-lokli/ts-result" +] } \ No newline at end of file diff --git a/projects/ng-result/package.json b/projects/ng-result/package.json index d18e44d..92f7636 100644 --- a/projects/ng-result/package.json +++ b/projects/ng-result/package.json @@ -1,14 +1,27 @@ { - "name": "ng-result", - "version": "1.0.0", + "name": "@lonli-lokli/ng-result", + "version": "1.0.2", + "private": false, "peerDependencies": { "@angular/common": "^12.2.0", "@angular/core": "^12.2.0", - "@lonli-lokli/ts-result": "^1.0.0", - "@sweet-monads/maybe": "^3.1.0", - "@sweet-monads/either": "^3.1.0" + "tslib": "^2.3.0" }, "dependencies": { - "tslib": "^2.3.0" - } + "@lonli-lokli/ts-result": "^1.0.1" + }, + "description": " Angular Library with set of components/directives/pipes for easier work with Result union from https://github.com/Lonli-Lokli/ts-result", + "repository": { + "type": "git", + "url": "https://github.com/Lonli-Lokli/ng-result.git", + "directory": "projects/ng-result" + }, + "keywords": [ + "Typescript", + "Result", + "Monad", + "Angular" + ], + "author": "Lonli-Lokli", + "license": "MIT" } \ No newline at end of file