Martin Karkowski
f0032eef63
- log-to-file: is now storing the last logs as well - nope-package-loader: is transmitting the correct parameters. - Optimazations: - nope-package-loader: now storing elements with stringifyWithFunctions and is capable to read functions. - pub-sub-system: Adding partial changes of the topic structure. This speeds up the entire system.
29 lines
757 B
JavaScript
29 lines
757 B
JavaScript
/**
|
|
* @author Martin Karkowski
|
|
* @email m.karkowski@zema.de
|
|
* @create date 2022-01-18 13:42:41
|
|
* @modify date 2022-03-18 09:28:46
|
|
* @desc [description]
|
|
*/
|
|
|
|
const { readFileSync, writeFileSync } = require("fs");
|
|
|
|
const version = readFileSync("./contribute/VERSION", { encoding: "utf-8" });
|
|
const package = JSON.parse(readFileSync("./package.json", { encoding: "utf-8" }));
|
|
|
|
package.description = "NoPE Runtime for the Browser";
|
|
delete package.main;
|
|
delete package.browser;
|
|
delete package.bin;
|
|
|
|
package.name = "nope-browser"
|
|
package.browser = "nope.js";
|
|
package.main = "nope.js";
|
|
package.version = version;
|
|
|
|
package.files = [
|
|
"*",
|
|
"dist-browser/**/*"
|
|
];
|
|
|
|
writeFileSync("./package.json", JSON.stringify(package, undefined, 2), { encoding: "utf-8" }); |