Skip to content

Commit 2c0508e

Browse files
committed
fix: Fix tests
1 parent 3ee87bd commit 2c0508e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"types": "dist/index.d.ts",
88
"scripts": {
99
"test": "ts-mocha -p test.tsconfig.json .",
10-
"build": "tsc -b && NODE_OPTIONS='--loader ts-node/esm' webpack && node fix-dist-output.js",
10+
"build": "tsc -b && NODE_OPTIONS='--loader ts-node/esm' webpack && node scripts/fix-dist-output.js",
1111
"lint": "prettier --check . && eslint . --ext .ts",
1212
"lint-fix": "prettier --write . && eslint . --ext .ts --fix",
1313
"docs": "typedoc --out docs src/index.ts"

fix-dist-output.js renamed to scripts/fix-dist-output.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { fileURLToPath } from "url";
44

55

66
const __dirname = fileURLToPath(new URL(".", import.meta.url));
7-
const distDir = resolve(__dirname, "dist");
7+
const parentDirName = resolve(__dirname, "..");
8+
const distDir = resolve(parentDirName, "dist");
89

910
const files = await readdir(distDir);
1011

0 commit comments

Comments
 (0)