mirror of
https://github.com/harness/drone.git
synced 2025-05-04 23:09:34 +08:00
10 lines
170 B
JavaScript
10 lines
170 B
JavaScript
const yaml = require('yaml')
|
|
|
|
module.exports = {
|
|
process(src) {
|
|
const json = yaml.parse(src)
|
|
|
|
return { code: `module.exports = ${JSON.stringify(json)}` }
|
|
}
|
|
}
|