Skip to content

Commit

Permalink
chore: update repo
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Feb 3, 2025
1 parent 44fd280 commit 123296a
Show file tree
Hide file tree
Showing 10 changed files with 3,949 additions and 4,458 deletions.
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

4 changes: 0 additions & 4 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: "pnpm"
- run: pnpm install
- run: pnpm automd
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22
cache: "pnpm"
- run: pnpm install
- run: pnpm lint
Expand All @@ -30,4 +30,3 @@ jobs:
if: ${{ matrix.os != 'windows-latest' }}
- run: pnpm vitest --coverage
- uses: codecov/codecov-action@v4

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Parses `wasm` binary format with useful information using [webassemblyjs/wasm-pa
import { readFile } from "node:fs/promises";
import { parseWasm } from "unwasm/tools";

const source = await readFile(new URL("./examples/sum.wasm", import.meta.url));
const source = await readFile(new URL("examples/sum.wasm", import.meta.url));
const parsed = parseWasm(source);
console.log(JSON.stringify(parsed, undefined, 2));
```
Expand Down Expand Up @@ -184,7 +184,7 @@ To hint to the bundler how to resolve imports needed by the `.wasm` file, you ne
**Example:**
```js
```json
{
"exports": {
"./rand.wasm": "./rand.wasm"
Expand Down
11 changes: 11 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import unjs from "eslint-config-unjs";

// https://github.com/unjs/eslint-config
export default unjs({
ignores: [
"examples",
"lib",
"**/.tmp/**"
],
rules: {},
});
56 changes: 28 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,46 +40,46 @@
"build": "unbuild && pnpm build:examples",
"build:examples": "node ./examples/build.mjs",
"dev": "vitest dev",
"lint": "eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test",
"lint:fix": "eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w",
"lint": "eslint --cache . && prettier -c src test",
"lint:fix": "eslint --cache . --fix && prettier -c src test -w",
"prepack": "pnpm build",
"release": "pnpm test && changelogen --release && npm publish && git push --follow-tags",
"test": "pnpm lint && pnpm test:types && vitest run --coverage",
"test:types": "tsc --noEmit --skipLibCheck"
},
"dependencies": {
"knitwork": "^1.0.0",
"magic-string": "^0.30.8",
"mlly": "^1.6.1",
"pathe": "^1.1.2",
"pkg-types": "^1.0.3",
"unplugin": "^1.10.0"
"knitwork": "^1.2.0",
"magic-string": "^0.30.17",
"mlly": "^1.7.4",
"pathe": "^2.0.2",
"pkg-types": "^1.3.1",
"unplugin": "^2.1.2"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.2.3",
"@types/node": "^20.11.30",
"@vitest/coverage-v8": "^1.4.0",
"@webassemblyjs/wasm-parser": "^1.12.1",
"assemblyscript": "^0.27.25",
"automd": "^0.3.7",
"changelogen": "^0.5.5",
"esbuild": "^0.20.2",
"eslint": "^8.57.0",
"eslint-config-unjs": "^0.2.1",
"jiti": "^1.21.0",
"miniflare": "^3.20240320.1",
"prettier": "^3.2.5",
"rollup": "^4.13.2",
"typescript": "^5.4.3",
"unbuild": "^2.0.0",
"vite": "^5.2.7",
"vitest": "^1.4.0"
"@rollup/plugin-node-resolve": "^16.0.0",
"@types/node": "^22.13.0",
"@vitest/coverage-v8": "^2.1.9",
"@webassemblyjs/wasm-parser": "^1.14.1",
"assemblyscript": "^0.27.32",
"automd": "^0.3.12",
"changelogen": "^0.5.7",
"esbuild": "^0.24.2",
"eslint": "^9.19.0",
"eslint-config-unjs": "^0.4.2",
"jiti": "^2.4.2",
"miniflare": "^3.20250129.0",
"prettier": "^3.4.2",
"rollup": "^4.34.1",
"typescript": "^5.7.3",
"unbuild": "^3.3.1",
"vite": "^6.0.11",
"vitest": "^2.1.9"
},
"resolutions": {
"@webassemblyjs/helper-wasm-bytecode": "1.12.1",
"@webassemblyjs/ieee754": "1.12.1",
"@webassemblyjs/leb128": "1.12.1",
"@webassemblyjs/utf8": "1.12.1"
},
"packageManager": "pnpm@8.15.5"
}
"packageManager": "pnpm@9.15.5"
}
Loading

0 comments on commit 123296a

Please sign in to comment.