Skip to content
Open
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
9 changes: 5 additions & 4 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ jobs:
include:
- { target: x86_64-apple-darwin, os: macos-latest }
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest }
- { target: aarch64-apple-darwin, os: macos-latest }
- { target: x86_64-pc-windows-msvc, os: windows-latest }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: npm
- run: rustup toolchain install stable -t "$TARGET"
Expand All @@ -34,7 +35,7 @@ jobs:
shell: bash
env:
TARGET: ${{ matrix.target }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}
path: |
Expand All @@ -50,7 +51,7 @@ jobs:
with:
cache: npm
registry-url: https://registry.npmjs.org/
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
path: artifacts
- run: npm ci
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

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

8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@ if (answer) {
also refer to the original [rfd crate documentation] if you want to learn more
about the features and limitations inherited from the Rust API.

## Known Limitations

### Focus Issues

File dialogs may not always appear focused or on top of other windows. This is a known limitation of the underlying `rfd` crate. For better focus behavior:

- Use synchronous dialogs (`FileDialog`, `MessageDialog`) instead of async ones when possible

## Development

![Rust](https://img.shields.io/static/v1?style=for-the-badge&message=Rust&color=000000&logo=Rust&logoColor=FFFFFF&label=)
Expand Down
31 changes: 27 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "commonjs",
"name": "@bindrs/rfd",
"version": "2.2.2",
"version": "2.2.3",
"private": false,
"main": "index.js",
"types": "index.d.ts",
"description": "📂 Lets you open native file picker and message boxes in JavaScript!",
"keywords": [
"bindings",
Expand All @@ -10,6 +13,9 @@
"nodejs-addon",
"rust"
],
"publishConfig": {
"access": "public"
},
"license": "MIT",
"contributors": [
"Jacob Hummer <jcbhmr@outlook.com> (https://jcbhmr.me/)"
Expand All @@ -18,9 +24,26 @@
"repository": "github:bindrs/rfd",
"bugs": "https://github.com/bindrs/rfd/issues",
"exports": {
"deno": "./index.js",
"bun": "./index.js",
"node-addons": "./index.js"
"deno": {
"types": "./index.d.ts",
"default": "./index.js"
},
"bun": {
"types": "./index.d.ts",
"default": "./index.js"
},
"node-addons": {
"types": "./index.d.ts",
"default": "./index.js"
},
"node": {
"types": "./index.d.ts",
"default": "./index.js"
},
"default": {
"types": "./index.d.ts",
"default": "./index.js"
}
},
"files": [
"*.node",
Expand Down