Skip to content

Commit

Permalink
fix: add css exports
Browse files Browse the repository at this point in the history
fixes #912
  • Loading branch information
scttcper committed Nov 18, 2021
1 parent 2839307 commit 9efa4dd
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 19 deletions.
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"ng": "ng",
"start": "ng serve",
"build": "ng-packagr -p src/lib/package.json",
"postbuild": "cpy README.md LICENSE src/lib/toastr-old.css src/lib/toastr-bs4-alert.scss src/lib/toastr.css dist",
"postbuild": "cpy README.md LICENSE dist",
"test": "ng test --watch=false",
"test:watch": "ng test",
"test:ci": "ng test --watch=false --code-coverage --no-progress",
Expand All @@ -19,47 +19,47 @@
},
"private": true,
"devDependencies": {
"@angular-devkit/build-angular": "13.0.2",
"@angular-devkit/build-angular": "13.0.3",
"@angular-eslint/builder": "13.0.0-alpha.0",
"@angular-eslint/eslint-plugin": "13.0.0-alpha.0",
"@angular-eslint/eslint-plugin-template": "13.0.0-alpha.0",
"@angular-eslint/schematics": "13.0.0-alpha.0",
"@angular-eslint/template-parser": "13.0.0-alpha.0",
"@angular/animations": "13.0.1",
"@angular/cli": "13.0.2",
"@angular/common": "13.0.1",
"@angular/compiler": "13.0.1",
"@angular/compiler-cli": "13.0.1",
"@angular/core": "13.0.1",
"@angular/forms": "13.0.1",
"@angular/language-service": "13.0.1",
"@angular/platform-browser": "13.0.1",
"@angular/platform-browser-dynamic": "13.0.1",
"@angular/router": "13.0.1",
"@angular/animations": "13.0.2",
"@angular/cli": "13.0.3",
"@angular/common": "13.0.2",
"@angular/compiler": "13.0.2",
"@angular/compiler-cli": "13.0.2",
"@angular/core": "13.0.2",
"@angular/forms": "13.0.2",
"@angular/language-service": "13.0.2",
"@angular/platform-browser": "13.0.2",
"@angular/platform-browser-dynamic": "13.0.2",
"@angular/router": "13.0.2",
"@ctrl/ngx-github-buttons": "7.1.0",
"@types/jasmine": "3.10.2",
"@types/lodash-es": "4.17.5",
"@types/node": "16.11.7",
"@typescript-eslint/eslint-plugin": "5.3.1",
"@typescript-eslint/parser": "5.3.1",
"@typescript-eslint/eslint-plugin": "5.4.0",
"@typescript-eslint/parser": "5.4.0",
"bootstrap": "5.1.3",
"cpy-cli": "3.1.1",
"del": "6.0.0",
"eslint": "7.32.0",
"eslint": "8.2.0",
"jasmine-core": "3.10.1",
"jasmine-spec-reporter": "7.0.0",
"karma": "6.3.8",
"karma": "6.3.9",
"karma-chrome-launcher": "3.1.0",
"karma-cli": "2.0.0",
"karma-coverage-istanbul-reporter": "3.0.3",
"karma-jasmine": "4.0.1",
"karma-jasmine-html-reporter": "1.7.0",
"lodash-es": "4.17.21",
"ng-packagr": "13.0.3",
"ng-packagr": "13.0.5",
"rxjs": "7.4.0",
"ts-node": "10.4.0",
"tslib": "2.3.1",
"typescript": "4.4.4",
"typescript": "4.5.2",
"zone.js": "0.11.4"
},
"release": {
Expand Down
16 changes: 16 additions & 0 deletions src/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,26 @@
"@angular/common": ">=12.0.0-0",
"@angular/platform-browser": ">=12.0.0-0"
},
"exports": {
"./toastr": {
"default": "./toastr.css"
},
"./toastr-old": {
"default": "./toastr-old.css"
},
"./toastr-bs4-alert": {
"default": "./toastr-bs4-alert.scss"
}
},
"ngPackage": {
"lib": {
"entryFile": "public_api.ts"
},
"assets": [
"./toastr.css",
"./toastr-old.css",
"./toastr-bs4-alert.scss"
],
"dest": "../../dist"
},
"repository": "scttcper/ngx-toastr",
Expand Down

0 comments on commit 9efa4dd

Please sign in to comment.