Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
ffaf54f1de | |||
2c6b955819 | |||
9bb13e1ede | |||
d9bd5e5340 |
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tsrun",
|
"name": "@gitzone/tsrun",
|
||||||
"version": "1.2.29",
|
"version": "1.2.31",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@gitzone/tsrun",
|
"name": "@gitzone/tsrun",
|
||||||
"version": "1.2.29",
|
"version": "1.2.31",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/smartfile": "^9.0.6",
|
"@pushrocks/smartfile": "^9.0.6",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tsrun",
|
"name": "@gitzone/tsrun",
|
||||||
"version": "1.2.29",
|
"version": "1.2.31",
|
||||||
"description": "run typescript programs efficiently",
|
"description": "run typescript programs efficiently",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
"typings": "dist_ts/index.d.ts",
|
"typings": "dist_ts/index.d.ts",
|
||||||
|
@ -17,7 +17,10 @@ export const runCli = async (pathArg?: string) => {
|
|||||||
? relativePathToTsFile
|
? relativePathToTsFile
|
||||||
: plugins.path.join(process.cwd(), relativePathToTsFile);
|
: plugins.path.join(process.cwd(), relativePathToTsFile);
|
||||||
|
|
||||||
process.argv.splice(0, 3); // this ensures transparent arguments for the child process
|
// we want to have command line arguments available in the child process.
|
||||||
|
// when we have a path sepcified through a function there is one argeument less to pay respect to.
|
||||||
|
// thus when pathArg is specifed -> we only splice 2
|
||||||
|
pathArg ? process.argv.splice(0, 2) : process.argv.splice(0, 3); // this ensures transparent arguments for the child process
|
||||||
|
|
||||||
// lets setup things for execution
|
// lets setup things for execution
|
||||||
const smartshellInstance = new plugins.smartshell.Smartshell({
|
const smartshellInstance = new plugins.smartshell.Smartshell({
|
||||||
|
Reference in New Issue
Block a user