Skip to content

Commit

Permalink
Merge pull request #967 from primer/release-14.0.0-merge-conflict
Browse files Browse the repository at this point in the history
Finish resolve 14.0.0 merge conflicts
  • Loading branch information
shawnbot authored Oct 31, 2019
2 parents 851a70a + ef8d845 commit 8dc9609
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions script/dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ async function dist() {

const meta = {bundles}
await writeFile(join(outDir, 'meta.json'), JSON.stringify(meta, null, 2), encoding)
await writeVariableData()
await writeDeprecationData()
} catch (error) {
console.error(error)
Expand Down Expand Up @@ -101,3 +102,10 @@ function writeDeprecationData() {
if (require.main === module) {
dist()
}

function writeVariableData() {
const analyzeVariables = require('./analyze-variables')
return analyzeVariables('src/support/index.scss').then(data =>
writeFile(join(outDir, 'variables.json'), JSON.stringify(data, null, 2))
)
}

0 comments on commit 8dc9609

Please sign in to comment.