Compare commits

...

160 Commits

Author SHA1 Message Date
jkunz 8ce43eb973 v2.0.3
Default (tags) / security (push) Failing after 1s
Default (tags) / test (push) Failing after 1s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2026-04-30 12:53:41 +00:00
jkunz d0842d013c fix(build): remove deprecated allowimplicitany flag from build script 2026-04-30 12:53:41 +00:00
jkunz caa6d96c32 v2.0.2
Default (tags) / security (push) Failing after 0s
Default (tags) / test (push) Failing after 0s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2026-03-24 19:51:56 +00:00
jkunz 0295182b14 fix(build): migrate package metadata to smartconfig and refresh build configuration 2026-03-24 19:51:56 +00:00
jkunz fd8dc2021d v2.0.1
Default (tags) / security (push) Failing after 0s
Default (tags) / test (push) Failing after 0s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2025-12-13 09:36:28 +00:00
jkunz bd28ec06c6 fix(cli): Align package scope to @git.zone, bump dependency versions and remove obsolete pnpm workspace setting 2025-12-13 09:36:28 +00:00
jkunz 6227a3d184 v2.0.0
Default (tags) / security (push) Failing after 0s
Default (tags) / test (push) Failing after 0s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2025-11-17 08:36:33 +00:00
jkunz 13cc0d3014 BREAKING CHANGE(tsconfig): Remove experimentalDecorators and useDefineForClassFields from tsconfig.json 2025-11-17 08:36:33 +00:00
jkunz 2896cc396f 1.6.2
Default (tags) / security (push) Failing after 1s
Default (tags) / test (push) Failing after 1s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2025-10-17 06:43:36 +00:00
jkunz e76ad2fb58 fix(ts/index): Use cli.js as the spawned CLI entry point instead of cli.child.js 2025-10-17 06:43:36 +00:00
jkunz 6b6ecee0ed 1.6.1
Default (tags) / security (push) Failing after 1s
Default (tags) / test (push) Failing after 1s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2025-10-17 06:26:00 +00:00
jkunz e5b57c894b fix(plugins): Export child_process.spawn from plugins and use plugins.spawn in spawnPath to remove direct require and unify process spawning 2025-10-17 06:26:00 +00:00
jkunz ec2db7af72 1.6.0
Default (tags) / security (push) Failing after 1s
Default (tags) / test (push) Failing after 1s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2025-10-17 06:15:33 +00:00
jkunz 9b5668eccb feat(core): Add spawnPath child-process API with timeout/abort/terminate support, export native types, and expand README 2025-10-17 06:15:33 +00:00
jkunz 528a56c358 1.5.0
Default (tags) / security (push) Failing after 1s
Default (tags) / test (push) Failing after 1s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2025-10-16 20:49:03 +00:00
jkunz 7fb2389e3a feat(core): Add cwd option and child-process execution for custom working directory; implement signal-forwarding child runner; update docs and bump package version to 1.4.0 2025-10-16 20:49:03 +00:00
jkunz e9ae00f5e9 1.3.4
Default (tags) / security (push) Failing after 1s
Default (tags) / test (push) Failing after 1s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2025-10-13 21:28:27 +00:00
jkunz 4cd8bf5c1a fix(docs): Update README with expanded docs and examples; add pnpm and CI tooling configs 2025-10-13 21:28:27 +00:00
philkunz 2bba5f75e6 1.3.3 2024-10-27 19:46:14 +01:00
philkunz 74bb4a9837 fix(core): removed unused import statement in ts/plugins.ts 2024-10-27 19:46:13 +01:00
philkunz 3286776b48 1.3.2 2024-10-27 19:45:58 +01:00
philkunz bec80e6862 fix(core): Replace ts-node with tsx for module handling 2024-10-27 19:45:57 +01:00
philkunz c2e406964d 1.3.1 2024-10-27 19:22:45 +01:00
philkunz c3e3b2d050 fix(core): Add console.log to show ts-node options in use 2024-10-27 19:22:45 +01:00
philkunz 3a68f74c4e 1.3.0 2024-10-27 19:11:55 +01:00
philkunz 8f4292f402 feat(ci): Add Gitea workflows for build and release. 2024-10-27 19:11:55 +01:00
philkunz 61a82f0d03 1.2.49 2024-06-24 12:06:14 +02:00
philkunz 2c8f262c0a fix(core): Minor maintenance updates with version bump 2024-06-24 12:06:13 +02:00
philkunz bd5ec7ca76 1.2.48 2024-06-24 12:05:44 +02:00
philkunz 857882807f fix(dependencies): Update TypeScript dependency version 2024-06-24 12:05:44 +02:00
philkunz 6bfc8a1961 1.2.47 2024-06-24 00:14:28 +02:00
philkunz 15f4502083 fix(core): Remove GitLab CI configuration and update dependencies 2024-06-24 00:14:27 +02:00
philkunz 5efd905068 1.2.46 2023-08-26 14:43:08 +02:00
philkunz ae01679474 fix(core): update 2023-08-26 14:43:08 +02:00
philkunz f0bdfa9a65 1.2.45 2023-08-26 13:32:29 +02:00
philkunz a88cf067a1 fix(core): update 2023-08-26 13:32:28 +02:00
philkunz c5cd30e20e 1.2.44 2023-07-13 02:53:32 +02:00
philkunz 02eb0c5435 fix(core): update 2023-07-13 02:53:31 +02:00
philkunz 6ab3ed21e0 1.2.43 2023-07-13 01:33:17 +02:00
philkunz 2f5374be50 fix(core): update 2023-07-13 01:33:17 +02:00
philkunz 1577265f6b 1.2.42 2023-06-03 16:44:04 +02:00
philkunz 3b9532bb70 fix(core): update 2023-06-03 16:44:04 +02:00
philkunz bcb1ccc6e7 1.2.41 2023-06-03 16:10:38 +02:00
philkunz 1dde4c8277 fix(core): update 2023-06-03 16:10:37 +02:00
philkunz 3a6fc44fbb 1.2.40 2023-06-03 16:09:01 +02:00
philkunz a0d523513b fix(core): update 2023-06-03 16:09:01 +02:00
philkunz 0715f88189 1.2.39 2022-10-20 14:15:04 +02:00
philkunz 4a50ae3b00 fix(core): update 2022-10-20 14:15:04 +02:00
philkunz 2b7c3b78f6 1.2.38 2022-10-12 17:21:04 +02:00
philkunz 142667ac87 fix(core): update 2022-10-12 17:21:03 +02:00
philkunz 9e55126adf 1.2.37 2022-06-14 21:42:07 +02:00
philkunz 5271f0153e fix(core): update 2022-06-14 21:42:07 +02:00
philkunz ba0aaf2793 1.2.36 2022-06-14 21:33:04 +02:00
philkunz 1f46e387e7 fix(core): update 2022-06-14 21:33:03 +02:00
philkunz 03625bfca4 1.2.35 2022-06-02 00:23:45 +02:00
philkunz cc92e3e9ca fix(core): update 2022-06-02 00:23:45 +02:00
philkunz c1e66d498a 1.2.34 2022-05-25 10:55:36 +02:00
philkunz bfbb802e88 fix(core): update 2022-05-25 10:55:35 +02:00
philkunz 655fd8b92e 1.2.33 2022-05-25 10:11:15 +02:00
philkunz a240cdfde1 fix(core): update 2022-05-25 10:11:14 +02:00
philkunz 2af7682cf0 1.2.32 2022-03-24 18:47:16 +01:00
philkunz c62619bd27 fix(core): update 2022-03-24 18:47:16 +01:00
philkunz ffaf54f1de 1.2.31 2022-03-13 00:02:20 +01:00
philkunz 2c6b955819 fix(core): update 2022-03-13 00:02:20 +01:00
philkunz 9bb13e1ede 1.2.30 2022-03-13 00:01:40 +01:00
philkunz d9bd5e5340 fix(core): update 2022-03-13 00:01:40 +01:00
philkunz b76de3e04d 1.2.29 2022-03-12 22:54:05 +01:00
philkunz 808726d1df fix(core): update 2022-03-12 22:54:04 +01:00
philkunz d011f10b9b 1.2.28 2022-03-12 21:59:15 +01:00
philkunz d1baa20aad fix(core): update 2022-03-12 21:59:14 +01:00
philkunz 71779693d7 1.2.27 2022-03-12 21:52:14 +01:00
philkunz 1113251aea fix(core): update 2022-03-12 21:52:14 +01:00
philkunz e41cd896bb 1.2.26 2022-03-12 19:13:56 +01:00
philkunz ba44007fb2 fix(core): update 2022-03-12 19:13:56 +01:00
philkunz 8d1362f14b 1.2.25 2022-03-12 18:54:20 +01:00
philkunz 61ceb03962 fix(core): update 2022-03-12 18:54:19 +01:00
philkunz ab3ec90245 1.2.24 2022-03-12 18:50:18 +01:00
philkunz b51cda08c4 fix(core): update 2022-03-12 18:50:17 +01:00
philkunz b8332e1de4 1.2.23 2022-03-12 14:52:42 +01:00
philkunz da9a73bc79 fix(core): update 2022-03-12 14:52:42 +01:00
philkunz 26bf39abae 1.2.22 2022-03-12 14:43:54 +01:00
philkunz b66b2083ab fix(core): update 2022-03-12 14:43:54 +01:00
philkunz e40c0151bc 1.2.21 2022-03-11 18:09:35 +01:00
philkunz fe97fcd193 fix(core): update 2022-03-11 18:09:35 +01:00
philkunz 5174d9ccc6 1.2.20 2022-03-11 17:56:09 +01:00
philkunz e89c3eda66 fix(core): update 2022-03-11 17:56:08 +01:00
philkunz 6d4c9f390a 1.2.19 2022-03-11 17:26:50 +01:00
philkunz 3fc3421857 fix(core): update 2022-03-11 17:26:50 +01:00
philkunz e1803dabfa 1.2.18 2021-10-06 13:06:25 +02:00
philkunz 282d8b2b93 fix(core): update 2021-10-06 13:06:24 +02:00
philkunz 76dd9707fe 1.2.17 2021-06-24 10:58:47 +02:00
philkunz 269e54c717 fix(core): update 2021-06-24 10:58:46 +02:00
philkunz dd33a359c3 1.2.16 2021-06-23 15:57:58 +02:00
philkunz 0caaac2a67 fix(core): update 2021-06-23 15:57:57 +02:00
philkunz 14a043be1e 1.2.15 2021-06-23 15:45:35 +02:00
philkunz de44be741d fix(core): update 2021-06-23 15:45:34 +02:00
philkunz d15500d5a0 1.2.14 2021-06-23 15:30:55 +02:00
philkunz 7e99fd703f fix(core): update 2021-06-23 15:30:55 +02:00
philkunz fa5462c0bc 1.2.13 2021-06-23 15:26:56 +02:00
philkunz f8736d3556 fix(core): update 2021-06-23 15:26:55 +02:00
philkunz 45bba88f46 1.2.12 2020-06-01 19:38:19 +00:00
philkunz daafe0b6ff fix(core): update 2020-06-01 19:38:19 +00:00
philkunz 3d905de2be 1.2.11 2020-06-01 19:37:12 +00:00
philkunz 815008e881 fix(core): update 2020-06-01 19:37:11 +00:00
philkunz 4641cc7cad 1.2.10 2020-06-01 18:32:33 +00:00
philkunz dbf324682c fix(core): update 2020-06-01 18:32:33 +00:00
philkunz 8f5c302b6c 1.2.9 2020-06-01 18:19:37 +00:00
philkunz e5bf2ac20c fix(core): update 2020-06-01 18:19:37 +00:00
philkunz 731931452a 1.2.8 2019-07-17 13:26:52 +02:00
philkunz 0b3730f7e5 fix(core): update 2019-07-17 13:26:52 +02:00
philkunz aecc54aab0 1.2.7 2019-07-17 13:22:38 +02:00
philkunz e3fa66ff07 fix(core): update 2019-07-17 13:22:38 +02:00
philkunz bb3b918521 1.2.6 2019-04-30 12:33:08 +02:00
philkunz ba9eaa5091 fix(core): update 2019-04-30 12:33:07 +02:00
philkunz 0e281ab257 1.2.5 2019-04-08 17:10:10 +02:00
philkunz 0e14522287 fix(core): update 2019-04-08 17:10:10 +02:00
philkunz 4d93e2e728 1.2.4 2019-04-08 17:08:27 +02:00
philkunz ce9a350521 fix(core): update 2019-04-08 17:08:26 +02:00
philkunz df9c7204c7 1.2.3 2019-04-08 16:30:24 +02:00
philkunz 568472e715 fix(core): update ES2017 2019-04-08 16:30:24 +02:00
philkunz 0ba6863e28 1.2.2 2019-04-08 16:17:58 +02:00
philkunz d5c63cd24c fix(core): update 2019-04-08 16:17:57 +02:00
philkunz 460babd675 1.2.1 2019-03-02 23:03:06 +01:00
philkunz 98cde0edb4 fix(readme): update 2019-03-02 23:03:05 +01:00
philkunz 1d5766435a 1.2.0 2019-03-02 22:38:01 +01:00
philkunz 92ac844954 feat(dependencies and cache): remove caching 2019-03-02 22:38:01 +01:00
philkunz 9ae4f9f82b 1.1.17 2018-12-06 00:46:26 +01:00
philkunz 3df2922085 fix(core): update 2018-12-06 00:46:26 +01:00
philkunz 3eb29c729e 1.1.16 2018-12-06 00:26:17 +01:00
philkunz cadc2cd629 fix(core): update 2018-12-06 00:26:17 +01:00
philkunz 399ee0b4ca 1.1.15 2018-12-06 00:22:12 +01:00
philkunz ac5d8d1614 fix(core): update 2018-12-06 00:22:12 +01:00
philkunz 6349753cce 1.1.14 2018-12-06 00:21:20 +01:00
philkunz 3897e15a7e fix(core): update 2018-12-06 00:21:20 +01:00
philkunz 2582710e8f 1.1.13 2018-10-14 18:51:41 +02:00
philkunz 4cd06d040d 1.1.12 2018-08-08 23:14:11 +02:00
philkunz 5eb3ba901a fix(dependencies): update 2018-08-08 23:14:11 +02:00
philkunz dd5b101224 1.1.11 2018-08-08 22:36:17 +02:00
philkunz 972583a3a7 fix(CI): remove obsolete build dependencies 2018-08-08 22:36:16 +02:00
philkunz ef3c636976 1.1.10 2018-08-08 22:33:07 +02:00
philkunz b1ec59e042 fix(dependencies): update 2018-08-08 22:33:07 +02:00
philkunz 84275f6804 1.1.9 2018-07-13 23:16:45 +02:00
philkunz b02edb7536 fix(core): add readme 2018-07-13 23:16:45 +02:00
philkunz 4624cce39a 1.1.8 2018-07-13 23:14:45 +02:00
philkunz d4938f12cd fix(documentation): update 2018-07-13 23:14:45 +02:00
philkunz 78157d474a 1.1.7 2018-07-13 23:01:10 +02:00
philkunz 8f4f22b83f fix(core): update 2018-07-13 23:01:09 +02:00
philkunz 90a97cb0eb 1.1.6 2018-07-13 22:51:10 +02:00
philkunz 5bacff743d fix(core): update 2018-07-13 22:51:10 +02:00
philkunz f5d4b9ff5b 1.1.5 2018-07-13 22:37:56 +02:00
philkunz 4e68019aa9 fix(add typedoc): update 2018-07-13 22:37:55 +02:00
philkunz 022a919adf 1.1.4 2018-07-13 22:33:10 +02:00
philkunz d52315382e 1.1.3 2018-07-13 22:33:03 +02:00
philkunz 5210b09c04 fix(core): update 2018-07-13 22:33:02 +02:00
philkunz 8e2695a06f 1.1.2 2018-07-09 00:00:08 +02:00
philkunz 7e8fe1bcba fix(typescript): add experimentalDecorators = true to CompilerOptions 2018-07-09 00:00:07 +02:00
philkunz c603ae0c87 1.1.1 2018-07-03 14:44:58 +02:00
philkunz 4e70a1ef1a fix(CI): update default ci config 2018-07-03 14:44:57 +02:00
philkunz 74df4b7b2b 1.1.0 2018-07-03 14:40:59 +02:00
philkunz 51808f230a feat(cache): enable --nocache cli option 2018-07-03 14:40:58 +02:00
34 changed files with 5859 additions and 1300 deletions
+66
View File
@@ -0,0 +1,66 @@
name: Default (not tags)
on:
push:
tags-ignore:
- '**'
env:
IMAGE: code.foss.global/hosttoday/ht-docker-node:npmci
NPMCI_COMPUTED_REPOURL: https://${{gitea.repository_owner}}:${{secrets.GITEA_TOKEN}}@/${{gitea.repository}}.git
NPMCI_TOKEN_NPM: ${{secrets.NPMCI_TOKEN_NPM}}
NPMCI_TOKEN_NPM2: ${{secrets.NPMCI_TOKEN_NPM2}}
NPMCI_GIT_GITHUBTOKEN: ${{secrets.NPMCI_GIT_GITHUBTOKEN}}
NPMCI_URL_CLOUDLY: ${{secrets.NPMCI_URL_CLOUDLY}}
jobs:
security:
runs-on: ubuntu-latest
continue-on-error: true
container:
image: ${{ env.IMAGE }}
steps:
- uses: actions/checkout@v3
- name: Install pnpm and npmci
run: |
pnpm install -g pnpm
pnpm install -g @ship.zone/npmci
- name: Run npm prepare
run: npmci npm prepare
- name: Audit production dependencies
run: |
npmci command npm config set registry https://registry.npmjs.org
npmci command pnpm audit --audit-level=high --prod
continue-on-error: true
- name: Audit development dependencies
run: |
npmci command npm config set registry https://registry.npmjs.org
npmci command pnpm audit --audit-level=high --dev
continue-on-error: true
test:
if: ${{ always() }}
needs: security
runs-on: ubuntu-latest
container:
image: ${{ env.IMAGE }}
steps:
- uses: actions/checkout@v3
- name: Test stable
run: |
npmci node install stable
npmci npm install
npmci npm test
- name: Test build
run: |
npmci node install stable
npmci npm install
npmci npm build
+124
View File
@@ -0,0 +1,124 @@
name: Default (tags)
on:
push:
tags:
- '*'
env:
IMAGE: code.foss.global/hosttoday/ht-docker-node:npmci
NPMCI_COMPUTED_REPOURL: https://${{gitea.repository_owner}}:${{secrets.GITEA_TOKEN}}@/${{gitea.repository}}.git
NPMCI_TOKEN_NPM: ${{secrets.NPMCI_TOKEN_NPM}}
NPMCI_TOKEN_NPM2: ${{secrets.NPMCI_TOKEN_NPM2}}
NPMCI_GIT_GITHUBTOKEN: ${{secrets.NPMCI_GIT_GITHUBTOKEN}}
NPMCI_URL_CLOUDLY: ${{secrets.NPMCI_URL_CLOUDLY}}
jobs:
security:
runs-on: ubuntu-latest
continue-on-error: true
container:
image: ${{ env.IMAGE }}
steps:
- uses: actions/checkout@v3
- name: Prepare
run: |
pnpm install -g pnpm
pnpm install -g @ship.zone/npmci
npmci npm prepare
- name: Audit production dependencies
run: |
npmci command npm config set registry https://registry.npmjs.org
npmci command pnpm audit --audit-level=high --prod
continue-on-error: true
- name: Audit development dependencies
run: |
npmci command npm config set registry https://registry.npmjs.org
npmci command pnpm audit --audit-level=high --dev
continue-on-error: true
test:
if: ${{ always() }}
needs: security
runs-on: ubuntu-latest
container:
image: ${{ env.IMAGE }}
steps:
- uses: actions/checkout@v3
- name: Prepare
run: |
pnpm install -g pnpm
pnpm install -g @ship.zone/npmci
npmci npm prepare
- name: Test stable
run: |
npmci node install stable
npmci npm install
npmci npm test
- name: Test build
run: |
npmci node install stable
npmci npm install
npmci npm build
release:
needs: test
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
container:
image: ${{ env.IMAGE }}
steps:
- uses: actions/checkout@v3
- name: Prepare
run: |
pnpm install -g pnpm
pnpm install -g @ship.zone/npmci
npmci npm prepare
- name: Release
run: |
npmci node install stable
npmci npm publish
metadata:
needs: test
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
container:
image: ${{ env.IMAGE }}
continue-on-error: true
steps:
- uses: actions/checkout@v3
- name: Prepare
run: |
pnpm install -g pnpm
pnpm install -g @ship.zone/npmci
npmci npm prepare
- name: Code quality
run: |
npmci command npm install -g typescript
npmci npm install
- name: Trigger
run: npmci trigger
- name: Build docs and upload artifacts
run: |
npmci node install stable
npmci npm install
pnpm install -g @git.zone/tsdoc
npmci command tsdoc
continue-on-error: true
+15 -2
View File
@@ -1,7 +1,20 @@
.nogit/
node_modules/
# artifacts
coverage/
public/
pages/
# installs
node_modules/
# caches
.yarn/
tscache
.cache/
.rpt2_cache
# builds
dist/
dist_*/
# custom
-130
View File
@@ -1,130 +0,0 @@
# gitzone standard
image: hosttoday/ht-docker-node:npmci
cache:
paths:
- .npmci_cache/
key: "$CI_BUILD_STAGE"
stages:
- security
- test
- release
- metadata
# ====================
# security stage
# ====================
mirror:
stage: security
script:
- npmci git mirror
tags:
- docker
- notpriv
snyk:
stage: security
script:
- npmci command npm install -g snyk
- npmci command npm install --ignore-scripts
- npmci command snyk test
tags:
- docker
- notpriv
# ====================
# test stage
# ====================
testLEGACY:
stage: test
script:
- npmci node install legacy
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- docker
- notpriv
allow_failure: true
testLTS:
stage: test
script:
- npmci node install lts
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- docker
- notpriv
testSTABLE:
stage: test
script:
- npmci node install stable
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- docker
- notpriv
release:
stage: release
script:
- npmci node install stable
- npmci npm publish
only:
- tags
tags:
- docker
- notpriv
# ====================
# metadata stage
# ====================
codequality:
stage: metadata
image: docker:stable
allow_failure: true
services:
- docker:stable-dind
script:
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
- docker run
--env SOURCE_CODE="$PWD"
--volume "$PWD":/code
--volume /var/run/docker.sock:/var/run/docker.sock
"registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
artifacts:
paths: [codeclimate.json]
tags:
- docker
- priv
trigger:
stage: metadata
script:
- npmci trigger
only:
- tags
tags:
- docker
- notpriv
pages:
image: hosttoday/ht-docker-node:npmci
stage: metadata
script:
- npmci command npm install -g npmpage
- npmci command npmpage
tags:
- docker
- notpriv
only:
- tags
artifacts:
expire_in: 1 week
paths:
- public
+1
View File
@@ -0,0 +1 @@
/cache
+67
View File
@@ -0,0 +1,67 @@
# language of the project (csharp, python, rust, java, typescript, go, cpp, or ruby)
# * For C, use cpp
# * For JavaScript, use typescript
# Special requirements:
# * csharp: Requires the presence of a .sln file in the project folder.
language: typescript
# whether to use the project's gitignore file to ignore files
# Added on 2025-04-07
ignore_all_files_in_gitignore: true
# list of additional paths to ignore
# same syntax as gitignore, so you can use * and **
# Was previously called `ignored_dirs`, please update your config if you are using that.
# Added (renamed) on 2025-04-07
ignored_paths: []
# whether the project is in read-only mode
# If set to true, all editing tools will be disabled and attempts to use them will result in an error
# Added on 2025-04-18
read_only: false
# list of tool names to exclude. We recommend not excluding any tools, see the readme for more details.
# Below is the complete list of tools for convenience.
# To make sure you have the latest list of tools, and to view their descriptions,
# execute `uv run scripts/print_tool_overview.py`.
#
# * `activate_project`: Activates a project by name.
# * `check_onboarding_performed`: Checks whether project onboarding was already performed.
# * `create_text_file`: Creates/overwrites a file in the project directory.
# * `delete_lines`: Deletes a range of lines within a file.
# * `delete_memory`: Deletes a memory from Serena's project-specific memory store.
# * `execute_shell_command`: Executes a shell command.
# * `find_referencing_code_snippets`: Finds code snippets in which the symbol at the given location is referenced.
# * `find_referencing_symbols`: Finds symbols that reference the symbol at the given location (optionally filtered by type).
# * `find_symbol`: Performs a global (or local) search for symbols with/containing a given name/substring (optionally filtered by type).
# * `get_current_config`: Prints the current configuration of the agent, including the active and available projects, tools, contexts, and modes.
# * `get_symbols_overview`: Gets an overview of the top-level symbols defined in a given file.
# * `initial_instructions`: Gets the initial instructions for the current project.
# Should only be used in settings where the system prompt cannot be set,
# e.g. in clients you have no control over, like Claude Desktop.
# * `insert_after_symbol`: Inserts content after the end of the definition of a given symbol.
# * `insert_at_line`: Inserts content at a given line in a file.
# * `insert_before_symbol`: Inserts content before the beginning of the definition of a given symbol.
# * `list_dir`: Lists files and directories in the given directory (optionally with recursion).
# * `list_memories`: Lists memories in Serena's project-specific memory store.
# * `onboarding`: Performs onboarding (identifying the project structure and essential tasks, e.g. for testing or building).
# * `prepare_for_new_conversation`: Provides instructions for preparing for a new conversation (in order to continue with the necessary context).
# * `read_file`: Reads a file within the project directory.
# * `read_memory`: Reads the memory with the given name from Serena's project-specific memory store.
# * `remove_project`: Removes a project from the Serena configuration.
# * `replace_lines`: Replaces a range of lines within a file with new content.
# * `replace_symbol_body`: Replaces the full definition of a symbol.
# * `restart_language_server`: Restarts the language server, may be necessary when edits not through Serena happen.
# * `search_for_pattern`: Performs a search for a pattern in the project.
# * `summarize_changes`: Provides instructions for summarizing the changes made to the codebase.
# * `switch_modes`: Activates modes by providing a list of their names
# * `think_about_collected_information`: Thinking tool for pondering the completeness of collected information.
# * `think_about_task_adherence`: Thinking tool for determining whether the agent is still on track with the current task.
# * `think_about_whether_you_are_done`: Thinking tool for determining whether the task is truly completed.
# * `write_memory`: Writes a named memory (for future reference) to Serena's project-specific memory store.
excluded_tools: []
# initial prompt for the project. It will always be given to the LLM upon activating the project
# (contrary to the memories, which are loaded on demand).
initial_prompt: ""
project_name: "tsrun"
+24
View File
@@ -0,0 +1,24 @@
{
"npmts": {},
"@git.zone/cli": {
"projectType": "npm",
"module": {
"githost": "gitlab.com",
"gitscope": "gitzone",
"gitrepo": "tsrun",
"description": "run typescript programs efficiently",
"npmPackagename": "@git.zone/tsrun",
"license": "MIT"
},
"release": {
"registries": [
"https://verdaccio.lossless.digital",
"https://registry.npmjs.org"
],
"accessLevel": "public"
}
},
"@ship.zone/szci": {
"npmGlobalTools": []
}
}
-4
View File
@@ -1,4 +0,0 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.12.0
ignore: {}
patch: {}
+11
View File
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "npm test",
"name": "Run npm test",
"request": "launch",
"type": "node-terminal"
}
]
}
+26
View File
@@ -0,0 +1,26 @@
{
"json.schemas": [
{
"fileMatch": ["/.smartconfig.json"],
"schema": {
"type": "object",
"properties": {
"npmci": {
"type": "object",
"description": "settings for npmci"
},
"gitzone": {
"type": "object",
"description": "settings for gitzone",
"properties": {
"projectType": {
"type": "string",
"enum": ["website", "element", "service", "npm", "wcc"]
}
}
}
}
}
}
]
}
+210
View File
@@ -0,0 +1,210 @@
# Changelog
## 2026-04-30 - 2.0.3 - fix(build)
remove deprecated allowimplicitany flag from build script
- Updates the package build script to invoke tsbuild without the extra allowimplicitany option.
## 2026-03-24 - 2.0.2 - fix(build)
migrate package metadata to smartconfig and refresh build configuration
- replace npmextra.json with .smartconfig.json and update published package files
- remove the web build flag from the build script
- refresh dependency versions and remove the unused node-fetch dev dependency
- rewrite the README to reflect current CLI, API, and Node.js support
## 2025-12-13 - 2.0.1 - fix(cli)
Align package scope to @git.zone, bump dependency versions and remove obsolete pnpm workspace setting
- Update runtime import in cli.ts.js from @gitzone/tsrun to @git.zone/tsrun
- Change npm package name in npmextra.json to @git.zone/tsrun
- Bump devDependencies and dependencies in package.json (@git.zone/tsbuild -> ^3.1.2, @push.rocks/smartcli -> ^4.0.19, @types/node -> ^25.0.1, @push.rocks/smartfile -> ^13.1.0, tsx -> ^4.21.0)
- Remove onlyBuiltDependencies entry from pnpm-workspace.yaml
- Ensure commitinfo metadata (ts/00_commitinfo_data.ts) and package.json remain aligned with @git.zone/tsrun
## 2025-11-17 - 2.0.0 - BREAKING CHANGE(tsconfig)
Remove experimentalDecorators and useDefineForClassFields from tsconfig.json
- tsconfig.json: removed compilerOptions.experimentalDecorators — decorator support is no longer enabled by default. Projects using decorators must enable experimentalDecorators in their own tsconfig.
- tsconfig.json: removed compilerOptions.useDefineForClassFields — class field emit will follow TypeScript defaults, which may change runtime semantics for some classes.
- This may break consumers relying on the previous compiler options; bumping the major version to reflect the potential breaking change.
## 2025-10-17 - 1.6.2 - fix(ts/index)
Use cli.js as the spawned CLI entry point instead of cli.child.js
- Replace references to ../cli.child.js with ../cli.js in ts/index.ts (runInChildProcess and spawnPath) to ensure child processes spawn the correct CLI entry point.
- This change fixes child process spawning failures caused by referencing a non-existent cli.child.js file.
- Add local .claude/settings.local.json (local runner/editor permissions configuration).
## 2025-10-17 - 1.6.1 - fix(plugins)
Export child_process.spawn from plugins and use plugins.spawn in spawnPath to remove direct require and unify process spawning
- Exported spawn from ts/plugins.ts so native child_process.spawn is available via the plugins module
- Removed require('child_process') from ts/index.ts and switched to plugins.spawn when spawning child processes in spawnPath
- No public API changes; this unifies internal imports and fixes inconsistent spawn usage that could cause runtime issues
## 2025-10-17 - 1.6.0 - feat(core)
Add spawnPath child-process API with timeout/abort/terminate support, export native types, and expand README
- Implement spawnPath(filePath, fromFileUrl?, options?) in ts/index.ts producing an ITsrunChildProcess with childProcess, stdout, stderr, exitCode, kill() and terminate()
- Introduce ISpawnOptions (cwd, env, args, stdio, timeout, signal) and ITsrunChildProcess interfaces for robust process control
- Handle timeouts (auto SIGTERM), AbortSignal cancellation, and graceful terminate() (SIGTERM then SIGKILL after 5s)
- Export Node types ChildProcess and Readable from ts/plugins.ts for improved typings
- Greatly expand README: add badges, table of contents, detailed API docs and examples for runPath, runCli and spawnPath, and troubleshooting guidance
- Add local .claude/settings.local.json (environment/settings file)
## 2025-10-16 - 1.5.0 - feat(core)
Add cwd option and child-process execution for custom working directory; implement signal-forwarding child runner; update docs and bump package version to 1.4.0
- Introduce IRunOptions with cwd support to runPath/runCli
- When cwd is provided, runCli now spawns a child process (runInChildProcess) to execute the script in the specified working directory
- runInChildProcess preserves node execArgv, inherits env and stdio, forwards signals (SIGINT, SIGTERM, SIGHUP) and propagates child exit codes/signals
- Update README with documentation and examples for running scripts with a custom working directory and parallel execution
- Bump package version to 1.4.0
## 2025-10-13 - 1.3.4 - fix(docs)
Update README with expanded docs and examples; add pnpm and CI tooling configs
- Rewrite and expand README: clearer intro, installation, CLI and programmatic usage examples, features and examples, and updated package/project links.
- Add packageManager entry to package.json to record pnpm version/hash (pnpm@10.18.1+sha512...).
- Add pnpm-workspace.yaml with onlyBuiltDependencies for esbuild.
- Add .serena/project.yml and .serena/.gitignore for project metadata and Serena tooling configuration.
- Add .claude/settings.local.json to configure local agent permissions.
- No functional TypeScript source changes in this commit (runtime implementations remain as placeholders).
## 2024-10-27 - 1.3.3 - fix(core)
removed unused import statement in ts/plugins.ts
- Cleanup: Removed an unused import statement for tsImport from tsx/esm/api
## 2024-10-27 - 1.3.2 - fix(core)
Replace ts-node with tsx for module handling
- Removed ts-node and its loader, using tsx for module imports
- Simplified import logic by replacing tsx register API call
- Updated dependencies in package.json by removing ts-node and typescript
## 2024-10-27 - 1.3.1 - fix(core)
Add console.log to show ts-node options in use
- Added a console log statement in the ts/loader.ts to display the default ts-node options being used.
## 2024-10-27 - 1.3.0 - feat(ci)
Add Gitea workflows for build and release.
- Added .gitea/workflows/default_nottags.yaml for non-tag events.
- Added .gitea/workflows/default_tags.yaml for tag-based events.
- Updated build scripts in package.json to use pnpm.
- Refactored imports and exports in TypeScript source for better modularity.
## 2024-06-24 - 1.2.49 - fix(core)
Minor maintenance updates with version bump
## 2024-06-24 - 1.2.48 - fix(dependencies)
Update TypeScript dependency version
- Updated TypeScript from version 5.4.5 to 5.5.2 to include latest features and fixes.
## 2024-06-24 - 1.2.47 - fix(core)
Remove GitLab CI configuration and update dependencies
- Removed the .gitlab-ci.yml file.
- Updated @git.zone/tsbuild from ^2.1.69 to ^2.1.80.
- Updated @push.rocks/smartcli from ^4.0.8 to ^4.0.11.
- Updated @types/node from ^20.5.6 to ^20.14.8.
- Updated @push.rocks/smartfile from ^10.0.30 to ^11.0.21.
- Updated @push.rocks/smartshell from ^3.0.3 to ^3.0.5.
- Updated ts-node from ^10.9.1 to ^10.9.2.
- Updated typescript from 5.1.6 to 5.4.5.
## 2023-08-26 - 1.2.44 to 1.2.46 - Core Updates and Fixes
Several internal updates and fixes to the core functionality.
- Continuous core updates for improved performance and bug fixes
## 2023-07-13 - 1.2.42 to 1.2.44 - Core Updates and Fixes
Addressing minor bugs and improving core operations.
- Several bug fixes to enhance stability
## 2023-06-03 - 1.2.39 to 1.2.42 - Core and Stability Improvements
Focus on refining core processes and fixing issues.
- Significant fixes for better core performance
## 2022-10-12 - 1.2.37 to 1.2.39 - Core Updates
Series of bug fixes to maintain core functionality.
- Addressed minor bugs in core areas
## 2022-06-02 - 1.2.34 to 1.2.37 - Core Maintenance
Routine updates to address and fix core issues.
- Bug fixes for better core stability
## 2022-03-11 to 2022-03-13 - 1.2.18 to 1.2.33 - Core Enhancements
Multiple updates focusing on resolving core issues and maintaining performance.
- Continuous improvements and fixes in the core functions
## 2021-10-06 - 1.2.18 to 1.2.19 - Core Updates
Minor fixes to keep up with core performance.
- Addressed core issues for improved functionality
## 2021-06-23 to 2021-06-24 - 1.2.12 to 1.2.17 - Core Improvements
Series of updates addressing core functionality.
- Enhanced core features and fixed known bugs
## 2020-06-01 - 1.2.8 to 1.2.11 - Core Stability
Fixes focusing on ensuring core stability.
- Stability improvements in core components
## 2019-07-17 - 1.2.6 to 1.2.7 - Core Updates
Minor fixes targeting the core framework.
- Adjusted core components to enhance performance
## 2019-04-08 to 2019-07-17 - 1.2.2 to 1.2.6 - ES2017 Compatibility and Core Fixes
Updated core to support ES2017 and addressed various core issues.
- Updated environment compatibility
- Fixed several core issues
## 2018-12-06 - 1.1.13 to 1.1.17 - Core Fixes
Routine updates addressing core bugs and issues.
- Multiple fixes to core functionality
## 2018-08-08 - 1.1.11 to 1.1.12 - Dependency Updates
Updated dependencies critical for core performance.
- Enhanced dependencies for better performance
## 2018-07-13 - 1.1.4 to 1.1.10 - Various Updates
Multiple updates focused on documentation, dependencies, and core functions.
- Fixed documentation
- Updated core
- Removed obsolete dependencies
## 2018-06-30 to 2018-07-03 - 1.0.8 to 1.1.3 - Feature and Core Fixes
Introduced new features and addressed core issues.
- Enabled new CLI options
- Resolved core issues for better functionality
## 2018-06-25 - 1.0.4 to 1.0.7 - Core and Security Improvements
Made core improvements and updated security features.
- Added security files
- Fixed core argument parsing issues
## 2018-06-04 - 1.0.1 to 1.0.3 - Initial Fixes and Improvements
Initial setup and fixes to existing issues.
- Moved dependencies to dev
- Fixed package details
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env node
process.env.CLI_CALL = 'true';
import * as cliTool from './ts/index.js';
cliTool.runCli();
+3 -2
View File
@@ -1,3 +1,4 @@
#!/usr/bin/env node
process.env.CLI_CALL_TSRUN = 'true'
var index = require("./dist/index.js");
process.env.CLI_CALL = 'true';
const cliTool = await import('./dist_ts/index.js');
cliTool.runCli();
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env node
process.env.CLI_CALL = 'true';
import * as tsrun from '@git.zone/tsrun';
tsrun.runPath('./cli.child.js', import.meta.url);
-1
View File
@@ -1 +0,0 @@
.gitignore: ../gitignore/
-1
View File
@@ -1 +0,0 @@
export {};
-20
View File
@@ -1,20 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const path = require("path");
const tsNode = require("./tsnode");
tsNode.register({
compilerOptions: {
lib: ['es2016', 'es2017']
},
skipIgnore: true,
cacheDirectory: path.join(__dirname, '../tscache')
});
if (process.env.CLI_CALL_TSRUN) {
// contents of argv array
// process.argv[0] -> node Executable
// process.argv[1] -> tsrun executable
const pathToTsFile = process.argv[2];
const pathToLoad = path.join(process.cwd(), pathToTsFile);
Promise.resolve().then(() => require(pathToLoad));
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZCQUE2QjtBQUM3QixtQ0FBbUM7QUFFbkMsTUFBTSxDQUFDLFFBQVEsQ0FBQztJQUNkLGVBQWUsRUFBRTtRQUNmLEdBQUcsRUFBRSxDQUFFLFFBQVEsRUFBRSxRQUFRLENBQUU7S0FDNUI7SUFDRCxVQUFVLEVBQUUsSUFBSTtJQUNoQixjQUFjLEVBQUUsSUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLEVBQUUsWUFBWSxDQUFDO0NBQ25ELENBQUMsQ0FBQztBQUVILElBQUksT0FBTyxDQUFDLEdBQUcsQ0FBQyxjQUFjLEVBQUU7SUFDOUIseUJBQXlCO0lBQ3pCLHFDQUFxQztJQUNyQyxzQ0FBc0M7SUFDdEMsTUFBTSxZQUFZLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQTtJQUVwQyxNQUFNLFVBQVUsR0FBRyxJQUFJLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxHQUFHLEVBQUUsRUFBRSxZQUFZLENBQUMsQ0FBQztJQUMxRCxxQ0FBTyxVQUFVLEdBQUU7Q0FDcEIifQ==
-99
View File
@@ -1,99 +0,0 @@
import { BaseError } from 'make-error';
import * as _ts from 'typescript';
/**
* @internal
*/
export declare const INSPECT_CUSTOM: string | symbol;
/**
* Common TypeScript interfaces between versions.
*/
export interface TSCommon {
version: typeof _ts.version;
sys: typeof _ts.sys;
ScriptSnapshot: typeof _ts.ScriptSnapshot;
displayPartsToString: typeof _ts.displayPartsToString;
createLanguageService: typeof _ts.createLanguageService;
getDefaultLibFilePath: typeof _ts.getDefaultLibFilePath;
getPreEmitDiagnostics: typeof _ts.getPreEmitDiagnostics;
flattenDiagnosticMessageText: typeof _ts.flattenDiagnosticMessageText;
transpileModule: typeof _ts.transpileModule;
ModuleKind: typeof _ts.ModuleKind;
ScriptTarget: typeof _ts.ScriptTarget;
findConfigFile: typeof _ts.findConfigFile;
readConfigFile: typeof _ts.readConfigFile;
parseJsonConfigFileContent: typeof _ts.parseJsonConfigFileContent;
formatDiagnostics: typeof _ts.formatDiagnostics;
formatDiagnosticsWithColorAndContext: typeof _ts.formatDiagnosticsWithColorAndContext;
}
/**
* Export the current version.
*/
export declare const VERSION: any;
/**
* Registration options.
*/
export interface Options {
pretty?: boolean | null;
typeCheck?: boolean | null;
transpileOnly?: boolean | null;
files?: boolean | null;
cache?: boolean | null;
cacheDirectory?: string;
compiler?: string;
ignore?: string | string[];
project?: string;
skipIgnore?: boolean | null;
skipProject?: boolean | null;
compilerOptions?: object;
ignoreDiagnostics?: number | string | Array<number | string>;
readFile?: (path: string) => string | undefined;
fileExists?: (path: string) => boolean;
transformers?: _ts.CustomTransformers;
}
/**
* Information retrieved from type info check.
*/
export interface TypeInfo {
name: string;
comment: string;
}
/**
* Default register options.
*/
export declare const DEFAULTS: Options;
/**
* Split a string array of values.
*/
export declare function split(value: string | undefined): string[];
/**
* Parse a string as JSON.
*/
export declare function parse(value: string | undefined): object | undefined;
/**
* Replace backslashes with forward slashes.
*/
export declare function normalizeSlashes(value: string): string;
/**
* TypeScript diagnostics error.
*/
export declare class TSError extends BaseError {
diagnosticText: string;
diagnosticCodes: number[];
name: string;
constructor(diagnosticText: string, diagnosticCodes: number[]);
}
/**
* Return type for registering `ts-node`.
*/
export interface Register {
cwd: string;
extensions: string[];
cachedir: string;
ts: TSCommon;
compile(code: string, fileName: string, lineOffset?: number): string;
getTypeInfo(code: string, fileName: string, position: number): TypeInfo;
}
/**
* Register TypeScript compiler.
*/
export declare function register(opts?: Options): Register;
-439
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2018 Lossless GmbH (hello@lossless.com)
Copyright (c) 2018 Task Venture Capital GmbH (hello@task.vc)
Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
-11
View File
@@ -1,11 +0,0 @@
{
"npmts": {
},
"npmci": {
"npmGlobalTools": [
"@gitzone/npmts",
"ts-node"
],
"npmAccessLevel": "public"
}
}
-550
View File
@@ -1,550 +0,0 @@
{
"name": "@gitzone/tsrun",
"version": "1.0.18",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@types/fs-extra": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-5.0.0.tgz",
"integrity": "sha512-qtxDULQKUenuaDLW003CgC+0T0eiAfH3BrH+vSt87GLzbz5EZ6Ox6mv9rMttvhDOatbb9nYh0E1m7ydoYwUrAg==",
"requires": {
"@types/node": "*"
}
},
"@types/node": {
"version": "10.3.0",
"resolved": "https://registry.npmjs.org/@types/node/-/node-10.3.0.tgz",
"integrity": "sha512-hWzNviaVFIr1TqcRA8ou49JaSHp+Rfabmnqg2kNvusKqLhPU0rIsGPUj5WJJ7ld4Bb7qdgLmIhLfCD1qS08IVA=="
},
"@types/vinyl": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/@types/vinyl/-/vinyl-2.0.2.tgz",
"integrity": "sha512-2iYpNuOl98SrLPBZfEN9Mh2JCJ2EI9HU35SfgBEb51DcmaHkhp8cKMblYeBqMQiwXMgAD3W60DbQ4i/UdLiXhw==",
"requires": {
"@types/node": "*"
}
},
"argparse": {
"version": "1.0.10",
"resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
"integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
"requires": {
"sprintf-js": "~1.0.2"
}
},
"arrify": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz",
"integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0="
},
"balanced-match": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
"integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c="
},
"brace-expansion": {
"version": "1.1.11",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
"integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
"requires": {
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
}
},
"buffer-from": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.0.tgz",
"integrity": "sha512-c5mRlguI/Pe2dSZmpER62rSCu0ryKmWddzRYsuXc50U2/g8jMOulc31VZMa4mYx31U5xsmSOpDCgH88Vl9cDGQ=="
},
"clone": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/clone/-/clone-2.1.1.tgz",
"integrity": "sha1-0hfR6WERjjrJpLi7oyhVU79kfNs="
},
"clone-buffer": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/clone-buffer/-/clone-buffer-1.0.0.tgz",
"integrity": "sha1-4+JbIHrE5wGvch4staFnksrD3Fg="
},
"clone-stats": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-1.0.0.tgz",
"integrity": "sha1-s3gt/4u1R04Yuba/D9/ngvh3doA="
},
"cloneable-readable": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/cloneable-readable/-/cloneable-readable-1.1.2.tgz",
"integrity": "sha512-Bq6+4t+lbM8vhTs/Bef5c5AdEMtapp/iFb6+s4/Hh9MVTt8OLKH7ZOOZSCT+Ys7hsHvqv0GuMPJ1lnQJVHvxpg==",
"requires": {
"inherits": "^2.0.1",
"process-nextick-args": "^2.0.0",
"readable-stream": "^2.3.5"
}
},
"concat-map": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
"integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
},
"core-util-is": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
},
"define-properties": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.2.tgz",
"integrity": "sha1-g6c/L+pWmJj7c3GTyPhzyvbUXJQ=",
"requires": {
"foreach": "^2.0.5",
"object-keys": "^1.0.8"
}
},
"diff": {
"version": "3.5.0",
"resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz",
"integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA=="
},
"es-abstract": {
"version": "1.12.0",
"resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.12.0.tgz",
"integrity": "sha512-C8Fx/0jFmV5IPoMOFPA9P9G5NtqW+4cOPit3MIuvR2t7Ag2K15EJTpxnHAYTzL+aYQJIESYeXZmDBfOBE1HcpA==",
"requires": {
"es-to-primitive": "^1.1.1",
"function-bind": "^1.1.1",
"has": "^1.0.1",
"is-callable": "^1.1.3",
"is-regex": "^1.0.4"
}
},
"es-to-primitive": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.1.1.tgz",
"integrity": "sha1-RTVSSKiJeQNLZ5Lhm7gfK3l13Q0=",
"requires": {
"is-callable": "^1.1.1",
"is-date-object": "^1.0.1",
"is-symbol": "^1.0.1"
}
},
"esprima": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.0.tgz",
"integrity": "sha512-oftTcaMu/EGrEIu904mWteKIv8vMuOgGYo7EhVJJN00R/EED9DCua/xxHRdYnKtcECzVg7xOWhflvJMnqcFZjw=="
},
"first-chunk-stream": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/first-chunk-stream/-/first-chunk-stream-2.0.0.tgz",
"integrity": "sha1-G97NuOCDwGZLkZRVgVd6Q6nzHXA=",
"requires": {
"readable-stream": "^2.0.2"
}
},
"foreach": {
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.5.tgz",
"integrity": "sha1-C+4AUBiusmDQo6865ljdATbsG5k="
},
"fs-extra": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-5.0.0.tgz",
"integrity": "sha512-66Pm4RYbjzdyeuqudYqhFiNBbCIuI9kgRqLPSHIlXHidW8NIQtVdkM1yeZ4lXwuhbTETv3EUGMNHAAw6hiundQ==",
"requires": {
"graceful-fs": "^4.1.2",
"jsonfile": "^4.0.0",
"universalify": "^0.1.0"
}
},
"fs.realpath": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8="
},
"function-bind": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
"integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
},
"glob": {
"version": "7.1.2",
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz",
"integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==",
"requires": {
"fs.realpath": "^1.0.0",
"inflight": "^1.0.4",
"inherits": "2",
"minimatch": "^3.0.4",
"once": "^1.3.0",
"path-is-absolute": "^1.0.0"
}
},
"graceful-fs": {
"version": "4.1.11",
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz",
"integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg="
},
"has": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
"integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
"requires": {
"function-bind": "^1.1.1"
}
},
"home": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/home/-/home-1.0.1.tgz",
"integrity": "sha1-lqQjzrSbmDeP9e886uBZpVf53TU=",
"requires": {
"os-homedir": "^1.0.1"
}
},
"inflight": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
"integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
"requires": {
"once": "^1.3.0",
"wrappy": "1"
}
},
"inherits": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
"integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4="
},
"is-callable": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.3.tgz",
"integrity": "sha1-hut1OSgF3cM69xySoO7fdO52BLI="
},
"is-date-object": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz",
"integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY="
},
"is-regex": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz",
"integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=",
"requires": {
"has": "^1.0.1"
}
},
"is-symbol": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.1.tgz",
"integrity": "sha1-PMWfAAJRlLarLjjbrmaJJWtmBXI="
},
"is-utf8": {
"version": "0.2.1",
"resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz",
"integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI="
},
"isarray": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
"integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="
},
"js-yaml": {
"version": "3.12.0",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.0.tgz",
"integrity": "sha512-PIt2cnwmPfL4hKNwqeiuz4bKfnzHTBv6HyVgjahA6mPLwPDzjDWrplJBMjHUFxku/N3FlmrbyPclad+I+4mJ3A==",
"requires": {
"argparse": "^1.0.7",
"esprima": "^4.0.0"
}
},
"jsonfile": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
"integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=",
"requires": {
"graceful-fs": "^4.1.6"
}
},
"make-error": {
"version": "1.3.4",
"resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.4.tgz",
"integrity": "sha512-0Dab5btKVPhibSalc9QGXb559ED7G7iLjFXBaj9Wq8O3vorueR5K5jaE3hkG6ZQINyhA/JgG6Qk4qdFQjsYV6g=="
},
"minimatch": {
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
"requires": {
"brace-expansion": "^1.1.7"
}
},
"minimist": {
"version": "0.0.8",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
"integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0="
},
"mkdirp": {
"version": "0.5.1",
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
"integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
"requires": {
"minimist": "0.0.8"
}
},
"object-keys": {
"version": "1.0.12",
"resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.12.tgz",
"integrity": "sha512-FTMyFUm2wBcGHnH2eXmz7tC6IwlqQZ6mVZ+6dm6vZ4IQIHjs6FdNsQBuKGPuUUUY6NfJw2PshC08Tn6LzLDOag=="
},
"object.getownpropertydescriptors": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz",
"integrity": "sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY=",
"requires": {
"define-properties": "^1.1.2",
"es-abstract": "^1.5.1"
}
},
"once": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
"requires": {
"wrappy": "1"
}
},
"os-homedir": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz",
"integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M="
},
"path-is-absolute": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
"integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18="
},
"pify": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
"integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw="
},
"process-nextick-args": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz",
"integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw=="
},
"readable-stream": {
"version": "2.3.6",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
"integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==",
"requires": {
"core-util-is": "~1.0.0",
"inherits": "~2.0.3",
"isarray": "~1.0.0",
"process-nextick-args": "~2.0.0",
"safe-buffer": "~5.1.1",
"string_decoder": "~1.1.1",
"util-deprecate": "~1.0.1"
}
},
"remove-trailing-separator": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz",
"integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8="
},
"replace-ext": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz",
"integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs="
},
"require-reload": {
"version": "0.2.2",
"resolved": "https://registry.npmjs.org/require-reload/-/require-reload-0.2.2.tgz",
"integrity": "sha1-KadZGEbK+RtuijzamRaD+V+NfUI="
},
"safe-buffer": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
},
"smartfile": {
"version": "4.2.28",
"resolved": "https://registry.npmjs.org/smartfile/-/smartfile-4.2.28.tgz",
"integrity": "sha512-zUeAOLYftz8xLfKTs9U1NOuNPTA9jlvTQNr7lDIv84kXnr1AEpDb2Xwy1MdK1w733sBil/RkxtezrkvgRVAnNg==",
"requires": {
"@types/fs-extra": "5.0.0",
"@types/vinyl": "^2.0.2",
"fs-extra": "^5.0.0",
"glob": "^7.1.2",
"js-yaml": "^3.10.0",
"require-reload": "0.2.2",
"smartpath": "^3.2.8",
"smartq": "^1.1.6",
"smartrequest": "^1.0.8",
"vinyl-file": "^3.0.0"
}
},
"smartpath": {
"version": "3.2.8",
"resolved": "https://registry.npmjs.org/smartpath/-/smartpath-3.2.8.tgz",
"integrity": "sha1-SDS9OouuIpW6rK26I8h6UBlS+UA=",
"requires": {
"home": "^1.0.1",
"typings-global": "^1.0.14"
}
},
"smartq": {
"version": "1.1.8",
"resolved": "https://registry.npmjs.org/smartq/-/smartq-1.1.8.tgz",
"integrity": "sha512-FURlYW/C3bLeZjJcBVyw7bxCyQoCXiXbLCZcDUKznhXHaLu35c8m33/a2H8CA0rtb82lvzN8dRLnBZAcNMzNHQ==",
"requires": {
"util.promisify": "^1.0.0"
}
},
"smartrequest": {
"version": "1.0.13",
"resolved": "https://registry.npmjs.org/smartrequest/-/smartrequest-1.0.13.tgz",
"integrity": "sha512-OHrvzaxaA8Z8bJr33yxnyJF35nrWyaumsajqXm2Zkv0/2hfWO1NQAj02VVV51rLQfmtU0Hex7Nk19SoC8nOmYg==",
"requires": {
"smartq": "^1.1.1"
}
},
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="
},
"source-map-support": {
"version": "0.5.6",
"resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.6.tgz",
"integrity": "sha512-N4KXEz7jcKqPf2b2vZF11lQIz9W5ZMuUcIOGj243lduidkf2fjkVKJS9vNxVWn3u/uxX38AcE8U9nnH9FPcq+g==",
"requires": {
"buffer-from": "^1.0.0",
"source-map": "^0.6.0"
}
},
"sprintf-js": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
"integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw="
},
"string_decoder": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
"integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
"requires": {
"safe-buffer": "~5.1.0"
}
},
"strip-bom": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz",
"integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=",
"requires": {
"is-utf8": "^0.2.0"
}
},
"strip-bom-buf": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/strip-bom-buf/-/strip-bom-buf-1.0.0.tgz",
"integrity": "sha1-HLRar1dTD0yvhsf3UXnSyaUd1XI=",
"requires": {
"is-utf8": "^0.2.1"
}
},
"strip-bom-stream": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/strip-bom-stream/-/strip-bom-stream-2.0.0.tgz",
"integrity": "sha1-+H217yYT9paKpUWr/h7HKLaoKco=",
"requires": {
"first-chunk-stream": "^2.0.0",
"strip-bom": "^2.0.0"
}
},
"ts-node": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/ts-node/-/ts-node-7.0.0.tgz",
"integrity": "sha512-klJsfswHP0FuOLsvBZ/zzCfUvakOSSxds78mVeK7I+qP76YWtxf16hEZsp3U+b0kIo82R5UatGFeblYMqabb2Q==",
"requires": {
"arrify": "^1.0.0",
"buffer-from": "^1.1.0",
"diff": "^3.1.0",
"make-error": "^1.1.1",
"minimist": "^1.2.0",
"mkdirp": "^0.5.1",
"source-map-support": "^0.5.6",
"yn": "^2.0.0"
},
"dependencies": {
"minimist": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
"integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ="
}
}
},
"typescript": {
"version": "2.9.1",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-2.9.1.tgz",
"integrity": "sha512-h6pM2f/GDchCFlldnriOhs1QHuwbnmj6/v7499eMHqPeW4V2G0elua2eIc2nu8v2NdHV0Gm+tzX83Hr6nUFjQA=="
},
"typings-global": {
"version": "1.0.28",
"resolved": "https://registry.npmjs.org/typings-global/-/typings-global-1.0.28.tgz",
"integrity": "sha512-6VOwJWEY2971HOMHu/7sURzUXiD4/LiMJPsMAOqkHHAtS3MVpLFE5gzTiHilsH9KY5VE1mBQirWIgWFsDuo90A=="
},
"universalify": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",
"integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg=="
},
"util-deprecate": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
"integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
},
"util.promisify": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/util.promisify/-/util.promisify-1.0.0.tgz",
"integrity": "sha512-i+6qA2MPhvoKLuxnJNpXAGhg7HphQOSUq2LKMZD0m15EiskXUkMvKdF4Uui0WYeCUGea+o2cw/ZuwehtfsrNkA==",
"requires": {
"define-properties": "^1.1.2",
"object.getownpropertydescriptors": "^2.0.3"
}
},
"vinyl": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.2.0.tgz",
"integrity": "sha512-MBH+yP0kC/GQ5GwBqrTPTzEfiiLjta7hTtvQtbxBgTeSXsmKQRQecjibMbxIXzVT3Y9KJK+drOz1/k+vsu8Nkg==",
"requires": {
"clone": "^2.1.1",
"clone-buffer": "^1.0.0",
"clone-stats": "^1.0.0",
"cloneable-readable": "^1.0.0",
"remove-trailing-separator": "^1.0.1",
"replace-ext": "^1.0.0"
}
},
"vinyl-file": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/vinyl-file/-/vinyl-file-3.0.0.tgz",
"integrity": "sha1-sQTZ5ECf+jJfqt1SBkLQo7SIs2U=",
"requires": {
"graceful-fs": "^4.1.2",
"pify": "^2.3.0",
"strip-bom-buf": "^1.0.0",
"strip-bom-stream": "^2.0.0",
"vinyl": "^2.0.1"
}
},
"wrappy": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
},
"yn": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/yn/-/yn-2.0.0.tgz",
"integrity": "sha1-5a2ryKz0CPY4X8dklWhMiOavaJo="
}
}
}
+39 -12
View File
@@ -1,27 +1,54 @@
{
"name": "@gitzone/tsrun",
"version": "1.0.18",
"name": "@git.zone/tsrun",
"version": "2.0.3",
"description": "run typescript programs efficiently",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts",
"type": "module",
"author": "Lossless GmbH",
"license": "MIT",
"bin": {
"tsrun": "./cli.js"
},
"scripts": {
"test": "(npmts --notest && node ./cli.js test/test.ts)",
"test": "(pnpm run build && node ./cli.js test/test.js sayhello)",
"format": "(gitzone format)",
"build": "echo \"Not needed for now\"",
"postinstall": "(node ./cli.js scripts/postinstall.ts)"
"build": "(tsbuild)",
"buildDocs": "tsdoc"
},
"devDependencies": {
"@types/node": "^10.3.0"
"@git.zone/tsbuild": "^4.4.0",
"@push.rocks/smartcli": "^4.0.20",
"@types/node": "^25.5.0"
},
"dependencies": {
"smartfile": "^4.2.28",
"ts-node": "^7.0.0",
"typescript": "^2.9.1"
"@push.rocks/smartfile": "^13.1.2",
"@push.rocks/smartshell": "^3.3.8",
"tsx": "^4.21.0"
},
"private": false
"private": false,
"files": [
"ts/**/*",
"ts_web/**/*",
"dist/**/*",
"dist_*/**/*",
"dist_ts/**/*",
"dist_ts_web/**/*",
"assets/**/*",
"cli.js",
".smartconfig.json",
"readme.md"
],
"browserslist": [
"last 1 chrome versions"
],
"repository": {
"type": "git",
"url": "git+https://gitlab.com/gitzone/tsrun.git"
},
"bugs": {
"url": "https://gitlab.com/gitzone/tsrun/issues"
},
"homepage": "https://gitlab.com/gitzone/tsrun#readme",
"packageManager": "pnpm@10.18.1+sha512.77a884a165cbba2d8d1c19e3b4880eee6d2fcabd0d879121e282196b80042351d5eb3ca0935fa599da1dc51265cc68816ad2bddd2a2de5ea9fdf92adbec7cd34"
}
+4600
View File
File diff suppressed because it is too large Load Diff
View File
+345
View File
@@ -0,0 +1,345 @@
# @git.zone/tsrun
[![npm version](https://img.shields.io/npm/v/@git.zone/tsrun.svg)](https://www.npmjs.com/package/@git.zone/tsrun)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![TypeScript](https://img.shields.io/badge/TypeScript-native-blue)](https://www.typescriptlang.org/)
[![Node.js](https://img.shields.io/badge/Node.js-%3E%3D18.x-green)](https://nodejs.org/)
> Run TypeScript files instantly — no build step, no config, no friction ⚡
Execute TypeScript programs on-the-fly with zero configuration. Whether you're writing quick scripts, prototyping ideas, or orchestrating complex multi-project workflows, tsrun gets out of your way and lets you focus on code.
## Issue Reporting and Security
For reporting bugs, issues, or security vulnerabilities, please visit [community.foss.global/](https://community.foss.global/). This is the central community hub for all issue reporting. Developers who sign and comply with our contribution agreement and go through identification can also get a [code.foss.global/](https://code.foss.global/) account to submit Pull Requests directly.
## Table of Contents
- [What is tsrun?](#what-is-tsrun)
- [Installation](#installation)
- [CLI Usage](#-cli-usage)
- [Programmatic API](#-programmatic-api)
- [runPath()](#runpath---simple-execution)
- [runCli()](#runcli---cli-mode)
- [spawnPath()](#spawnpath---advanced-process-control)
- [API Quick Reference](#api-quick-reference)
- [Features](#features)
- [Common Use Cases](#common-use-cases)
- [Troubleshooting](#troubleshooting)
- [License and Legal Information](#license-and-legal-information)
## What is tsrun?
**tsrun** is a lightweight TypeScript execution tool that lets you run `.ts` files directly — just like running JavaScript with `node`, but for TypeScript. Under the hood, it uses [tsx](https://github.com/privatenumber/tsx) for lightning-fast transpilation, so there's no compilation step, no tsconfig fiddling, and no waiting around.
It also doubles as a **programmatic library** with full process control — spawn TypeScript processes, capture their output, set timeouts, and cancel them with `AbortController`. Perfect for build scripts, task runners, and orchestration tools.
## Installation
**Global** (recommended for CLI usage):
```bash
pnpm install -g @git.zone/tsrun
```
**As a project dependency** (for programmatic API):
```bash
pnpm install @git.zone/tsrun
```
## 🚀 CLI Usage
Run any TypeScript file:
```bash
tsrun myScript.ts
```
Arguments pass through transparently, just like `node`:
```bash
tsrun deploy.ts production --verbose --dry-run
```
Your script sees them in `process.argv` as expected:
```typescript
// deploy.ts
const env = process.argv[0]; // "production"
const verbose = process.argv.includes('--verbose');
const dryRun = process.argv.includes('--dry-run');
console.log(`Deploying to ${env}...`);
```
## 💻 Programmatic API
tsrun exports three functions tailored for different execution needs.
### `runPath()` — Simple Execution
Runs a TypeScript file and waits for it to complete. The simplest way to execute scripts programmatically.
```typescript
import { runPath } from '@git.zone/tsrun';
// Run a script (path relative to cwd)
await runPath('./scripts/build.ts');
// Resolve path relative to the calling file
await runPath('./build.ts', import.meta.url);
// Run in a different working directory (spawns a child process)
await runPath('./build.ts', import.meta.url, { cwd: '/path/to/project' });
```
**How it works:**
- Without `cwd` — executes **in-process** using tsx's ESM loader (fast, zero overhead)
- With `cwd` — spawns an **isolated child process** with the given working directory
### `runCli()` — CLI Mode
Runs with `process.argv` integration, as if the script were invoked from the command line. This is what the `tsrun` CLI binary uses internally.
```typescript
import { runCli } from '@git.zone/tsrun';
// Uses process.argv for argument passing
await runCli('./script.ts');
// With custom working directory
await runCli('./script.ts', { cwd: '/path/to/project' });
```
### `spawnPath()` — Advanced Process Control
Returns immediately with a process handle, giving you full control over stdio, timeouts, and cancellation.
```typescript
import { spawnPath } from '@git.zone/tsrun';
const proc = spawnPath('./task.ts', import.meta.url, {
timeout: 30000, // Kill after 30s
cwd: '/path/to/project',
env: { NODE_ENV: 'production' }, // Merged with process.env
args: ['--verbose'], // Extra CLI args
stdio: 'pipe', // Default: capture stdout/stderr
});
// Stream stdout
proc.stdout?.on('data', (chunk) => {
console.log(chunk.toString());
});
// Wait for exit
const exitCode = await proc.exitCode;
```
**AbortController support:**
```typescript
const controller = new AbortController();
const proc = spawnPath('./task.ts', import.meta.url, {
signal: controller.signal,
});
// Cancel from outside
setTimeout(() => controller.abort(), 5000);
try {
await proc.exitCode;
} catch (err) {
console.log('Process was cancelled');
}
```
**Graceful termination:**
```typescript
const proc = spawnPath('./server.ts', import.meta.url);
// Sends SIGTERM, waits 5s, then SIGKILL if still running
await proc.terminate();
```
## API Quick Reference
| Function | Execution | Returns | Best For |
|----------|-----------|---------|----------|
| `runPath()` | In-process (or child with `cwd`) | `Promise<void>` | Simple script execution, sequential workflows |
| `runCli()` | In-process (or child with `cwd`) | `Promise<void>` | CLI-like invocation with argv integration |
| `spawnPath()` | Always child process | `ITsrunChildProcess` | Output capture, timeouts, cancellation, parallel tasks |
**Decision guide:**
- 🎯 **Just run a script?**`runPath()`
- 🔧 **Need argv pass-through?**`runCli()`
- 🎛️ **Need stdout/stderr, timeout, or cancel?**`spawnPath()`
-**Parallel execution across projects?**`runPath()` with `cwd` or `spawnPath()`
### `ITsrunChildProcess` Interface
The object returned by `spawnPath()`:
| Property / Method | Type | Description |
|---|---|---|
| `childProcess` | `ChildProcess` | Direct access to Node's ChildProcess |
| `stdout` | `Readable \| null` | Stdout stream (`null` if stdio is `'inherit'`) |
| `stderr` | `Readable \| null` | Stderr stream (`null` if stdio is `'inherit'`) |
| `exitCode` | `Promise<number>` | Resolves with exit code when process ends |
| `kill(signal?)` | `(signal?: NodeJS.Signals) => boolean` | Send a signal to the process |
| `terminate()` | `() => Promise<void>` | Graceful shutdown: SIGTERM → 5s → SIGKILL |
### `ISpawnOptions`
Options for `spawnPath()`:
| Option | Type | Default | Description |
|---|---|---|---|
| `cwd` | `string` | `process.cwd()` | Working directory for the child process |
| `env` | `Record<string, string>` | `{}` | Extra env vars (merged with `process.env`) |
| `args` | `string[]` | `[]` | Additional CLI arguments |
| `stdio` | `'pipe' \| 'inherit'` | `'pipe'` | Stdio configuration |
| `timeout` | `number` | — | Auto-kill after N milliseconds |
| `signal` | `AbortSignal` | — | External cancellation support |
## Features
**Zero Configuration** — Point and shoot. No tsconfig required, no build step, no setup.
**Lightning Fast** — Powered by tsx (esbuild under the hood) for near-instant TypeScript execution.
🔄 **Transparent Arguments** — CLI args pass through seamlessly to your scripts via `process.argv`.
📦 **Dual Interface** — Use as a CLI tool or import as a library with full TypeScript types.
🔀 **Custom Working Directory** — Run scripts in isolated child processes with different cwds.
🎛️ **Full Process Control**`spawnPath()` gives you streams, timeouts, cancellation, and graceful shutdown.
🛡️ **Signal Forwarding** — SIGINT/SIGTERM/SIGHUP are properly forwarded to child processes.
## Common Use Cases
### Quick Scripts & Prototyping
```bash
# Write TypeScript, run it immediately
tsrun seed-database.ts
tsrun generate-report.ts --format csv
tsrun cleanup-temp-files.ts
```
### Sequential Build Pipeline
```typescript
import { runPath } from '@git.zone/tsrun';
const steps = ['./lint.ts', './test.ts', './build.ts', './deploy.ts'];
for (const step of steps) {
console.log(`▶ Running ${step}...`);
await runPath(step, import.meta.url);
console.log(`✓ Done`);
}
```
### Parallel Multi-Project Builds
```typescript
import { runPath } from '@git.zone/tsrun';
await Promise.all([
runPath('./build.ts', undefined, { cwd: '/workspace/frontend' }),
runPath('./build.ts', undefined, { cwd: '/workspace/backend' }),
runPath('./build.ts', undefined, { cwd: '/workspace/shared' }),
]);
```
### Long-Running Tasks with Monitoring
```typescript
import { spawnPath } from '@git.zone/tsrun';
const proc = spawnPath('./data-migration.ts', import.meta.url, {
timeout: 300000, // 5 minute max
env: { LOG_LEVEL: 'verbose' },
});
let lines = 0;
proc.stdout?.on('data', (chunk) => {
lines++;
if (lines % 100 === 0) console.log(`Processed ${lines} lines...`);
});
try {
await proc.exitCode;
console.log('Migration completed!');
} catch (err) {
console.error('Migration failed:', err.message);
process.exit(1);
}
```
## Troubleshooting
### "Cannot find module" errors
Use `import.meta.url` for path resolution relative to the calling file:
```typescript
// ❌ Relative to cwd — fragile
await runPath('./script.ts');
// ✅ Relative to current file — reliable
await runPath('./script.ts', import.meta.url);
```
### Process hangs
When using `spawnPath()`, always await the `exitCode` promise:
```typescript
const proc = spawnPath('./script.ts', import.meta.url);
await proc.exitCode; // Don't forget this!
```
### Timeout only works with `spawnPath()`
`runPath()` executes in-process and doesn't support timeouts. Use `spawnPath()` instead:
```typescript
const proc = spawnPath('./script.ts', import.meta.url, { timeout: 5000 });
await proc.exitCode;
```
### `tsrun: command not found`
Install globally or use `npx`:
```bash
pnpm install -g @git.zone/tsrun
# or
npx @git.zone/tsrun myScript.ts
```
## License and Legal Information
This repository contains open-source code licensed under the MIT License. A copy of the license can be found in the [LICENSE](./license) file.
**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.
### Trademarks
This project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH or third parties, and are not included within the scope of the MIT license granted herein.
Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines or the guidelines of the respective third-party owners, and any usage must be approved in writing. Third-party trademarks used herein are the property of their respective owners and used only in a descriptive manner, e.g. for an implementation of an API or similar.
### Company Information
Task Venture Capital GmbH
Registered at District Court Bremen HRB 35230 HB, Germany
For any legal inquiries or further information, please contact us via email at hello@task.vc.
By using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.
-10
View File
@@ -1,10 +0,0 @@
// This file takes care of some postinstall actions like clearing the TypeScript cache.
import * as smartfile from 'smartfile';
import * as path from 'path';
const run = async () => {
const tsCacheDir = path.join(__dirname, '../tscache');
await smartfile.fs.ensureEmptyDir(tsCacheDir);
}
run();
+12
View File
@@ -1,2 +1,14 @@
const textToPost: string = 'Test runs!';
console.log(textToPost);
const run = async () => {
const smartcli = await import('@push.rocks/smartcli');
const smartcliInstance = new smartcli.Smartcli();
console.log(process.argv);
smartcliInstance.addCommand('sayhello').subscribe(async (argvArg) => {
console.log('hello there');
});
smartcliInstance.startParse();
};
run();
+8
View File
@@ -0,0 +1,8 @@
/**
* autocreated commitinfo by @push.rocks/commitinfo
*/
export const commitinfo = {
name: '@git.zone/tsrun',
version: '2.0.3',
description: 'run typescript programs efficiently'
}
+268 -13
View File
@@ -1,20 +1,275 @@
import * as path from 'path';
import * as tsNode from 'ts-node';
import * as plugins from './plugins.js';
const __dirname = plugins.path.dirname(plugins.url.fileURLToPath(import.meta.url));
tsNode.register({
compilerOptions: {
lib: [ 'es2016', 'es2017' ]
},
skipIgnore: true,
cacheDirectory: path.join(__dirname, '../tscache')
});
export interface IRunOptions {
cwd?: string;
}
if (process.env.CLI_CALL_TSRUN) {
export interface ISpawnOptions {
/** Working directory for the child process */
cwd?: string;
/** Environment variables (merged with parent's env) */
env?: Record<string, string>;
/** Additional CLI arguments to pass to the script */
args?: string[];
/**
* Stdio configuration
* - 'pipe': Create pipes for stdin/stdout/stderr (default)
* - 'inherit': Use parent's stdio
* - Array: Custom configuration per stream
*/
stdio?: 'pipe' | 'inherit' | ['pipe' | 'inherit' | 'ignore', 'pipe' | 'inherit' | 'ignore', 'pipe' | 'inherit' | 'ignore'];
/**
* Optional timeout in milliseconds
* If provided, process is automatically killed after timeout
*/
timeout?: number;
/**
* AbortSignal for cancellation support
* Allows external cancellation of the process
*/
signal?: AbortSignal;
}
export interface ITsrunChildProcess {
/** Direct access to Node's ChildProcess object */
childProcess: plugins.ChildProcess;
/** Readable stream for stdout (null if stdio is 'inherit') */
stdout: plugins.Readable | null;
/** Readable stream for stderr (null if stdio is 'inherit') */
stderr: plugins.Readable | null;
/** Promise that resolves with the exit code when process ends */
exitCode: Promise<number>;
/**
* Send signal to process
* Returns true if signal was sent successfully
*/
kill(signal?: NodeJS.Signals): boolean;
/**
* Gracefully terminate the process
* Tries SIGTERM first, waits 5s, then SIGKILL if still running
* Returns a promise that resolves when process is terminated
*/
terminate(): Promise<void>;
}
export const runPath = async (pathArg: string, fromFileUrl?: string, options?: IRunOptions) => {
pathArg = fromFileUrl
? plugins.path.join(plugins.path.dirname(plugins.url.fileURLToPath(fromFileUrl)), pathArg)
: pathArg;
await runCli(pathArg, options);
};
export const runCli = async (pathArg?: string, options?: IRunOptions) => {
// CRITICAL: Branch BEFORE splicing argv to avoid corruption
if (options?.cwd) {
return runInChildProcess(pathArg, options.cwd);
}
// Existing in-process execution
// contents of argv array
// process.argv[0] -> node Executable
// process.argv[1] -> tsrun executable
const pathToTsFile = process.argv[2]
const relativePathToTsFile = pathArg ? pathArg : process.argv[2];
const absolutePathToTsFile = plugins.path.isAbsolute(relativePathToTsFile)
? relativePathToTsFile
: plugins.path.join(process.cwd(), relativePathToTsFile);
const pathToLoad = path.join(process.cwd(), pathToTsFile);
import(pathToLoad);
// 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
const tsx = await import('tsx/esm/api');
const unregister = tsx.register();
await import(absolutePathToTsFile);
};
const runInChildProcess = async (pathArg: string | undefined, cwd: string): Promise<void> => {
const { spawn } = await import('child_process');
// Resolve cli.js relative to this file
const cliPath = plugins.path.join(__dirname, '../cli.js');
// Build args: [Node flags, entry point, script path, script args]
const args = [
...process.execArgv, // Preserve --inspect, etc.
cliPath,
...process.argv.slice(2) // Original CLI args (not spliced)
];
return new Promise((resolve, reject) => {
const child = spawn(process.execPath, args, {
cwd: cwd,
env: process.env,
stdio: 'inherit',
shell: false,
windowsHide: false
});
// Signal forwarding with cleanup
const signalHandler = (signal: NodeJS.Signals) => {
try { child.kill(signal); } catch {}
};
const signals: NodeJS.Signals[] = ['SIGINT', 'SIGTERM', 'SIGHUP'];
signals.forEach(sig => process.on(sig, signalHandler));
child.on('error', (err) => {
signals.forEach(sig => process.off(sig, signalHandler));
reject(err);
});
child.on('close', (code, signal) => {
// Clean up signal handlers
signals.forEach(sig => process.off(sig, signalHandler));
if (signal) {
// Child was terminated by signal
// On POSIX: try to exit with same signal
// On Windows: exit with convention (128 + signal number)
try {
process.kill(process.pid, signal);
} catch {
// Fallback to exit code
const signalExitCode = signal === 'SIGINT' ? 130 : 128;
process.exit(signalExitCode);
}
} else if (code !== null && code !== 0) {
process.exit(code);
} else {
resolve();
}
});
});
};
export const spawnPath = (
filePath: string,
fromFileUrl?: string | URL,
options?: ISpawnOptions
): ITsrunChildProcess => {
// 1. Resolve path (similar to runPath)
const resolvedPath = fromFileUrl
? plugins.path.join(
plugins.path.dirname(
plugins.url.fileURLToPath(
typeof fromFileUrl === 'string' ? fromFileUrl : fromFileUrl.href
)
),
filePath
)
: filePath;
// 2. Build spawn args
const cliPath = plugins.path.join(__dirname, '../cli.js');
const args = [
...process.execArgv,
cliPath,
resolvedPath,
...(options?.args || [])
];
// 3. Build spawn options
const spawnOptions = {
cwd: options?.cwd || process.cwd(),
env: { ...process.env, ...options?.env },
stdio: options?.stdio || 'pipe',
shell: false,
windowsHide: false
};
// 4. Spawn child process
const child = plugins.spawn(process.execPath, args, spawnOptions);
// 5. Set up timeout if provided
let timeoutId: NodeJS.Timeout | undefined;
let timeoutTriggered = false;
if (options?.timeout) {
timeoutId = setTimeout(() => {
timeoutTriggered = true;
child.kill('SIGTERM');
}, options.timeout);
}
// 6. Set up AbortSignal if provided
let abortHandler: (() => void) | undefined;
if (options?.signal) {
abortHandler = () => {
child.kill('SIGTERM');
};
options.signal.addEventListener('abort', abortHandler);
}
// 7. Create exitCode promise
const exitCodePromise = new Promise<number>((resolve, reject) => {
child.on('close', (code: number | null, signal: NodeJS.Signals | null) => {
if (timeoutId) clearTimeout(timeoutId);
if (abortHandler && options?.signal) {
options.signal.removeEventListener('abort', abortHandler);
}
if (timeoutTriggered) {
reject(new Error(`Process killed: timeout of ${options?.timeout}ms exceeded`));
} else if (options?.signal?.aborted) {
reject(new Error('Process killed: aborted by signal'));
} else if (signal) {
reject(new Error(`Process killed with signal ${signal}`));
} else {
resolve(code || 0);
}
});
child.on('error', (err: Error) => {
if (timeoutId) clearTimeout(timeoutId);
if (abortHandler && options?.signal) {
options.signal.removeEventListener('abort', abortHandler);
}
reject(err);
});
});
// 8. Implement terminate() method
const terminate = async (): Promise<void> => {
return new Promise((resolve) => {
if (child.killed) {
resolve();
return;
}
child.kill('SIGTERM');
const killTimeout = setTimeout(() => {
if (!child.killed) {
child.kill('SIGKILL');
}
}, 5000);
child.on('close', () => {
clearTimeout(killTimeout);
resolve();
});
});
};
// 9. Return ITsrunChildProcess object
return {
childProcess: child,
stdout: child.stdout,
stderr: child.stderr,
exitCode: exitCodePromise,
kill: (signal?: NodeJS.Signals) => child.kill(signal),
terminate
};
};
+1
View File
@@ -0,0 +1 @@
export const cwd = process.cwd();
+15
View File
@@ -0,0 +1,15 @@
// node native
import * as path from 'path';
import * as url from 'url';
import { spawn } from 'child_process';
import type { ChildProcess } from 'child_process';
import type { Readable } from 'stream';
export { path, url, spawn };
export type { ChildProcess, Readable };
// @pushrocks scope
import * as smartfile from '@push.rocks/smartfile';
import * as smartshell from '@push.rocks/smartshell';
export { smartfile, smartshell };
+12
View File
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"esModuleInterop": true,
"verbatimModuleSyntax": true
},
"exclude": [
"dist_*/**/*.d.ts"
]
}
-3
View File
@@ -1,3 +0,0 @@
{
"extends": "tslint-config-standard"
}