File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11language : node_js
22node_js :
3- - 14
3+ - 18
44cache :
55 yarn : true
66script :
Original file line number Diff line number Diff line change 11{
22 "name" : " @utilitycss/utility" ,
3- "version" : " 1.2.3 " ,
3+ "version" : " 1.2.4 " ,
44 "description" : " Generator for Utility CSS frameworks" ,
55 "author" : " Andrea Moretti (@axyz) <axyzxp@gmail.com>" ,
66 "repository" : " utilitycss/utility" ,
1919 },
2020 "dependencies" : {
2121 "commander" : " 7.0.0" ,
22- "cssstats" : " ^4.0.0" ,
2322 "deepmerge" : " ^4.2.2" ,
2423 "open" : " ^7.4.0" ,
2524 "chalk" : " ^4.1.0" ,
2625 "lodash" : " ^4.17.20" ,
2726 "mocha" : " ^8.3.0" ,
28- "postcss" : " 8.2.6 "
27+ "postcss" : " 8.4.29 "
2928 },
3029 "devDependencies" : {
3130 "@types/mocha" : " ^8.2.0" ,
3231 "@types/lodash" : " ^4.14.168" ,
33- "@types/node" : " ^14.14.27 " ,
32+ "@types/node" : " ^18.17.14 " ,
3433 "@types/prettier" : " ^2.2.1" ,
3534 "@typescript-eslint/eslint-plugin" : " ^4.15.0" ,
3635 "@typescript-eslint/parser" : " ^4.15.0" ,
4746 "postcss-cli" : " ^8.3.1" ,
4847 "prettier" : " ^2.2.1" ,
4948 "prettydiff" : " ^101.2.6" ,
50- "ts-node" : " ^9.1 .1" ,
51- "typescript" : " ^4.1 .5"
49+ "ts-node" : " ^10.9 .1" ,
50+ "typescript" : " ^4.2 .5"
5251 },
5352 "husky" : {
5453 "hooks" : {
Original file line number Diff line number Diff line change @@ -74,13 +74,13 @@ program
7474 debug ( "Building CSS bundle..." ) ;
7575 postcss ( [ builder ( config ) ] )
7676 . process ( input )
77- . then ( async ( result ) => {
77+ . then ( async ( result : any ) => {
7878 await write ( result . css ) ;
7979 // eslint-disable-next-line no-console
8080 debug ( "Success!" ) ;
8181 } )
8282 // eslint-disable-next-line no-console
83- . catch ( ( e ) => console . error ( chalk . red ( e ) ) ) ;
83+ . catch ( ( e : Error ) => console . error ( chalk . red ( e ) ) ) ;
8484 } ) ;
8585
8686program . command ( "*" , null , { noHelp : true } ) . action ( ( ) => {
Original file line number Diff line number Diff line change @@ -2,13 +2,11 @@ import path from "path";
22import { promises as fsAsync } from "fs" ;
33import _ from "lodash" ;
44
5- // eslint-disable-next-line @typescript-eslint/no-var-requires
6- const cssstats = require ( "cssstats" ) ;
7-
85interface BuildStats {
96 atomCss : string ;
107}
118
9+ /* FIXME: Temporarily disabled due to cssstats's dependency to postcss-safe-parser, that causes issues in node 18 */
1210export default async function buildStats ( {
1311 atomCss,
1412} : BuildStats ) : Promise < string > {
@@ -26,7 +24,7 @@ export default async function buildStats({
2624 } = { } as any ,
2725 declarations : { total : totalDecls , unique : uniqueDecls } = { } as any ,
2826 mediaQueries : { total : totalMedia } = { } as any ,
29- } = cssstats ( atomCss ) as any ;
27+ } = { } as any ;
3028
3129 const statsTemplate = _ . template (
3230 await fsAsync . readFile (
You can’t perform that action at this time.
0 commit comments