Skip to content

Commit ad27cbc

Browse files
authored
Merge pull request #19 from design4pro/develop
fix(angular-jss): dependencies
2 parents 7c94040 + 4f1718d commit ad27cbc

4 files changed

Lines changed: 12 additions & 7 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313

1414
## Features
1515

16+
- [x] Component decorator `Styled`
17+
- [x] Theming with `Theme`
18+
- [x] Server Side Rendering with Angular Universal
19+
1620
## Table of Contents
1721

1822
- [Installation](#installation)

libs/angular-jss/ng-package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"dest": "../../dist/libs/angular-jss",
44
"lib": {
55
"entryFile": "src/index.ts"
6-
}
6+
},
7+
"allowedNonPeerDependencies": ["."]
78
}

libs/angular-jss/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@design4pro/angular-jss",
33
"version": "0.0.1",
4-
"description": "Angular for JSS",
4+
"description": "JSS integration with Angular",
55
"license": "MIT",
66
"keywords": [
77
"angular",
@@ -24,13 +24,13 @@
2424
"homepage": "https://github.com/design4pro/angular-jss#readme",
2525
"peerDependencies": {
2626
"@angular/common": "^13.2.0",
27-
"@angular/core": "^13.2.0",
27+
"@angular/core": "^13.2.0"
28+
},
29+
"dependencies": {
2830
"jss": "^10.9.0",
2931
"jss-plugin-camel-case": "^10.9.0",
3032
"jss-plugin-global": "^10.9.0",
31-
"jss-plugin-rule-value-function": "^10.9.0"
32-
},
33-
"dependencies": {
33+
"jss-plugin-rule-value-function": "^10.9.0",
3434
"tslib": "^2.3.0"
3535
},
3636
"publishConfig": {

libs/angular-jss/src/lib/jss/utils/sheets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const getStyles = (options: Options<JssContext, ThemeContext>) => {
3434
return styles;
3535
}
3636

37-
if (styles.length !== 0) {
37+
if (styles.length === 0) {
3838
console.warn(
3939
`[JSS] <${
4040
options.name || 'Hook'

0 commit comments

Comments
 (0)