Skip to content

Commit

Permalink
Deploying to gh-pages from @ 35b00e0 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
nin-jin committed Nov 8, 2024
1 parent a6e9c20 commit c4ea7df
Show file tree
Hide file tree
Showing 9 changed files with 5,135 additions and 5,150 deletions.
4,932 changes: 2,466 additions & 2,466 deletions node.d.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion node.deps.json

Large diffs are not rendered by default.

37 changes: 16 additions & 21 deletions node.js
Original file line number Diff line number Diff line change
Expand Up @@ -1994,27 +1994,19 @@ var $node = new Proxy({ require }, {
return target.require(name);
if (name[0] === '.')
return target.require(name);
const path = target.require('path');
const fs = target.require('fs');
let dir = path.resolve('.');
const suffix = `./node_modules/${name}`;
const $$ = $;
while (!fs.existsSync(path.join(dir, suffix))) {
const parent = path.resolve(dir, '..');
if (parent === dir) {
$$.$mol_exec('.', 'npm', 'install', '--omit=dev', name);
try {
$$.$mol_exec('.', 'npm', 'install', '--omit=dev', '@types/' + name);
}
catch (e) {
if ($$.$mol_fail_catch(e)) {
$$.$mol_fail_log(e);
}
}
break;
try {
target.require.resolve(name);
}
catch {
const $$ = $;
$$.$mol_exec('.', 'npm', 'install', '--omit=dev', name);
try {
$$.$mol_exec('.', 'npm', 'install', '--omit=dev', '@types/' + name);
}
else {
dir = parent;
catch (e) {
if ($$.$mol_fail_catch(e)) {
$$.$mol_fail_log(e);
}
}
}
try {
Expand Down Expand Up @@ -2148,7 +2140,10 @@ var $;
command: args_raw.join(' '),
dir: $node.path.relative('', dir),
});
return this.$mol_run_spawn_sync(app, args, { shell: true, cwd: dir, env });
const res = this.$mol_run_spawn_sync(app, args, { shell: true, cwd: dir, env });
if (res.status)
$mol_fail(new Error(res.stderr.toString() || 'Exit(' + res.status + ')'));
return res;
}
const sub = this.$mol_run_spawn(app, args, {
shell: true,
Expand Down
2 changes: 1 addition & 1 deletion node.js.map

Large diffs are not rendered by default.

37 changes: 16 additions & 21 deletions node.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1994,27 +1994,19 @@ var $node = new Proxy({ require }, {
return target.require(name);
if (name[0] === '.')
return target.require(name);
const path = target.require('path');
const fs = target.require('fs');
let dir = path.resolve('.');
const suffix = `./node_modules/${name}`;
const $$ = $;
while (!fs.existsSync(path.join(dir, suffix))) {
const parent = path.resolve(dir, '..');
if (parent === dir) {
$$.$mol_exec('.', 'npm', 'install', '--omit=dev', name);
try {
$$.$mol_exec('.', 'npm', 'install', '--omit=dev', '@types/' + name);
}
catch (e) {
if ($$.$mol_fail_catch(e)) {
$$.$mol_fail_log(e);
}
}
break;
try {
target.require.resolve(name);
}
catch {
const $$ = $;
$$.$mol_exec('.', 'npm', 'install', '--omit=dev', name);
try {
$$.$mol_exec('.', 'npm', 'install', '--omit=dev', '@types/' + name);
}
else {
dir = parent;
catch (e) {
if ($$.$mol_fail_catch(e)) {
$$.$mol_fail_log(e);
}
}
}
try {
Expand Down Expand Up @@ -2148,7 +2140,10 @@ var $;
command: args_raw.join(' '),
dir: $node.path.relative('', dir),
});
return this.$mol_run_spawn_sync(app, args, { shell: true, cwd: dir, env });
const res = this.$mol_run_spawn_sync(app, args, { shell: true, cwd: dir, env });
if (res.status)
$mol_fail(new Error(res.stderr.toString() || 'Exit(' + res.status + ')'));
return res;
}
const sub = this.$mol_run_spawn(app, args, {
shell: true,
Expand Down
Loading

0 comments on commit c4ea7df

Please sign in to comment.