7 строки
277 B
JavaScript
7 строки
277 B
JavaScript
const fs = require("fs");
|
|
const version = require("./package.json").version;
|
|
const fileName = "./dist-esm/common/constants.js";
|
|
let contents = fs.readFileSync(fileName, "utf8");
|
|
contents = contents.replace("REPLACE_SDK_VERSION", version);
|
|
fs.writeFileSync(fileName, contents);
|