@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 CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.8.3 (2025-02-01)
2
+
3
+ ### Miscellaneous
4
+
5
+ - **monorepo:** Regenerate README markdown files ([3874ee4d](https://github.com/storm-software/storm-ops/commit/3874ee4d))
6
+
1
7
  ## 0.8.2 (2025-01-29)
2
8
 
3
9
  ### Miscellaneous
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
- [![Version](https://img.shields.io/badge/version-0.8.1-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.8.2-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
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;