Closed shkarupa-alex closed 7 years ago
We had some troubles with publishing the latest version of bemjson-to-decl
package, so if you need the solution right now please use the old version.
@bem/sdk.bemjson-to-decl
(or something similar) package.We gonna solve trouble with publishing today, prob we're lucky and will finish it.
$ npm i @bem/sdk.bemjson-to-decl
+ @bem/sdk.bemjson-to-decl@0.2.1
$ node -p 'require("@bem/sdk.bemjson-to-decl").convert({block: "b", mods: {width: "auto"}})'
[ BemEntityName { block: 'b' },
BemEntityName { block: 'b', mod: { name: 'width', val: true } },
BemEntityName { block: 'b', mod: { name: 'width', val: 'auto' } } ]
Old package https://github.com/bem-sdk-archive/bemjson-to-decl now forwards to https://github.com/bem/bem-sdk/tree/master/packages/bemjson-to-decl
But how to install it? Name in package.json already changed, but not published.
There some questions with it: