Skip to content

Commit c934872

Browse files
committed
fix: issue with types being output in wrong dir
1 parent d90c6e9 commit c934872

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/__tests__/bench.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import path from "path";
44
import cp from "child_process";
55
import degit from "degit";
66
import Benchmark from "benchmark";
7-
import { repository } from "../../package.json";
87

98
// eslint-disable-next-line @typescript-eslint/no-var-requires
109
const API = require("../../dist") as typeof import("..");
@@ -19,7 +18,9 @@ const COMPARE = process.env.COMPARE;
1918
const tempDir = await fs.promises.mkdtemp(
2019
path.join(os.tmpdir(), "htmljs-parser-bench")
2120
);
22-
await degit(`${repository.url}#${COMPARE}`).clone(tempDir);
21+
await degit(
22+
`https://github.com/marko-js/htmljs-parser.git#${COMPARE}`
23+
).clone(tempDir);
2324
await new Promise<void>((resolve, reject) => {
2425
cp.exec("npm ci && npm run --if-present build", { cwd: tempDir }, (err) =>
2526
err ? reject(err) : resolve()

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"include": ["src/**/*"],
33
"compilerOptions": {
4+
"rootDir": "src",
45
"lib": ["ESNext"],
56
"strict": true,
67
"outDir": "dist",

0 commit comments

Comments
 (0)