napi-rs/write-ava-config.js
2020-10-14 11:44:37 +08:00

10 lines
240 B
JavaScript

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)