1
1
mirror of https://github.com/primer/css.git synced 2024-12-24 14:42:26 +03:00

Fixing builds

This commit is contained in:
Jon Rohan 2021-05-12 14:55:49 -07:00
parent ee4b464619
commit bacf7b55af
No known key found for this signature in database
GPG Key ID: B0BBE304A9A0AECB

View File

@ -29,12 +29,14 @@ function getCurrentVersion() {
}
function getDeprecatedSelectors(version) {
if (getCurrentVersion().raw === version) return []
let deprecations = require(join(currentPath, './dist/deprecations.json'))
deprecations = deprecations.versions[version] || []
return deprecations.reduce((list, deprecation) => list.concat(deprecation.selectors), []).filter(v => v)
}
function getDeprecatedVariables(version) {
if (getCurrentVersion().raw === version) return []
let deprecations = require(join(currentPath, './dist/deprecations.json'))
deprecations = deprecations.versions[version] || []
return deprecations.reduce((list, deprecation) => list.concat(deprecation.variables), []).filter(v => v)