Skip to content

Commit

Permalink
fix: tsconfigs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sec-ant committed Oct 16, 2024
1 parent 465654e commit 22deb6b
Show file tree
Hide file tree
Showing 11 changed files with 107 additions and 121 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ src/**/zxing_*.js
.emsdk-cache
*.tgz
*.tar.gz
*.tsbuildinfo
14 changes: 1 addition & 13 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,5 @@
"[cpp]": {
"editor.defaultFormatter": "ms-vscode.cpptools"
},
"C_Cpp.errorSquiggles": "disabled",
"files.associations": {
"*.ejs": "html",
"*.aedt": "apdl",
"*.m": "matlab",
"*.mdx": "markdown",
"*.opf": "xml",
"*.svg": "xml",
"*.yaml": "yaml",
".config": "makefile",
".wrxrc": "json",
"*.tcc": "cpp"
}
"C_Cpp.errorSquiggles": "disabled"
}
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"docs:preview": "vite preview --outDir ./docs",
"dev": "vite",
"lint": "biome lint .",
"type-check": "tsc --noEmit --emitDeclarationOnly false",
"type-check": "tsc -p ./tsconfig.pkg.json --noEmit --emitDeclarationOnly false",
"format:prettier": "pretty-quick",
"format:biome": "biome format . --write",
"format": "pnpm -s format:prettier && pnpm -s format:biome",
Expand All @@ -83,8 +83,8 @@
"build:cjs": "tsx ./scripts/build-cjs.ts",
"build:iife": "tsx ./scripts/build-iife.ts",
"build": "conc \"pnpm:build:es\" \"pnpm:build:cjs\" \"pnpm:build:iife\"",
"postbuild:es": "tsc --declarationDir ./dist/es",
"postbuild:cjs": "tsc --declarationDir ./dist/cjs",
"postbuild:es": "tsc -p ./tsconfig.pkg.json --declarationDir ./dist/es",
"postbuild:cjs": "tsc -p ./tsconfig.pkg.json --declarationDir ./dist/cjs",
"postbuild": "conc \"pnpm:copy:wasm\" \"pnpm:docs:build\"",
"build:all": "pnpm -s submodule:init && pnpm -s cmake && pnpm -s build:wasm && pnpm -s build",
"preview": "vite preview",
Expand All @@ -102,7 +102,7 @@
"@changesets/cli": "^2.27.9",
"@types/babel__core": "^7.20.5",
"@types/node": "^22.7.5",
"@vitest/ui": "^2.1.2",
"@vitest/ui": "^2.1.3",
"concurrently": "^9.0.1",
"copy-files-from-to": "^3.11.0",
"jimp": "^1.6.0",
Expand All @@ -114,11 +114,11 @@
"simple-git-hooks": "^2.11.1",
"tinyglobby": "^0.2.9",
"tsx": "^4.19.1",
"typedoc": "^0.26.9",
"typedoc": "^0.26.10",
"typescript": "^5.6.3",
"vite": "^5.4.8",
"vite": "^5.4.9",
"vite-plugin-babel": "^1.2.0",
"vitest": "^2.1.2"
"vitest": "^2.1.3"
},
"dependencies": {
"@types/emscripten": "^1.39.13"
Expand Down
142 changes: 71 additions & 71 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions tests/blackbox.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,11 @@ for (const {
} of testEntries) {
describe(directory, async () => {
beforeAll(async () => {
async () => {
await getZXingModule({
wasmBinary: await readFile(
resolve(import.meta.dirname, "../src/reader/zxing_reader.wasm"),
),
});
};
await getZXingModule({
wasmBinary: await readFile(
resolve(import.meta.dirname, "../src/reader/zxing_reader.wasm"),
),
});
});
const types = [
...(testFast ? ["fast"] : []),
Expand Down
3 changes: 3 additions & 0 deletions tests/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ function isGraphicalUnicode(codePoint: number): boolean {
return true;
}

/**
* TODO: handle this more gracefully
*/
export function fourOrientations(barcodeFormat: BarcodeFormat): boolean {
return (
barcodeFormat === "Aztec" ||
Expand Down
Loading

0 comments on commit 22deb6b

Please sign in to comment.