prostgles-types 4.0.281 → 4.0.282

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.
@@ -1,12 +0,0 @@
1
- {
2
- "typescript.tsdk": "node_modules/typescript/lib",
3
- "editor.formatOnSave": true,
4
- "prettier.experimentalTernaries": true,
5
- "[javascript]": {
6
- "editor.defaultFormatter": "esbenp.prettier-vscode"
7
- },
8
- "[typescript]": {
9
- "editor.defaultFormatter": "esbenp.prettier-vscode"
10
- },
11
- "prettier.printWidth": 100
12
- }
@@ -1,40 +0,0 @@
1
- import { spawnSync } from "node:child_process";
2
- import { fileURLToPath } from "node:url";
3
-
4
- // Baseline: 108,997. The small margin avoids hiding meaningful inference regressions.
5
- const MAX_INSTANTIATIONS = 105_000;
6
- const tscPath = fileURLToPath(new URL("../node_modules/typescript/bin/tsc", import.meta.url));
7
- const result = spawnSync(
8
- process.execPath,
9
- [tscPath, "--noEmit", "--extendedDiagnostics", "--pretty", "false"],
10
- { encoding: "utf8" },
11
- );
12
-
13
- if (result.error) {
14
- throw result.error;
15
- }
16
-
17
- if (result.status !== 0) {
18
- process.stdout.write(result.stdout);
19
- process.stderr.write(result.stderr);
20
- process.exit(result.status ?? 1);
21
- }
22
-
23
- const output = result.stdout + result.stderr;
24
- const label = "Instantiations:";
25
- const line = output.split("\n").find((outputLine) => outputLine.startsWith(label));
26
- const instantiations = Number(line?.slice(label.length).trim());
27
-
28
- if (!Number.isFinite(instantiations)) {
29
- throw new Error(`Could not read type instantiations from tsc output:\n${output}`);
30
- }
31
-
32
- if (instantiations > MAX_INSTANTIATIONS) {
33
- throw new Error(
34
- `Type instantiations increased to ${instantiations.toLocaleString()} (maximum: ${MAX_INSTANTIATIONS.toLocaleString()}).`,
35
- );
36
- }
37
-
38
- console.log(
39
- `Type instantiations: ${instantiations.toLocaleString()} / ${MAX_INSTANTIATIONS.toLocaleString()}`,
40
- );