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

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

View File

@ -119,6 +119,6 @@ jobs:
run: | run: |
npmci node install stable npmci node install stable
npmci npm install npmci npm install
pnpm install -g @gitzone/tsdoc pnpm install -g @git.zone/tsdoc
npmci command tsdoc npmci command tsdoc
continue-on-error: true continue-on-error: true

View File

@ -1,5 +1,13 @@
# Changelog # Changelog
## 2024-09-17 - 5.0.25 - fix(core)
Fix typos in package.json, update dependencies and update workflow.
- Fixed references to deprecated package names in workflows and package.json.
- Updated versions of @push.rocks dependencies to latest stable.
- Corrected scripts in package.json to reflect new build and documentation commands.
- Fixed async startup in browser tests.
## 2024-08-17 - 5.0.24 - fix(dependencies) ## 2024-08-17 - 5.0.24 - fix(dependencies)
Update dependencies Update dependencies
@ -119,7 +127,7 @@ Multiple core fixes and updates without specific feature changes
- fix(dependencies): update - fix(dependencies): update
## 2018-08-08 - 3.0.3 - Dependency Update ## 2018-08-08 - 3.0.3 - Dependency Update
- fix(dependencies): use @gitzone/tsbuild instead of npmts - fix(dependencies): use @git.zone/tsbuild instead of npmts
## 2018-07-18 - 3.0.2 - Dependency Update ## 2018-07-18 - 3.0.2 - Dependency Update
- fix(dependencies): now typings-global free - fix(dependencies): now typings-global free

View File

@ -3,12 +3,14 @@
"private": false, "private": false,
"version": "5.0.24", "version": "5.0.24",
"description": "A test automation library bundling utilities and tools for TAP (Test Anything Protocol) based testing, specifically tailored for tapbuffer.", "description": "A test automation library bundling utilities and tools for TAP (Test Anything Protocol) based testing, specifically tailored for tapbuffer.",
"main": "dist_ts/index.js", "exports": {
"typings": "dist_ts/index.d.ts", ".": "./dist_ts/index.js",
"./node": "./dist_ts_node/index.js"
},
"type": "module", "type": "module",
"scripts": { "scripts": {
"test": "(tstest test/)", "test": "(tstest test/)",
"build": "(tsbuild --web --allowimplicitany --skiplibcheck)", "build": "(tsbuild tsfolders --web --allowimplicitany --skiplibcheck)",
"buildDocs": "tsdoc" "buildDocs": "tsdoc"
}, },
"repository": { "repository": {
@ -26,16 +28,17 @@
"@push.rocks/consolecolor": "^2.0.2", "@push.rocks/consolecolor": "^2.0.2",
"@push.rocks/smartdelay": "^3.0.5", "@push.rocks/smartdelay": "^3.0.5",
"@push.rocks/smartenv": "^5.0.12", "@push.rocks/smartenv": "^5.0.12",
"@push.rocks/smartexpect": "^1.1.0", "@push.rocks/smartexpect": "^1.2.1",
"@push.rocks/smartjson": "^5.0.20", "@push.rocks/smartjson": "^5.0.20",
"@push.rocks/smartpromise": "^4.0.4", "@push.rocks/smartpromise": "^4.0.4",
"@push.rocks/smartshell": "^3.0.6",
"@push.rocks/smarttime": "^4.0.8" "@push.rocks/smarttime": "^4.0.8"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.66", "@git.zone/tsbuild": "^2.1.66",
"@gitzone/tsrun": "^1.2.43", "@git.zone/tsrun": "^1.2.43",
"@gitzone/tstest": "^1.0.77", "@git.zone/tstest": "^1.0.77",
"@types/node": "^22.4.0", "@types/node": "^22.5.5",
"randomstring": "^1.3.0" "randomstring": "^1.3.0"
}, },
"files": [ "files": [

4679
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -45,4 +45,4 @@ const test6 = tap.skip.test('my 6th test -> should fail after 1000ms', async (to
await tools.delayFor(100); await tools.delayFor(100);
}); });
tap.start(); await tap.start();

10
test/test.node.ts Normal file
View File

@ -0,0 +1,10 @@
import { tap, expect } from '../ts/index.js';
import { tapNodeTools } from '../ts_node/index.js';
tap.test('should execure a command', async () => {
const result = await tapNodeTools.runCommand('ls -la');
expect(result.exitCode).toEqual(0);
});
tap.start();

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@push.rocks/tapbundle', name: '@push.rocks/tapbundle',
version: '5.0.24', version: '5.0.25',
description: 'A test automation library bundling utilities and tools for TAP (Test Anything Protocol) based testing, specifically tailored for tapbuffer.' description: 'A test automation library bundling utilities and tools for TAP (Test Anything Protocol) based testing, specifically tailored for tapbuffer.'
} }

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 };