1 | const path = require('path');
|
2 | const fs = require('fs-extra');
|
3 |
|
4 | let output = path.join(__dirname, '../../transform-framework/');
|
5 | let entry = path.join(__dirname, '../../antmove/');
|
6 |
|
7 |
|
8 | function process (filename) {
|
9 | let entryPath = path.join(entry, filename);
|
10 | let outputPath = path.join(output, filename);
|
11 | let json = fs.readFileSync(entryPath, 'utf8');
|
12 | console.log('[update]: ' + outputPath);
|
13 | fs.outputFileSync(outputPath, json);
|
14 | }
|
15 |
|
16 | const files = [
|
17 | './package.json',
|
18 | './lerna.json',
|
19 | './packages/@antmove/utils/package.json',
|
20 | './packages/@antmove/wx-alipay-plugin/package.json',
|
21 | ];
|
22 |
|
23 | files.forEach(function (file) {
|
24 | process(file);
|
25 | }); |
\ | No newline at end of file |