Skip to content

Commit

Permalink
add version property to all modules
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Dec 23, 2019
1 parent a8b1c96 commit b030ccb
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build/build.js
Expand Up @@ -50,12 +50,12 @@ async function build(package) {
});

output = output[0].code;
output = output.replace(spacesRE, "\t");

if (type === "module") {
output = fs.readFileSync("./build/wrapper.js").toString().replace("MODULE_NAME", nameExport).replace("MODULE_CONTENT", output.split("\n").slice(1, -3).join("\n"));
}

output = output.replace(spacesRE, "\t");
output = output.replace("'use strict'", "\"use strict\"");
output = output.replace(versionRE, `"${version}"`);

Expand Down
3 changes: 2 additions & 1 deletion packages/moon-browser/dist/moon-browser.js
Expand Up @@ -476,7 +476,8 @@
var compiler = {
compile: compile,
generate: generate,
parse: parse
parse: parse,
version: "1.0.0-beta.4"
};

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/moon-browser/dist/moon-browser.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/moon-compiler/dist/moon-compiler.js
Expand Up @@ -482,7 +482,8 @@
var index = {
compile: compile,
generate: generate,
parse: parse
parse: parse,
version: "1.0.0-beta.4"
};

return index;
Expand Down

0 comments on commit b030ccb

Please sign in to comment.