fix(core): Fix typos in package.json, update dependencies and update workflow.
This commit is contained in:
21
ts_node/index.ts
Normal file
21
ts_node/index.ts
Normal 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
3
ts_node/plugins.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import * as smartshell from '@push.rocks/smartshell';
|
||||
|
||||
export { smartshell };
|
Reference in New Issue
Block a user