@storm-software/projen 0.8.2 → 0.8.3
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/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/dist/chunk-3HI6WK3M.js +137 -0
- package/dist/{chunk-MD7B7GGE.mjs → chunk-5NY5JR5C.mjs} +205 -148
- package/dist/chunk-EEZAWKQ5.mjs +6 -0
- package/dist/chunk-FVKYD24T.js +15 -0
- package/dist/{chunk-JNHMEBZJ.js → chunk-HQUS2SNL.js} +488 -431
- package/dist/chunk-LYHBU3HI.mjs +15 -0
- package/dist/chunk-RDD7JUBK.js +6 -0
- package/dist/chunk-VHOQB7WG.mjs +63 -0
- package/dist/chunk-VPWBNTCH.mjs +137 -0
- package/dist/chunk-ZH7QZ5EF.js +56 -0
- package/dist/generators.js +5 -4
- package/dist/generators.mjs +4 -3
- package/dist/index.js +21 -4
- package/dist/index.mjs +20 -3
- package/dist/src/components/index.d.mts +2 -0
- package/dist/src/components/index.d.ts +2 -0
- package/dist/src/components/index.js +5 -0
- package/dist/src/components/index.mjs +5 -0
- package/dist/src/components/nx-workspace.d.mts +112 -0
- package/dist/src/components/nx-workspace.d.ts +112 -0
- package/dist/src/components/nx-workspace.js +747 -0
- package/dist/src/components/nx-workspace.mjs +747 -0
- package/dist/src/generators/init/generator.js +4 -3
- package/dist/src/generators/init/generator.mjs +3 -2
- package/dist/tsup.config.js +5 -2
- package/dist/tsup.config.mjs +5 -2
- package/package.json +16 -15
- package/dist/chunk-23KFTIT2.mjs +0 -0
- package/dist/chunk-3GQAWCBQ.js +0 -13
- package/dist/chunk-N2YKXZ5R.js +0 -1
- package/dist/chunk-XUV4U54K.mjs +0 -21
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkZH7QZ5EFjs = require('./chunk-ZH7QZ5EF.js');
|
|
5
|
+
|
|
6
|
+
// ../config-tools/src/utilities/correct-paths.ts
|
|
7
|
+
_chunkZH7QZ5EFjs.init_cjs_shims.call(void 0, );
|
|
8
|
+
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
9
|
+
function normalizeWindowsPath(input = "") {
|
|
10
|
+
if (!input) {
|
|
11
|
+
return input;
|
|
12
|
+
}
|
|
13
|
+
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
|
|
14
|
+
}
|
|
15
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, normalizeWindowsPath, "normalizeWindowsPath");
|
|
16
|
+
var _UNC_REGEX = /^[/\\]{2}/;
|
|
17
|
+
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
18
|
+
var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
19
|
+
var correctPaths = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, function(path) {
|
|
20
|
+
if (!path || path.length === 0) {
|
|
21
|
+
return ".";
|
|
22
|
+
}
|
|
23
|
+
path = normalizeWindowsPath(path);
|
|
24
|
+
const isUNCPath = path.match(_UNC_REGEX);
|
|
25
|
+
const isPathAbsolute = isAbsolute(path);
|
|
26
|
+
const trailingSeparator = path[path.length - 1] === "/";
|
|
27
|
+
path = normalizeString(path, !isPathAbsolute);
|
|
28
|
+
if (path.length === 0) {
|
|
29
|
+
if (isPathAbsolute) {
|
|
30
|
+
return "/";
|
|
31
|
+
}
|
|
32
|
+
return trailingSeparator ? "./" : ".";
|
|
33
|
+
}
|
|
34
|
+
if (trailingSeparator) {
|
|
35
|
+
path += "/";
|
|
36
|
+
}
|
|
37
|
+
if (_DRIVE_LETTER_RE.test(path)) {
|
|
38
|
+
path += "/";
|
|
39
|
+
}
|
|
40
|
+
if (isUNCPath) {
|
|
41
|
+
if (!isPathAbsolute) {
|
|
42
|
+
return `//./${path}`;
|
|
43
|
+
}
|
|
44
|
+
return `//${path}`;
|
|
45
|
+
}
|
|
46
|
+
return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
|
|
47
|
+
}, "correctPaths");
|
|
48
|
+
var joinPaths = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, function(...segments) {
|
|
49
|
+
let path = "";
|
|
50
|
+
for (const seg of segments) {
|
|
51
|
+
if (!seg) {
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
if (path.length > 0) {
|
|
55
|
+
const pathTrailing = path[path.length - 1] === "/";
|
|
56
|
+
const segLeading = seg[0] === "/";
|
|
57
|
+
const both = pathTrailing && segLeading;
|
|
58
|
+
if (both) {
|
|
59
|
+
path += seg.slice(1);
|
|
60
|
+
} else {
|
|
61
|
+
path += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
62
|
+
}
|
|
63
|
+
} else {
|
|
64
|
+
path += seg;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return correctPaths(path);
|
|
68
|
+
}, "joinPaths");
|
|
69
|
+
function normalizeString(path, allowAboveRoot) {
|
|
70
|
+
let res = "";
|
|
71
|
+
let lastSegmentLength = 0;
|
|
72
|
+
let lastSlash = -1;
|
|
73
|
+
let dots = 0;
|
|
74
|
+
let char = null;
|
|
75
|
+
for (let index = 0; index <= path.length; ++index) {
|
|
76
|
+
if (index < path.length) {
|
|
77
|
+
char = path[index];
|
|
78
|
+
} else if (char === "/") {
|
|
79
|
+
break;
|
|
80
|
+
} else {
|
|
81
|
+
char = "/";
|
|
82
|
+
}
|
|
83
|
+
if (char === "/") {
|
|
84
|
+
if (lastSlash === index - 1 || dots === 1) {
|
|
85
|
+
} else if (dots === 2) {
|
|
86
|
+
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
87
|
+
if (res.length > 2) {
|
|
88
|
+
const lastSlashIndex = res.lastIndexOf("/");
|
|
89
|
+
if (lastSlashIndex === -1) {
|
|
90
|
+
res = "";
|
|
91
|
+
lastSegmentLength = 0;
|
|
92
|
+
} else {
|
|
93
|
+
res = res.slice(0, lastSlashIndex);
|
|
94
|
+
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
95
|
+
}
|
|
96
|
+
lastSlash = index;
|
|
97
|
+
dots = 0;
|
|
98
|
+
continue;
|
|
99
|
+
} else if (res.length > 0) {
|
|
100
|
+
res = "";
|
|
101
|
+
lastSegmentLength = 0;
|
|
102
|
+
lastSlash = index;
|
|
103
|
+
dots = 0;
|
|
104
|
+
continue;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
if (allowAboveRoot) {
|
|
108
|
+
res += res.length > 0 ? "/.." : "..";
|
|
109
|
+
lastSegmentLength = 2;
|
|
110
|
+
}
|
|
111
|
+
} else {
|
|
112
|
+
if (res.length > 0) {
|
|
113
|
+
res += `/${path.slice(lastSlash + 1, index)}`;
|
|
114
|
+
} else {
|
|
115
|
+
res = path.slice(lastSlash + 1, index);
|
|
116
|
+
}
|
|
117
|
+
lastSegmentLength = index - lastSlash - 1;
|
|
118
|
+
}
|
|
119
|
+
lastSlash = index;
|
|
120
|
+
dots = 0;
|
|
121
|
+
} else if (char === "." && dots !== -1) {
|
|
122
|
+
++dots;
|
|
123
|
+
} else {
|
|
124
|
+
dots = -1;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
return res;
|
|
128
|
+
}
|
|
129
|
+
_chunkZH7QZ5EFjs.__name.call(void 0, normalizeString, "normalizeString");
|
|
130
|
+
var isAbsolute = /* @__PURE__ */ _chunkZH7QZ5EFjs.__name.call(void 0, function(p) {
|
|
131
|
+
return _IS_ABSOLUTE_RE.test(p);
|
|
132
|
+
}, "isAbsolute");
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
exports.correctPaths = correctPaths; exports.joinPaths = joinPaths;
|