fix(core): update

This commit is contained in:
Philipp Kunz 2022-03-14 15:24:16 +01:00
parent 87454d41da
commit e81c37e60a
4 changed files with 23 additions and 6 deletions

View File

@ -123,9 +123,9 @@ trigger:
pages:
stage: metadata
script:
- npmci node install lts
- npmci command npm install -g @gitzone/tsdoc
- npmci node install stable
- npmci npm prepare
- npmci command npm install -g @gitzone/tsdoc
- npmci npm install
- npmci command tsdoc
tags:

View File

@ -47,4 +47,4 @@
"browserslist": [
"last 1 chrome versions"
]
}
}

View File

@ -1,4 +1,4 @@
import * as plugins from './smartpath.plugins.js'
import * as plugins from './smartpath.plugins.js';
export type TPathType = 'url' | 'local';
/**
@ -18,12 +18,12 @@ export const type = (pathStringArg: string): TPathType => {
*/
export const dirnameFromImportMetaUrl = (importMetaUrlArg: string) => {
return plugins.path.dirname(plugins.url.fileURLToPath(importMetaUrlArg));
}
};
/**
* returns homedir as absolute path
* @param pathArgument if a pathargument is given, ~ is being replaced with the homedir
* @returns
* @returns
*/
export const home = (pathArgument?: string) => {
if (pathArgument) {

17
tslint.json Normal file
View File

@ -0,0 +1,17 @@
{
"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"
}