mirror of
https://github.com/pnpm/pnpm.git
synced 2026-02-05 04:31:31 -05:00
Use lebab to transpile ES5 code to ES6. Use eslint to fix styling issues afterwards. Run all js in strict mode to allow let/const in Node 4.
5 lines
154 B
JavaScript
5 lines
154 B
JavaScript
'use strict'
|
|
const writeFile = require('mz/fs').writeFile
|
|
|
|
module.exports = (path, json) => writeFile(path, JSON.stringify(json, null, 2) + '\n', 'utf8')
|