purus 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/purus.js CHANGED
@@ -5,7 +5,7 @@ const VERSION = require("../package.json").version;
5
5
  const cmd = process.argv[2];
6
6
 
7
7
  function printHelp() {
8
- console.log(`purus v${VERSION} - A language that compiles to JavaScript`);
8
+ console.log(`Purus v${VERSION} - A language that compiles to JavaScript`);
9
9
  console.log("");
10
10
  console.log("Usage:");
11
11
  console.log(" purus build [file|dir] Compile to JavaScript");
@@ -47,7 +47,7 @@ switch (cmd) {
47
47
  case "version":
48
48
  case "--version":
49
49
  case "-v":
50
- console.log(`purus v${VERSION}`);
50
+ console.log(`Purus v${VERSION}`);
51
51
  break;
52
52
  case "help":
53
53
  case "--help":
@@ -9420,7 +9420,7 @@ function _M0FP48username4core3cmd4main10cmd__build(args) {
9420
9420
  }
9421
9421
  }
9422
9422
  const stmts = _M0MP28username4core6Parser5parse(_M0MP28username4core6Parser3new(filtered));
9423
- const header = no_header.val ? "" : "// Generated by Purus 0.6.0";
9423
+ const header = no_header.val ? "" : "// Generated by Purus 0.6.1";
9424
9424
  const js = _M0MP28username4core9JsCodegen16generate_2einner(_M0MP28username4core9JsCodegen3new(), stmts, header, shebang.val, strict.val);
9425
9425
  if (to_stdout.val) {
9426
9426
  _M0FP311moonbitlang4core7builtin7printlnGsE(js);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "purus",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "A language that compiles to JavaScript — no Shift key required",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -26,8 +26,8 @@
26
26
  "build:compiler": "moon build --target js",
27
27
  "build:copy": "node scripts/build.js",
28
28
  "build": "npm run build:compiler && npm run build:copy",
29
- "sync-version": "node scripts/sync-version.js",
30
- "prepublishOnly": "npm run sync-version && npm run build"
29
+ "sync": "node scripts/sync-version.js",
30
+ "prepublishOnly": "npm run sync && npm run build"
31
31
  },
32
32
  "keywords": [
33
33
  "compiler",