mirror of
https://github.com/primer/css.git
synced 2024-12-23 22:24:11 +03:00
Fixing builds
This commit is contained in:
parent
ee4b464619
commit
bacf7b55af
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user