Skip to content

Commit a466042

Browse files
committed
[build] update the publish task and bump to 2.9.4
1 parent f89cb69 commit a466042

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

scripts/copy-dist-package-json.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
'use strict';
22

33
var fs = require('fs');
4-
var path = require('path');
54

6-
var distPackage = require('./scripts/npm.json');
7-
var sourcePackage = require('./package.json');
5+
var distPackage = require('./npm.json');
6+
var sourcePackage = require('../package.json');
87

98
distPackage.version = sourcePackage.version;
109

11-
fs.writeFileSync(path.join('.', 'dist', 'package.json'),
12-
JSON.stringify(distPackage), null, 4);
10+
fs.writeFileSync('./dist/package.json', JSON.stringify(distPackage), null, 4);

0 commit comments

Comments
 (0)