diff --git a/Cargo.toml b/Cargo.toml index a08a0573..15732f5f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,3 +16,7 @@ codegen-units = 1 lto = true overflow-checks = false strip = 'symbols' + +[patch.crates-io] +napi = { git = "https://github.com/napi-rs/napi-rs", branch = "remove-thread-local" } +napi-derive = { git = "https://github.com/napi-rs/napi-rs", branch = "remove-thread-local" } diff --git a/ava.config.js b/ava.config.js index 51827bfb..8fd32117 100644 --- a/ava.config.js +++ b/ava.config.js @@ -1,6 +1,6 @@ module.exports = { extensions: ['ts'], - workerThreads: false, + workerThreads: true, require: ['@swc-node/register'], files: ['packages/**/*.spec.ts'], timeout: '3m',