| 123456789101112131415161718 |
- const path = require('path')
- const { writeFile } = require('./util')
- const { pkgStructs } = require('./pkg-struct')
- exports.writePkgJsons = writePkgJsons
- function writePkgJsons() {
- return Promise.all(
- pkgStructs.map((pkgStruct) => {
- return writeFile(
- path.join(pkgStruct.distDir, 'package.json'),
- JSON.stringify(pkgStruct.jsonObj, null, ' ') + '\n'
- )
- })
- )
- }
|