From 85a0fa7c6ecfd398b3443396e121ca19739977f2 Mon Sep 17 00:00:00 2001 From: Wenderson Pires Date: Wed, 3 Apr 2024 12:33:54 -0300 Subject: [PATCH] fix compilerOptions check --- lib/actions/compilerOptions.js | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/actions/compilerOptions.js b/lib/actions/compilerOptions.js index e327921..5cbf6a0 100644 --- a/lib/actions/compilerOptions.js +++ b/lib/actions/compilerOptions.js @@ -8,6 +8,10 @@ const { read_bos_config } = require("../config"); * @returns */ function getConfiguredPaths(config) { + if (!config.compilerOptions || !config.compilerOptions.paths) { + return {}; + } + const pathsConfig = config.compilerOptions.paths; const basePath = config.compilerOptions.baseUrl; diff --git a/package.json b/package.json index f936581..4114976 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "alem", "description": "Create web3 applications for NEAR BOS with a focus on performance and friendly development.", - "version": "1.0.0-beta.4", + "version": "1.0.0-beta.5", "main": "main.js", "types": "index.d.ts", "author": "Wenderson Pires - wendersonpires.near",