pup-recorder 0.4.5 → 0.4.6
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/build.ts +4 -4
- package/dist/app.cjs +5 -30
- package/dist/index.js +1 -1
- package/dist/runtime/iframe_preload.cjs +2 -2
- package/package.json +3 -3
- package/tsconfig.json +3 -2
- package/dist/_tsup-dts-rollup.d.ts +0 -1108
- package/dist/index.d.ts +0 -24
- /package/dist/{cli.d.ts → build.d.ts} +0 -0
package/build.ts
CHANGED
|
@@ -6,14 +6,15 @@ import { build, type Options } from "tsup";
|
|
|
6
6
|
import { dependencies } from "./package.json";
|
|
7
7
|
|
|
8
8
|
const require = createRequire(import.meta.url);
|
|
9
|
-
const tsPath = require.resolve("
|
|
10
|
-
const
|
|
9
|
+
const tsPath = require.resolve("typescript/package.json");
|
|
10
|
+
const tsc = join(tsPath, "..", require(tsPath).bin.tsc);
|
|
11
11
|
const biomePath = require.resolve("@biomejs/biome/package.json");
|
|
12
12
|
const biome = join(biomePath, "..", "bin", "biome");
|
|
13
13
|
|
|
14
|
-
await $`${tsgo}`;
|
|
15
14
|
await $`${biome} check --write --error-on-warnings`;
|
|
16
15
|
await rm("dist", { recursive: true, force: true });
|
|
16
|
+
// tsup's dts path needs the pre-TS7 compiler API; tsc typechecks and emits the declarations in one pass.
|
|
17
|
+
await $`${tsc}`;
|
|
17
18
|
|
|
18
19
|
const common: Options = {
|
|
19
20
|
silent: true,
|
|
@@ -34,7 +35,6 @@ await build({
|
|
|
34
35
|
],
|
|
35
36
|
format: "esm",
|
|
36
37
|
outDir: "dist",
|
|
37
|
-
experimentalDts: true,
|
|
38
38
|
});
|
|
39
39
|
|
|
40
40
|
await build({
|