@tsed/normalize-path 8.0.0-alpha.5 → 8.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -6
- package/lib/cjs/index.js +0 -8
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/normalizePath.js +0 -18
- package/lib/cjs/normalizePath.js.map +0 -1
- package/lib/cjs/package.json +0 -3
- package/lib/esm/package.json +0 -3
- package/lib/types-esm/index.d.ts +0 -4
- package/lib/types-esm/normalizePath.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/normalize-path",
|
|
3
3
|
"description": "Utils to normalize path",
|
|
4
|
-
"type": "
|
|
5
|
-
"version": "8.0.0-alpha.
|
|
4
|
+
"type": "module",
|
|
5
|
+
"version": "8.0.0-alpha.6",
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
|
-
"main": "./lib/
|
|
7
|
+
"main": "./lib/esm/index.js",
|
|
8
8
|
"module": "./lib/esm/index.js",
|
|
9
9
|
"typings": "./lib/types/index.d.ts",
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
12
|
"types": "./lib/types/index.d.ts",
|
|
13
13
|
"import": "./lib/esm/index.js",
|
|
14
|
-
"require": "./lib/cjs/index.js",
|
|
15
14
|
"default": "./lib/cjs/index.js"
|
|
16
15
|
}
|
|
17
16
|
},
|
|
@@ -27,8 +26,8 @@
|
|
|
27
26
|
"tslib": "2.6.1"
|
|
28
27
|
},
|
|
29
28
|
"devDependencies": {
|
|
30
|
-
"@tsed/barrels": "8.0.0-alpha.
|
|
31
|
-
"@tsed/typescript": "8.0.0-alpha.
|
|
29
|
+
"@tsed/barrels": "8.0.0-alpha.6",
|
|
30
|
+
"@tsed/typescript": "8.0.0-alpha.6",
|
|
32
31
|
"@types/normalize-path": "^3.0.2",
|
|
33
32
|
"eslint": "^8.57.0",
|
|
34
33
|
"typescript": "4.9.5",
|
package/lib/cjs/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
/**
|
|
5
|
-
* @file Automatically generated by @tsed/barrels.
|
|
6
|
-
*/
|
|
7
|
-
tslib_1.__exportStar(require("./normalizePath.js"), exports);
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
package/lib/cjs/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,6DAAmC"}
|
package/lib/cjs/normalizePath.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.normalizePath = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const normalize_path_1 = tslib_1.__importDefault(require("normalize-path"));
|
|
6
|
-
const path_1 = require("path");
|
|
7
|
-
function normalizePath(item, ...paths) {
|
|
8
|
-
if (typeof item === "string") {
|
|
9
|
-
const path = (0, path_1.join)(item, ...paths);
|
|
10
|
-
return (0, normalize_path_1.default)(path);
|
|
11
|
-
}
|
|
12
|
-
if (Array.isArray(item)) {
|
|
13
|
-
return item.map((item) => normalizePath(item));
|
|
14
|
-
}
|
|
15
|
-
return item;
|
|
16
|
-
}
|
|
17
|
-
exports.normalizePath = normalizePath;
|
|
18
|
-
//# sourceMappingURL=normalizePath.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalizePath.js","sourceRoot":"","sources":["../../src/normalizePath.ts"],"names":[],"mappings":";;;;AAAA,4EAAqC;AACrC,+BAA0B;AAI1B,SAAgB,aAAa,CAAC,IAAS,EAAE,GAAG,KAAe;IACzD,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,MAAM,IAAI,GAAG,IAAA,WAAI,EAAC,IAAI,EAAE,GAAG,KAAK,CAAC,CAAC;QAClC,OAAO,IAAA,wBAAO,EAAC,IAAI,CAAC,CAAC;KACtB;IAED,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACvB,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;KACrD;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAXD,sCAWC"}
|
package/lib/cjs/package.json
DELETED
package/lib/esm/package.json
DELETED
package/lib/types-esm/index.d.ts
DELETED