unify-token
Advanced tools
Comparing version 1.4.0-beta-1 to 1.4.0-beta-2
@@ -67,2 +67,2 @@ const fontType = { | ||
module.exports = {fontType,fontTypeRAW,fontSize,fontSizeRAW,fontWeight,fontWeightRAW,lineHeight,lineHeightRAW}; | ||
module.exports = {fontType,fontSize,fontSizeRAW,fontWeight,lineHeight,lineHeightRAW}; |
@@ -82,4 +82,2 @@ const camelCase = require('lodash/camelCase'); | ||
exportVal = [...exportVal, name, name + 'RAW']; | ||
if (unit) { | ||
@@ -121,6 +119,8 @@ unit.map((key, index) => unitObject[index] = key) | ||
exportVal = [...exportVal, name, !unitWhitelist.includes(category) ? name + 'RAW' : '']; | ||
return mainModule + rawModule | ||
}).toJS().join('\n') | ||
return `${res}\nmodule.exports = {${exportVal.join(',')}};` | ||
return `${res}\nmodule.exports = {${exportVal.filter(Boolean).join(',')}};` | ||
}) | ||
@@ -127,0 +127,0 @@ |
{ | ||
"name": "unify-token", | ||
"version": "1.4.0-beta-1", | ||
"version": "1.4.0-beta-2", | ||
"description": "Design Tokens for the Unify Design System", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
30406