From 72ac994844d3831b25a76507f325470bdae831f9 Mon Sep 17 00:00:00 2001 From: Wenderson Pires Date: Tue, 16 Apr 2024 03:37:33 -0300 Subject: [PATCH] fix module verification for Windows --- lib/actions/transformSchemaToWidget.js | 6 +++++- package.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/actions/transformSchemaToWidget.js b/lib/actions/transformSchemaToWidget.js index 61ca8be..34f27d3 100644 --- a/lib/actions/transformSchemaToWidget.js +++ b/lib/actions/transformSchemaToWidget.js @@ -91,8 +91,12 @@ const processSchema = (fileSchema) => { // Verifica se é o arquivo principal index.tsx | index.jsx const isIndex = + // OSX, Linux fileSchema.filePath.includes("src/index.tsx") || - fileSchema.filePath.includes("src/index.jsx"); + fileSchema.filePath.includes("src/index.jsx") || + // Windows + fileSchema.filePath.includes("src\\index.tsx") || + fileSchema.filePath.includes("src\\index.jsx"); // isModule = Arquivo sem controle de estado let isModule = !hasWidgetPropsCheck(fileSchema.content) && !isIndex; diff --git a/package.json b/package.json index 70b89a4..945898e 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.16", + "version": "1.0.0-beta.17", "main": "main.js", "types": "index.d.ts", "author": "Wenderson Pires - wendersonpires.near",