Compare commits

..

2 Commits

Author SHA1 Message Date
96168fd870 5.0.4 2022-03-14 15:24:17 +01:00
e81c37e60a fix(core): update 2022-03-14 15:24:16 +01:00
5 changed files with 25 additions and 8 deletions

View File

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

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@pushrocks/smartpath", "name": "@pushrocks/smartpath",
"version": "5.0.3", "version": "5.0.4",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@pushrocks/smartpath", "name": "@pushrocks/smartpath",
"version": "5.0.3", "version": "5.0.4",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.48", "@gitzone/tsbuild": "^2.1.48",

View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartpath", "name": "@pushrocks/smartpath",
"version": "5.0.3", "version": "5.0.4",
"private": false, "private": false,
"description": "offers smart ways to handle paths", "description": "offers smart ways to handle paths",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",

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