Skip to content

Commit

Permalink
fix module verification for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
wpdas committed Apr 16, 2024
1 parent 80e8563 commit 72ac994
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/actions/transformSchemaToWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 72ac994

Please sign in to comment.