forked from fanruan/fineui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
450 B
15 lines
450 B
5 years ago
|
const { resolve } = require("path");
|
||
|
const { writeFileSync } = require("fs");
|
||
5 years ago
|
|
||
5 years ago
|
if (!process.env.VERDACCIO_AUTH) {
|
||
5 years ago
|
return;
|
||
|
}
|
||
|
|
||
5 years ago
|
const packageJSON = require("../../package.json");
|
||
|
|
||
|
packageJSON.version = `2.0.${new Date().getTime()}`;
|
||
|
|
||
|
writeFileSync(resolve(__dirname, "../../package.json"), JSON.stringify(packageJSON, null, 2));
|
||
|
|
||
5 years ago
|
writeFileSync(resolve(__dirname, "../../.npmrc"), `//192.168.5.154:4873/:_authToken="${process.env.VERDACCIO_AUTH}"`);
|