Update app.js, helloworld.js

This commit is contained in:
Namhyeon Go 2023-12-11 16:10:55 +09:00
parent ecbef69860
commit c4dfca7c62
2 changed files with 4 additions and 1 deletions

2
app.js
View File

@ -219,7 +219,7 @@ function require(FN) {
var basepath = getCurrentScriptDirectory(); var basepath = getCurrentScriptDirectory();
var filepaths = [ var filepaths = [
path.join(basepath, FN), // WelsonJS base library path.join(basepath, FN), // WelsonJS base library
path.join(basepath, "Scripts", FN) // NuGet path.join(basepath, "Scripts", FN), // NuGet
path.join(basepath, "bower_components", FN), // Bower path.join(basepath, "bower_components", FN), // Bower
path.join(basepath, "node_modules", FN), // NPM path.join(basepath, "node_modules", FN), // NPM
]; ];

View File

@ -1,5 +1,8 @@
function main(args) { function main(args) {
console.log("Hello world"); console.log("Hello world");
if (typeof WScript !== "undefined") {
console.log("Runtime version:", WScript.Version);
}
} }
exports.main = main; exports.main = main;