You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2023/03/31 04:08:57 UTC

[incubator-opendal] 01/01: Merge remote-tracking branch 'origin/main' into fix-nodejs-build

This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch fix-nodejs-build
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git

commit 7c73b711d2e9a0f4da2847b7676330fbdbb97e30
Merge: d9d49a0f 80acbe5a
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Fri Mar 31 12:08:50 2023 +0800

    Merge remote-tracking branch 'origin/main' into fix-nodejs-build
    
    Signed-off-by: Xuanwo <gi...@xuanwo.io>

 bindings/nodejs/.env.example                    |   5 ++
 bindings/nodejs/benchmark/deno.ts               | 115 ++++++++++++++++++++++++
 bindings/nodejs/benchmark/{index.js => node.js} |   0
 bindings/nodejs/package.json                    |   4 +-
 bindings/nodejs/yarn.lock                       |   8 ++
 5 files changed, 131 insertions(+), 1 deletion(-)

diff --cc bindings/nodejs/package.json
index 3eafc5e4,8afe648f..7f8944a0
--- a/bindings/nodejs/package.json
+++ b/bindings/nodejs/package.json
@@@ -59,13 -60,16 +60,14 @@@
      "node": ">= 10"
    },
    "scripts": {
 -    "artifacts": "napi artifacts",
 -    "build": "napi build --platform --release --js generated.js && node ./scripts/header.js",
 -    "build:debug": "napi build --platform --js generated.js && node ./scripts/header.js",
 +    "build": "napi build --platform --target \"${NAPI_TARGET:-}\" --release --js generated.js && node ./scripts/header.js",
 +    "build:debug": "napi build --platform --target \"${NAPI_TARGET:-}\" --js generated.js && node ./scripts/header.js",
      "docs": "typedoc",
      "format": "prettier --write .",
 -    "prepublishOnly": "napi prepublish -t npm",
      "test": "cucumber-js",
-     "bench": "node ./benchmark/index.js",
+     "bench": "node -r dotenv/config ./benchmark/node.js dotenv_config_path=./.env",
+     "bench:deno": "deno bench ./benchmark/deno.ts --reload=npm:opendal --allow-read --allow-ffi --allow-net --allow-env",
 -    "version": "napi version"
 +    "prepublishOnly": "napi prepublish -t npm"
    },
    "prettier": {
      "overrides": [