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: 2 additions & 0 deletions __mocks__/@wasm-fmt/ruff_fmt.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Mock for @wasm-fmt/ruff_fmt (used only for ncc bundling hint)
module.exports = {}
6 changes: 3 additions & 3 deletions dist/index.js

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions dist/licenses.txt

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

Binary file added dist/ruff_fmt_bg.wasm
Binary file not shown.
21 changes: 16 additions & 5 deletions package-lock.json

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

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"license": "Apache-2.0",
"dependencies": {
"@actions/core": "^1.11.1",
"@linearb/gitstream-core": "2.1.216"
"@linearb/gitstream-core": "2.1.217"
},
"devDependencies": {
"@jest/globals": "^30.2.0",
Expand All @@ -47,6 +47,7 @@
"@typescript-eslint/eslint-plugin": "^8.46.3",
"@typescript-eslint/parser": "^8.39.1",
"@vercel/ncc": "^0.38.4",
"@wasm-fmt/ruff_fmt": "^0.10.0",
"eslint": "^9.39.1",
"eslint-plugin-github": "^5.1.8",
"eslint-plugin-jest": "^28.13.0",
Expand Down Expand Up @@ -85,6 +86,9 @@
"collectCoverage": true,
"collectCoverageFrom": [
"./src/**"
]
],
"moduleNameMapper": {
"@wasm-fmt/ruff_fmt": "<rootDir>/__mocks__/@wasm-fmt/ruff_fmt.js"
}
}
}
3 changes: 3 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import { RulesEngine } from '@linearb/gitstream-core'
import { version } from '@linearb/gitstream-core/package.json'
import { installBlack } from './support-python'

// Hint for ncc to bundle WASM package (used dynamically in gitstream-core)
import '@wasm-fmt/ruff_fmt'

export async function run(): Promise<void> {
await installBlack()

Expand Down