porffor 0.18.41 → 0.18.42

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.
@@ -99,9 +99,13 @@ const precompile = async () => {
99
99
  let funcs = [], globals = [];
100
100
  for (const file of fs.readdirSync(dir)) {
101
101
  if (file.endsWith('.d.ts')) continue;
102
- console.log(file);
103
102
 
103
+ console.log(`${' '.repeat(12)}${file}`);
104
+
105
+ const t = performance.now();
104
106
  await compile(join(dir, file), [ funcs, globals ]);
107
+
108
+ console.log(`\u001b[A${' '.repeat(100)}\r\u001b[90m${`[${(performance.now() - t).toFixed(2)}ms]`.padEnd(12, ' ')}\u001b[0m\u001b[92m${file}\u001b[0m`);
105
109
  }
106
110
 
107
111
  return `// autogenerated by compiler/precompile.js
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "porffor",
3
3
  "description": "a basic experimental wip aot optimizing js -> wasm engine/compiler/runtime in js",
4
- "version": "0.18.41+a97365a88",
4
+ "version": "0.18.42+773821de9",
5
5
  "author": "CanadaHonk",
6
6
  "license": "MIT",
7
7
  "scripts": {},
package/runner/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import fs from 'node:fs';
3
- globalThis.version = '0.18.41+a97365a88';
3
+ globalThis.version = '0.18.42+773821de9';
4
4
 
5
5
  // deno compat
6
6
  if (typeof process === 'undefined' && typeof Deno !== 'undefined') {