From 493495ba65be1a656d7f17f9d9d8ec7a8e2b8c02 Mon Sep 17 00:00:00 2001 From: rsonghuster Date: Fri, 15 Sep 2023 17:24:30 +0800 Subject: [PATCH] fix pop sdk remove api hang node process --- fix-sdk.sh | 8 -------- makefile | 4 ++-- package.json | 2 +- 3 files changed, 3 insertions(+), 11 deletions(-) delete mode 100755 fix-sdk.sh diff --git a/fix-sdk.sh b/fix-sdk.sh deleted file mode 100755 index de6f697..0000000 --- a/fix-sdk.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -set -e -set -v - -wget http://images.devsapp.cn/tea-util/src/client.ts -O ./node_modules/@alicloud/tea-util/src/client.ts -wget http://images.devsapp.cn/tea-util/dist/client.js -O ./node_modules/@alicloud/tea-util/dist/client.js -wget http://images.devsapp.cn/tea-util/dist/client.d.ts -O ./node_modules/@alicloud/tea-util/dist/client.d.ts -wget http://images.devsapp.cn/tea-util/dist/client.js.map -O ./node_modules/@alicloud/tea-util/dist/client.js.map \ No newline at end of file diff --git a/makefile b/makefile index 813c371..89abc18 100644 --- a/makefile +++ b/makefile @@ -30,7 +30,7 @@ test: test-nodejs test-python test-java test-go test-php test-custom test-custo echo "all test done!" install: - npm install --registry=https://registry.npmmirror.com && bash fix-sdk.sh + npm install --registry=https://registry.npmmirror.com && curl -sS http://images.devsapp.cn/pop-sdk/fix-sdk.sh | bash install-official: - npm install --registry=https://registry.npmjs.org && bash fix-sdk.sh \ No newline at end of file + npm install --registry=https://registry.npmjs.org && curl -sS http://images.devsapp.cn/pop-sdk/fix-sdk.sh | bash \ No newline at end of file diff --git a/package.json b/package.json index 8d55916..b2f49a9 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "format": "prettier --write src/", "generate-schema": "npx typescript-json-schema ./src/interface/index.ts IProps --required -o ./dist/schema.json", "prepare": "husky install", - "postinstall": "./fix-sdk.sh" + "postinstall": "curl -sS http://images.devsapp.cn/pop-sdk/fix-sdk.sh | bash" }, "repository": "git@gitlab.alibaba-inc.com:serverless-devs/fc.git", "keywords": [],