UNPKG

668 BJavaScriptView Raw
1const path = require('path');
2const fs = require('fs-extra');
3
4let output = path.join(__dirname, '../../transform-framework/');
5let entry = path.join(__dirname, '../../antmove/');
6
7
8function 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
16const files = [
17 './package.json',
18 './lerna.json',
19 './packages/@antmove/utils/package.json',
20 './packages/@antmove/wx-alipay-plugin/package.json',
21];
22
23files.forEach(function (file) {
24 process(file);
25});
\No newline at end of file