File tree 3 files changed +17
-10
lines changed
3 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @sector-labs/postcss-inline-class" ,
3
- "version" : " 0.0.7 " ,
3
+ "version" : " 0.0.8 " ,
4
4
"description" : " Inline the declarations of other CSS classes in your CSS classes." ,
5
5
"main" : " src/index.js" ,
6
6
"repository" : " https://github.com/sectorlabs/postcss-inline-class" ,
31
31
"eslint-config-i-am-meticulous" : " ^12.0.0" ,
32
32
"eslint-plugin-import" : " ^2.20.2" ,
33
33
"eslint-plugin-prettier" : " ^3.1.2" ,
34
- "postcss-tape" : " ^5 .0.2 " ,
34
+ "postcss-tape" : " ^6 .0.0 " ,
35
35
"prettier" : " ^2.0.4"
36
36
},
37
37
"scripts" : {
Original file line number Diff line number Diff line change @@ -125,7 +125,14 @@ const defaultOptions = Object.freeze({
125
125
extensions : [ '' ] ,
126
126
} ) ;
127
127
128
- module . exports = postcss . plugin ( 'postcss-inline-class' , ( options ) => {
129
- return ( root , result ) =>
130
- new Promise ( processFile ( root , result , ( options || defaultOptions ) . paths ) ) ;
131
- } ) ;
128
+ const plugin = ( options ) => {
129
+ return {
130
+ postcssPlugin : 'postcss-inline-class' ,
131
+ Once ( root , { result } ) {
132
+ return new Promise ( processFile ( root , result , ( options || defaultOptions ) . paths ) ) ;
133
+ } ,
134
+ } ;
135
+ } ;
136
+ plugin . postcss = true ;
137
+
138
+ module . exports = plugin ;
Original file line number Diff line number Diff line change @@ -1229,10 +1229,10 @@ possible-typed-array-names@^1.0.0:
1229
1229
resolved "https://registry.yarnpkg.com/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz#89bb63c6fada2c3e90adc4a647beeeb39cc7bf8f"
1230
1230
integrity sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==
1231
1231
1232
- postcss-tape@^5 .0.2 :
1233
- version "5 .0.2 "
1234
- resolved "https://registry.yarnpkg.com/postcss-tape/-/postcss-tape-5 .0.2 .tgz#7ae011050954fdc10b17d1f1551c9d9bf14e4bdf "
1235
- integrity sha512-e4770WnsUzczQp/pAIsz0s0MDLAQ7luyh1/hs8QBcdfXOMrz0siEqYNHAKJIoCvGtLoi2QUjWASvTbPfyTfIWg ==
1232
+ postcss-tape@^6 .0.0 :
1233
+ version "6 .0.1 "
1234
+ resolved "https://registry.yarnpkg.com/postcss-tape/-/postcss-tape-6 .0.1 .tgz#c81bd77c79c7a9a9a559b6af04a02e4487eb467a "
1235
+ integrity sha512-qw/1YCSoGgmz8DC/8lbUo3OZGN0UWWZdThAvCSOIJrK346Weu8bM+aC5c9q1/Np2YjCJfRqhJO+P94A3sLdWhQ ==
1236
1236
1237
1237
postcss@^8.0.0 :
1238
1238
version "8.4.47"
You can’t perform that action at this time.
0 commit comments