vaderjs 1.3.3-alpha-67 → 1.3.3-alpha-79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/vader.js +6 -7
package/package.json
CHANGED
package/vader.js
CHANGED
|
@@ -21,7 +21,7 @@ let dirs = {
|
|
|
21
21
|
|
|
22
22
|
Object.keys(dirs).map((key, index) => {
|
|
23
23
|
if (!dirs[key]) {
|
|
24
|
-
fs.mkdirSync('
|
|
24
|
+
fs.mkdirSync(process.cwd() + '/' + key)
|
|
25
25
|
}
|
|
26
26
|
}).filter(Boolean)[0]
|
|
27
27
|
|
|
@@ -673,10 +673,7 @@ function Compiler(func, file) {
|
|
|
673
673
|
|
|
674
674
|
return string
|
|
675
675
|
}
|
|
676
|
-
|
|
677
|
-
let exec = await import('child_process').then((child) => {
|
|
678
|
-
return child.exec
|
|
679
|
-
})
|
|
676
|
+
|
|
680
677
|
globalThis.isBuilding = false
|
|
681
678
|
globalThis.isWriting = null
|
|
682
679
|
async function Build() {
|
|
@@ -870,6 +867,7 @@ async function Build() {
|
|
|
870
867
|
scannedFiles.forEach(async (file) => {
|
|
871
868
|
file = file.split(process.cwd() + '/runtime/')[1]
|
|
872
869
|
|
|
870
|
+
console.log(file)
|
|
873
871
|
let objCase = {
|
|
874
872
|
...file == "app.js" ? { exit: true } : null,
|
|
875
873
|
...file.includes("index.html") && fs.existsSync(process.cwd() + "/runtime/" + file) ? { exit: true } : null,
|
|
@@ -880,11 +878,12 @@ async function Build() {
|
|
|
880
878
|
return
|
|
881
879
|
}
|
|
882
880
|
bundleSize += fs.statSync(process.cwd() + "/runtime/" + file).size;
|
|
883
|
-
let data = await reader(process.cwd() + "/runtime/" + file)
|
|
884
|
-
console.log(process.cwd() + "/runtime/" + file)
|
|
881
|
+
let data = await reader(process.cwd() + "/runtime/" + file)
|
|
885
882
|
await writer(process.cwd() + "/dist/" + file, data);
|
|
886
883
|
});
|
|
887
884
|
|
|
885
|
+
}else{
|
|
886
|
+
console.log('skipping')
|
|
888
887
|
}
|
|
889
888
|
|
|
890
889
|
globalThis.isBuilding = false
|