Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
9fad6100f0 | |||
d0e3065d12 |
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartpath",
|
"name": "@pushrocks/smartpath",
|
||||||
"version": "5.0.0",
|
"version": "5.0.1",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@pushrocks/smartpath",
|
"name": "@pushrocks/smartpath",
|
||||||
"version": "5.0.0",
|
"version": "5.0.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.48",
|
"@gitzone/tsbuild": "^2.1.48",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartpath",
|
"name": "@pushrocks/smartpath",
|
||||||
"version": "5.0.0",
|
"version": "5.0.1",
|
||||||
"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",
|
||||||
|
@ -16,8 +16,8 @@ export const type = (pathStringArg: string): TPathType => {
|
|||||||
/**
|
/**
|
||||||
* gets the dirname from import.meta.url
|
* gets the dirname from import.meta.url
|
||||||
*/
|
*/
|
||||||
export const getDirnameFromImportMetaUrl = () => {
|
export const getDirnameFromImportMetaUrl = (importMetaUrlArg: string) => {
|
||||||
|
return plugins.path.dirname(plugins.url.fileURLToPath(importMetaUrlArg));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user