electron-jsx
Advanced tools
Comparing version 0.0.41 to 0.0.42
11
index.js
@@ -18,2 +18,3 @@ /** | ||
readFile, | ||
rmdir, | ||
} = require("fs"); | ||
@@ -160,3 +161,3 @@ const path = require("path"); | ||
const filename = path.basename(relativeInputPath); | ||
const isScript = filename.includes(".js") || filename.includes(".jsx"); | ||
const isScript = filename.endsWith(".js") || filename.endsWith(".jsx"); | ||
const outputFilePath = path | ||
@@ -287,3 +288,9 @@ .join(buildDir, relativeInputPath) | ||
) { | ||
await callbackToPromise(unlink, [path.join(output, file)]); | ||
const inspect = await callbackToPromise(stat, [path.join(output, file)]); | ||
if (inspect.isDirectory()) | ||
await callbackToPromise(rmdir, [ | ||
path.join(output, file), | ||
{ recursive: true }, | ||
]); | ||
else await callbackToPromise(unlink, [path.join(output, file)]); | ||
} | ||
@@ -290,0 +297,0 @@ } |
{ | ||
"name": "electron-jsx", | ||
"version": "0.0.41", | ||
"version": "0.0.42", | ||
"description": "Real Time transpiler for Electron apps using Babel. You can use node modules here", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -13,3 +13,3 @@ # Electron-jsx | ||
This is BETA version, you can use that with issues/limitations, if you find any bug or you want to say how to fix something, you can go to https://github.com/mdjfs/electron-jsx/issues and if you can do a pull request | ||
This is a BETA version, you can use that with issues/limitations, if you find any bug or you want to say how to fix something, you can go to https://github.com/mdjfs/electron-jsx/issues and if you can do a pull request | ||
@@ -16,0 +16,0 @@ If you want to be a contributor and help, you will benefit many developers by making the library more stable |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15685
368
0