Skip to content

Commit

Permalink
fix: issue with types being output in wrong dir
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Mar 18, 2022
1 parent d90c6e9 commit c934872
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/__tests__/bench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import path from "path";
import cp from "child_process";
import degit from "degit";
import Benchmark from "benchmark";
import { repository } from "../../package.json";

// eslint-disable-next-line @typescript-eslint/no-var-requires
const API = require("../../dist") as typeof import("..");
Expand All @@ -19,7 +18,9 @@ const COMPARE = process.env.COMPARE;
const tempDir = await fs.promises.mkdtemp(
path.join(os.tmpdir(), "htmljs-parser-bench")
);
await degit(`${repository.url}#${COMPARE}`).clone(tempDir);
await degit(
`https://github.com/marko-js/htmljs-parser.git#${COMPARE}`
).clone(tempDir);
await new Promise<void>((resolve, reject) => {
cp.exec("npm ci && npm run --if-present build", { cwd: tempDir }, (err) =>
err ? reject(err) : resolve()
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"include": ["src/**/*"],
"compilerOptions": {
"rootDir": "src",
"lib": ["ESNext"],
"strict": true,
"outDir": "dist",
Expand Down

0 comments on commit c934872

Please sign in to comment.