fix(core): update

This commit is contained in:
Philipp Kunz 2022-03-14 21:17:36 +01:00
parent e36af800a3
commit 3b8ac18a6c
14 changed files with 723 additions and 565 deletions

4
cli.child.ts Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env node
process.env.CLI_CALL = 'true';
import * as cliTool from './ts/index.js';
cliTool.runCli();

2
cli.js
View File

@ -1,4 +1,4 @@
#!/usr/bin/env node
process.env.CLI_CALL = 'true';
const cliTool = require('./dist_ts/index');
const cliTool = await import('./dist_ts/index.js');
cliTool.runCli();

View File

@ -1,5 +1,5 @@
#!/usr/bin/env node
process.env.CLI_CALL = 'true';
require('@gitzone/tsrun');
const cliTool = require('./ts/index');
cliTool.runCli();
import * as tsrun from '@gitzone/tsrun';
tsrun.runPath('./cli.child.js', import.meta.url);

1214
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,6 +5,7 @@
"description": "watch typescript projects during development",
"main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts",
"type": "module",
"author": "Lossless GmbH",
"license": "MIT",
"bin": {
@ -15,15 +16,13 @@
"build": "(tsbuild --web)"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.29",
"@gitzone/tstest": "^1.0.64",
"@pushrocks/tapbundle": "^4.0.8",
"@types/node": "^17.0.21",
"tslint": "^6.1.2",
"tslint-config-prettier": "^1.18.0"
"@gitzone/tsbuild": "^2.1.49",
"@gitzone/tstest": "^1.0.67",
"@pushrocks/tapbundle": "^5.0.2",
"@types/node": "^17.0.21"
},
"dependencies": {
"@gitzone/tsrun": "^1.2.18",
"@gitzone/tsrun": "^1.2.31",
"@pushrocks/early": "^3.0.3",
"@pushrocks/lik": "^5.0.4",
"@pushrocks/smartchok": "^1.0.23",

View File

@ -1,6 +1,6 @@
// tslint:disable-next-line: no-implicit-dependencies
import { expect, expectAsync, tap } from '@pushrocks/tapbundle';
import * as tswatch from '../ts/index';
import * as tswatch from '../ts/index.js';
let testTsWatchInstance: tswatch.TsWatch;

View File

@ -1,5 +1,5 @@
import * as early from '@pushrocks/early';
early.start('tswatch');
export * from './tswatch.classes.tswatch';
export * from './tswatch.cli';
export * from './tswatch.classes.tswatch.js';
export * from './tswatch.cli.js';
early.stop();

View File

@ -1 +1 @@
export * from './interfaces.watchmodes';
export * from './interfaces.watchmodes.js';

View File

@ -1,8 +1,8 @@
import * as plugins from './tswatch.plugins';
import * as paths from './tswatch.paths';
import * as interfaces from './interfaces';
import * as plugins from './tswatch.plugins.js';
import * as paths from './tswatch.paths.js';
import * as interfaces from './interfaces/index.js';
import { Watcher } from './tswatch.classes.watcher';
import { Watcher } from './tswatch.classes.watcher.js';
export class TsWatch {
public watchmode: interfaces.TWatchModes;

View File

@ -1,5 +1,5 @@
import * as plugins from './tswatch.plugins';
import { logger } from './tswatch.logging';
import * as plugins from './tswatch.plugins.js';
import { logger } from './tswatch.logging.js';
export type TCommandFunction = () => Promise<void>;

View File

@ -1,8 +1,8 @@
import * as plugins from './tswatch.plugins';
import * as paths from './tswatch.paths';
import { logger } from './tswatch.logging';
import * as plugins from './tswatch.plugins.js';
import * as paths from './tswatch.paths.js';
import { logger } from './tswatch.logging.js';
import { TsWatch } from './tswatch.classes.tswatch';
import { TsWatch } from './tswatch.classes.tswatch.js';
const tswatchCli = new plugins.smartcli.Smartcli();

View File

@ -1,4 +1,4 @@
import * as plugins from './tswatch.plugins';
import * as plugins from './tswatch.plugins.js';
export const logger = new plugins.smartlog.Smartlog({
logContext: {

View File

@ -1,3 +1,3 @@
import * as plugins from './tswatch.plugins';
import * as plugins from './tswatch.plugins.js';
export const cwd = process.cwd();

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