Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
submodules: true
- uses: actions/setup-node@v3
with:
node-version: 20
node-version: 22

- run: npm ci
- run: sudo apt-get install libgtest-dev
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 20
node-version: 22

- run: npm ci

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

/build*
/transform/listFunctions.mjs
/transform/tsconfig.tsbuildinfo

/coverage
/coverage-ts
Expand Down
2,138 changes: 1,669 additions & 469 deletions package-lock.json

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"chalk": "^5.2.0",
"commander": "^8.3.0",
"cross-spawn": "^7.0.3",
"fast-glob": "^3.3.3",
"glob": "^11.0.0",
"ignore": "^7.0.3",
"fs-extra": "^11.1.1",
"semver": "^7.5.3",
Expand All @@ -41,10 +41,9 @@
"devDependencies": {
"@schleifner/eslint-config-base": "^2.0.0",
"@schleifner/prettier-config": "^1.0.0",
"@types/cross-spawn": "^6.0.2",
"@types/fs-extra": "^9.0.13",
"@types/jest": "^29.5.2",
"@types/node": "^20.9.1",
"@types/fs-extra": "^11.0.4",
"@types/jest": "^29.5.0",
"@types/node": "^22.0.0",
"assemblyscript-prettier": "^3.0.1",
"cross-env": "^7.0.3",
"jest": "^29.5.0",
Expand Down
7 changes: 2 additions & 5 deletions src/utils/pathResolver.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import assert from "node:assert";
import fs from "fs-extra";
import { glob } from "glob";
import { dirname, join, relative, resolve } from "node:path";
import fastGlob from "fast-glob";

export function splitCommand(cmdline: string): { cmd: string; argv: string[] } {
const res = new Array<string>();
Expand Down Expand Up @@ -79,10 +79,7 @@ export function findRoot(filePaths: string[]): string {

export function getIncludeFiles(includePatterns: string[], filter: (path: string) => boolean): string[] {
const flatPatterns = includePatterns.flatMap((pattern) => {
// Append '/*' if the pattern is a folder name
const adjustedPattern = fs.statSync(pattern).isDirectory() ? `${pattern}/*` : pattern;
const res = fastGlob.sync(adjustedPattern);
return res;
return glob.sync(pattern);
});
const files = flatPatterns.flatMap((flatPattern) => {
const st = fs.statSync(flatPattern);
Expand Down
2 changes: 1 addition & 1 deletion tests/ts/test/utils/wasmparser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ test("parseImportFunctionInfo", () => {
},
];

expect(parseImportFunctionInfo(arrayBuffer as ArrayBuffer)).toEqual(expectedInfo); // Pass ArrayBuffer
expect(parseImportFunctionInfo(arrayBuffer)).toEqual(expectedInfo); // Pass ArrayBuffer
});
1 change: 0 additions & 1 deletion transform/tsconfig.tsbuildinfo

This file was deleted.