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/21 15:10:28 UTC

[incubator-opendal] branch main updated: ci: Fix nodejs built failed for "Unexpected token o in JSON at position 0" (#1722)

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

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


The following commit(s) were added to refs/heads/main by this push:
     new 9107c895 ci: Fix nodejs built failed for "Unexpected token o in JSON at position 0" (#1722)
9107c895 is described below

commit 9107c895e32386e29894343edc893f8926bf0922
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Tue Mar 21 23:10:22 2023 +0800

    ci: Fix nodejs built failed for "Unexpected token o in JSON at position 0" (#1722)
    
    * ci: Fix nodejs failed for "Unexpected token o in JSON at position 0"
    
    Signed-off-by: Xuanwo <gi...@xuanwo.io>
    
    * Use debug build for test
    
    Signed-off-by: Xuanwo <gi...@xuanwo.io>
    
    ---------
    
    Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
 .github/workflows/bindings_nodejs.yml |  2 +-
 bindings/nodejs/package.json          |  2 +-
 bindings/nodejs/yarn.lock             | 19 +++++--------------
 3 files changed, 7 insertions(+), 16 deletions(-)

diff --git a/.github/workflows/bindings_nodejs.yml b/.github/workflows/bindings_nodejs.yml
index 78f5f3a8..a5d7ac43 100644
--- a/.github/workflows/bindings_nodejs.yml
+++ b/.github/workflows/bindings_nodejs.yml
@@ -64,7 +64,7 @@ jobs:
       - name: Install dependencies
         run: yarn install
       - name: Build
-        run: yarn build
+        run: yarn build:debug
       - name: Test bindings
         run: yarn test
 
diff --git a/bindings/nodejs/package.json b/bindings/nodejs/package.json
index 675c6b80..a0aa00be 100644
--- a/bindings/nodejs/package.json
+++ b/bindings/nodejs/package.json
@@ -36,7 +36,7 @@
   ],
   "devDependencies": {
     "@cucumber/cucumber": "^9.0.1",
-    "@napi-rs/cli": "^2.14.8",
+    "@napi-rs/cli": "^2.15.1",
     "@swc-node/register": "^1.6.2",
     "@swc/core": "^1.3.38",
     "@types/node": "^18.14.5",
diff --git a/bindings/nodejs/yarn.lock b/bindings/nodejs/yarn.lock
index bd989371..26ef0884 100644
--- a/bindings/nodejs/yarn.lock
+++ b/bindings/nodejs/yarn.lock
@@ -184,21 +184,12 @@ __metadata:
   languageName: node
   linkType: hard
 
-"@napi-rs/cli@npm:2.14.8":
-  version: 2.14.8
-  resolution: "@napi-rs/cli@npm:2.14.8"
+"@napi-rs/cli@npm:^2.15.1":
+  version: 2.15.1
+  resolution: "@napi-rs/cli@npm:2.15.1"
   bin:
     napi: scripts/index.js
-  checksum: 59ccab188d0e40a0591d7402624fa882928a967ffc6b9a6dbfc00acbb828ca292cab85a8e965492367f6ca0d0fab600831a7f4b7f0495c47830e3c6895fc4a07
-  languageName: node
-  linkType: hard
-
-"@napi-rs/cli@patch:@napi-rs/cli@npm%3A2.14.8#./.yarn/patches/@napi-rs-cli-npm-2.14.8-71492d0ade.patch::locator=opendal%40workspace%3A.":
-  version: 2.14.8
-  resolution: "@napi-rs/cli@patch:@napi-rs/cli@npm%3A2.14.8#./.yarn/patches/@napi-rs-cli-npm-2.14.8-71492d0ade.patch::version=2.14.8&hash=0747d9&locator=opendal%40workspace%3A."
-  bin:
-    napi: scripts/index.js
-  checksum: 6860e2241d8c03efb3f55c3e111784e845ef271185665f8f6b3beb3685bba0bb6cab473d56ff30212d486df4fe142240f5181e5637ed4fd7b8c05dd1683e7196
+  checksum: 2836d364452ef62200764ddc227a0ccffac6916fdea25cc5679ddf9c0131dace2bdb7aec04cc10928ac489962fe5ae58031caf236ec61aaea4c269af4b820d2c
   languageName: node
   linkType: hard
 
@@ -887,7 +878,7 @@ __metadata:
   resolution: "opendal@workspace:."
   dependencies:
     "@cucumber/cucumber": ^9.0.1
-    "@napi-rs/cli": ^2.14.8
+    "@napi-rs/cli": ^2.15.1
     "@swc-node/register": ^1.6.2
     "@swc/core": ^1.3.38
     "@types/node": ^18.14.5