From 055abfa447c3bfaaa1ee03cc269e64abe4c8957f Mon Sep 17 00:00:00 2001 From: Reza Rahemtola Date: Fri, 9 Aug 2024 18:17:00 +0200 Subject: [PATCH] fix: Run after build issue --- package-lock.json | 8 ++++---- package.json | 2 +- quasar.config.js | 9 ++++----- tsconfig.json | 1 + 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2143cea..52aa93e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@aleph-sdk/client": "^1.0.6", "@aleph-sdk/ethereum": "^1.0.3", "@aleph-sdk/message": "^1.0.7", - "@libertai/libertai-js": "file:../libertai-js/libertai-libertai-js-0.0.10.tgz", + "@libertai/libertai-js": "0.0.10-beta", "@quasar/extras": "^1.16.12", "@tanstack/vue-query": "^5.51.21", "@wagmi/vue": "^0.0.36", @@ -3719,9 +3719,9 @@ } }, "node_modules/@libertai/libertai-js": { - "version": "0.0.10", - "resolved": "file:../libertai-js/libertai-libertai-js-0.0.10.tgz", - "integrity": "sha512-bjR2fqo60fy3GXQwVjJ9b6IpS1XOpazba/hcNX5hvmdt4QQrQVblrhjizSh2QkAckW9l4ohC2+OMZhiorAXqzg==", + "version": "0.0.10-beta", + "resolved": "https://registry.npmjs.org/@libertai/libertai-js/-/libertai-js-0.0.10-beta.tgz", + "integrity": "sha512-9DXRYteb7qJXSwMJaXTueMS2ag/gArszkIK+VulNpXZ/3fCH3K2cA4Es9Uq0UWID1Y1VeRIkxC/nAjsYL/V4Jg==", "license": "MIT", "dependencies": { "axios": "^1.7.3" diff --git a/package.json b/package.json index 08aa043..ff46767 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "@aleph-sdk/client": "^1.0.6", "@aleph-sdk/ethereum": "^1.0.3", "@aleph-sdk/message": "^1.0.7", - "@libertai/libertai-js": "file:../libertai-js/libertai-libertai-js-0.0.10.tgz", + "@libertai/libertai-js": "0.0.10-beta", "@quasar/extras": "^1.16.12", "@tanstack/vue-query": "^5.51.21", "@wagmi/vue": "^0.0.36", diff --git a/quasar.config.js b/quasar.config.js index 6a3709b..f02a537 100644 --- a/quasar.config.js +++ b/quasar.config.js @@ -11,7 +11,7 @@ const { configure } = require('quasar/wrappers'); const { nodePolyfills } = require('vite-plugin-node-polyfills'); -module.exports = configure(function (/* ctx */) { +module.exports = configure(function (ctx) { return { eslint: { // fix: true, @@ -71,10 +71,9 @@ module.exports = configure(function (/* ctx */) { viteConf.plugins = []; } viteConf.plugins = [...viteConf.plugins, nodePolyfills()]; - viteConf.define = { - ...viteConf.define, - 'process.browser': true, - }; + if (ctx.dev) { + viteConf.define['process.browser'] = true; + } }, // vueRouterBase, diff --git a/tsconfig.json b/tsconfig.json index 6e811a9..e579cad 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,7 @@ { "extends": "@quasar/app-vite/tsconfig-preset", "compilerOptions": { + "allowJs": false, "baseUrl": ".", "target": "ESNext", "skipLibCheck": true