* Build(deps): bump js-yaml from 3.14.1 to 4.0.0 Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.14.1 to 4.0.0. - [Release notes](https://github.com/nodeca/js-yaml/releases) - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](https://github.com/nodeca/js-yaml/compare/3.14.1...4.0.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * deps: apply js-yaml v4 changes * deps: js-yaml v4 updates in gatsby config Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Caleb Cartwright <caleb.cartwright@outlook.com> Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
13 lines
364 B
JavaScript
13 lines
364 B
JavaScript
'use strict'
|
|
|
|
const yaml = require('js-yaml')
|
|
const { collectDefinitions } = require('../core/base-service/loader')
|
|
|
|
const definitions = collectDefinitions()
|
|
|
|
// Omit undefined
|
|
// https://github.com/nodeca/js-yaml/issues/356#issuecomment-312430599
|
|
const cleaned = JSON.parse(JSON.stringify(definitions))
|
|
|
|
process.stdout.write(yaml.dump(cleaned, { flowLevel: 5 }))
|