Browse Source

chore: 更新打包

es6
iapyang 5 years ago
parent
commit
4517504b14
  1. 10
      lib/publish/publish.js

10
lib/publish/publish.js

@ -1,3 +1,11 @@
const { execSync } = require("child_process");
const { resolve } = require("path");
const { writeFileSync } = require("fs");
execSync(`npm publish --tag 2.0.${new Date().getTime()}`);
const packageJSON = require("../../package.json");
packageJSON.version = `2.0.${new Date().getTime()}`;
writeFileSync(resolve(__dirname, "../../package.json"), JSON.stringify(packageJSON, null, 2));
execSync("npm publish");

Loading…
Cancel
Save