Skip to content

Commit

Permalink
refactor: deprecate src/lib/* SCSS entrypoints
Browse files Browse the repository at this point in the history
  • Loading branch information
json-derulo committed Oct 17, 2023
1 parent 4343fdc commit 600454f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
6 changes: 3 additions & 3 deletions projects/material-css-vars/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@
"sass": "./src/lib/_variables.scss"
},
"./src/lib/main": {
"sass": "./src/lib/_main.scss"
"sass": "./src/lib/legacy/main.scss"
},
"./src/lib/public-util": {
"sass": "./src/lib/_public-util.scss"
"sass": "./src/lib/legacy/public-util.scss"
},
"./src/lib/variables": {
"sass": "./src/lib/_variables.scss"
"sass": "./src/lib/legacy/variables.scss"
}
}
}
3 changes: 3 additions & 0 deletions projects/material-css-vars/src/lib/legacy/main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@forward "../main";

@warn 'The "angular-material-css-vars/src/lib/main" entrypoint is deprecated. Please use the mixins from the "angular-material-css-vars" entrypoint instead.';
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@forward "../public-color-util";

@warn 'The "angular-material-css-vars/src/lib/public-color-util" entrypoint is deprecated. Please use the utils from the "angular-material-css-vars" entrypoint instead.';
3 changes: 3 additions & 0 deletions projects/material-css-vars/src/lib/legacy/public-util.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@forward "../public-util";

@warn 'The "angular-material-css-vars/src/lib/public-util" entrypoint is deprecated. Please use the utils from the "angular-material-css-vars" entrypoint instead.';
3 changes: 3 additions & 0 deletions projects/material-css-vars/src/lib/legacy/variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@forward "../variables";

@warn 'The "angular-material-css-vars/src/lib/variables" entrypoint is deprecated. Please use the variables from the "angular-material-css-vars" entrypoint instead.';

0 comments on commit 600454f

Please sign in to comment.