fix(core): Fix typos in package.json, update dependencies and update workflow.

This commit is contained in:
2024-09-17 19:40:00 +02:00
parent 0be2243ced
commit 1e6296f980
9 changed files with 2491 additions and 2257 deletions

21
ts_node/index.ts Normal file
View File

@ -0,0 +1,21 @@
import * as plugins from './plugins.js';
class TapNodeTools {
private smartshellInstance: plugins.smartshell.Smartshell;
constructor() {
}
public async runCommand(commandArg) {
if (!this.smartshellInstance) {
this.smartshellInstance = new plugins.smartshell.Smartshell({
executor: 'bash',
});
}
const result = await this.smartshellInstance.exec(commandArg);
return result;
}
}
export const tapNodeTools = new TapNodeTools();

3
ts_node/plugins.ts Normal file
View File

@ -0,0 +1,3 @@
import * as smartshell from '@push.rocks/smartshell';
export { smartshell };