napi-rs/write-ava-config.js

11 lines
240 B
JavaScript
Raw Normal View History

2020-10-14 12:44:37 +09:00
const { writeFileSync } = require('fs')
const { join } = require('path')
const config = require('./ava.config.cjs')
const code = `
export default ${JSON.stringify(config, null, 2)}
`
writeFileSync(join(__dirname, 'ava.config.js'), code)