From d26860896fcf2bc60ceb2221dae0f06b0318a08d Mon Sep 17 00:00:00 2001 From: LongYinan Date: 2022年5月10日 17:40:50 +0800 Subject: [PATCH] Check worker_thread again --- Cargo.toml | 4 ++++ ava.config.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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',

AltStyle によって変換されたページ (->オリジナル) /