From 48f42c01bbc5dbc53ed1b126fc239202f65703a2 Mon Sep 17 00:00:00 2001 From: jordy25519 Date: Thu, 5 Dec 2024 16:42:26 +0800 Subject: [PATCH] add build:node script --- sdk/package.json | 1 + sdk/scripts/postbuild.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/package.json b/sdk/package.json index 73a4f3748..69faa6802 100644 --- a/sdk/package.json +++ b/sdk/package.json @@ -13,6 +13,7 @@ "scripts": { "lint": "eslint './**/*.{ts,tsx}' --quiet", "build": "yarn clean && tsc -p tsconfig.json && tsc -p tsconfig.browser.json && node scripts/postbuild.js", + "build:node": "yarn clean && tsc -p tsconfig.json", "clean": "rm -rf lib", "test": "mocha -r ts-node/register tests/**/*.ts", "test:inspect": "mocha --inspect-brk -r ts-node/register tests/**/*.ts", diff --git a/sdk/scripts/postbuild.js b/sdk/scripts/postbuild.js index d88b29a51..95e788b58 100644 --- a/sdk/scripts/postbuild.js +++ b/sdk/scripts/postbuild.js @@ -34,7 +34,7 @@ environments.forEach((environment) => { fs.writeFileSync(isomorphPath, content); } catch (error) { console.error( - `Error processing isomophic package : ${package} :: ${error.message}` + `Error processing isomorphic package : ${package} :: ${error.message}` ); }