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.
- package/compiler/precompile.js +5 -1
- package/package.json +1 -1
- package/runner/index.js +1 -1
package/compiler/precompile.js
CHANGED
@@ -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