fix(core): update

This commit is contained in:
Philipp Kunz 2022-03-21 08:30:09 +01:00
parent e3fa407c1c
commit 9145cc890c
7 changed files with 17730 additions and 516 deletions

View File

@ -1,8 +1,6 @@
{
"npmci": {
"npmGlobalTools": [
"@gitzone/npmts"
],
"npmGlobalTools": [],
"npmAccessLevel": "public"
},
"gitzone": {

18192
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,8 +5,9 @@
"description": "minimal and fast loading plugin for startup time measuring",
"main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts",
"type": "module",
"scripts": {
"test": "(tsrun test/test.ts)",
"test": "(tstest test/)",
"build": "(tsbuild --web)"
},
"repository": {
@ -23,16 +24,15 @@
},
"homepage": "https://gitlab.com/pushrocks/early#readme",
"devDependencies": {
"@gitzone/tsrun": "^1.2.12",
"@pushrocks/smartdelay": "^2.0.10",
"@pushrocks/tapbundle": "^3.2.9",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0"
"@gitzone/tsrun": "^1.2.31",
"@gitzone/tstest": "^1.0.69",
"@pushrocks/smartdelay": "^2.0.13",
"@pushrocks/tapbundle": "^5.0.2"
},
"dependencies": {
"@gitzone/tsbuild": "^2.1.24",
"@gitzone/tsbuild": "^2.1.60",
"@pushrocks/consolecolor": "^2.0.1",
"@pushrocks/smartpromise": "^3.0.6"
"@pushrocks/smartpromise": "^3.1.7"
},
"files": [
"ts/**/*",

View File

@ -1,8 +1,10 @@
import { expect, tap } from '@pushrocks/tapbundle';
import { expect, expectAsync, tap } from '@pushrocks/tapbundle';
import * as smartdelay from '@pushrocks/smartdelay';
import early = require('../ts/index');
import * as early from '../ts/index.js'
tap.test('.start()', async () => {
process.env.CLI_CALL_MODULENAME = 'early';
early.start('early');
await smartdelay.delayFor(2000);
});
@ -17,7 +19,7 @@ tap.test('hrTime Measurement', async () => {
await smartdelay.delayFor(1000);
let measuredTime = earlyHr.stop();
console.log(measuredTime);
return expect(measuredTime.milliSeconds).to.be.greaterThan(999);
return expect(measuredTime.milliSeconds).toBeGreaterThan(999);
});
tap.start();

View File

@ -1,6 +1,6 @@
import * as consolecolor from '@pushrocks/consolecolor';
import * as smartpromise from '@pushrocks/smartpromise';
import { HrtMeasurement } from './early.hrtMeasurement';
import { HrtMeasurement } from './early.hrtMeasurement.js';
export { HrtMeasurement };

7
tsconfig.json Normal file
View File

@ -0,0 +1,7 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "ES2022",
"moduleResolution": "nodenext"
}
}

View File

@ -1,17 +0,0 @@
{
"extends": ["tslint:latest", "tslint-config-prettier"],
"rules": {
"semicolon": [true, "always"],
"no-console": false,
"ordered-imports": false,
"object-literal-sort-keys": false,
"member-ordering": {
"options":{
"order": [
"static-method"
]
}
}
},
"defaultSeverity": "warning"
}