@storm-software/workspace-tools 1.17.1 → 1.18.0

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.
@@ -24,6 +24,8 @@ __export(utils_exports, {
24
24
  eslintVersion: () => eslintVersion,
25
25
  findCacheDirectory: () => findCacheDirectory,
26
26
  findFileName: () => findFileName,
27
+ getFileBanner: () => getFileBanner,
28
+ getProjectConfigurations: () => getProjectConfigurations,
27
29
  getWorkspaceRoot: () => getWorkspaceRoot,
28
30
  lintStagedVersion: () => lintStagedVersion,
29
31
  nodeVersion: () => nodeVersion,
@@ -155,6 +157,42 @@ function findCacheDirectory({
155
157
  );
156
158
  }
157
159
 
160
+ // packages/workspace-tools/src/utils/get-file-banner.ts
161
+ var getFileBanner = (name, commentStart = "//") => {
162
+ let padding = "";
163
+ while (name.length + padding.length < 18) {
164
+ padding += " ";
165
+ }
166
+ return `
167
+
168
+ ${commentStart} -------------------------------------------------------------------
169
+ ${commentStart}
170
+ ${commentStart} ${padding}Storm Software
171
+ ${commentStart} \u26A1 ${process.env.STORM_NAMESPACE} - ${name}
172
+ ${commentStart}
173
+ ${commentStart} This code was released as part of the ${process.env.STORM_NAMESPACE} project. ${process.env.STORM_NAMESPACE}
174
+ ${commentStart} is maintained by Storm Software under the {${process.env.STORM_LICENSE ?? "Apache License 2.0"}, and is
175
+ ${commentStart} free for commercial and private use. For more information, please visit
176
+ ${commentStart} our licensing page.
177
+ ${commentStart}
178
+ ${commentStart} Website: ${process.env.STORM_HOMEPAGE ?? "https://stormsoftware.org"}
179
+ ${commentStart} Repository: ${process.env.STORM_REPOSITORY ?? "https://github.com/storm-software/storm-stack"}
180
+ ${commentStart} Documentation: https://stormsoftware.org/docs/storm-stack
181
+ ${commentStart} Contact: https://stormsoftware.org/contact
182
+ ${commentStart} Licensing: https://stormsoftware.org/licensing
183
+ ${commentStart}
184
+ ${commentStart} -------------------------------------------------------------------
185
+
186
+
187
+ `;
188
+ };
189
+
190
+ // packages/workspace-tools/src/utils/get-project-configurations.ts
191
+ var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
192
+ var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(
193
+ getWorkspaceRoot()
194
+ );
195
+
158
196
  // packages/workspace-tools/src/utils/versions.ts
159
197
  var tsupVersion = "^7.2.0";
160
198
  var prettierPackageJsonVersion = "2.4.6";
@@ -249,6 +287,8 @@ var WorkspaceStorage = class {
249
287
  eslintVersion,
250
288
  findCacheDirectory,
251
289
  findFileName,
290
+ getFileBanner,
291
+ getProjectConfigurations,
252
292
  getWorkspaceRoot,
253
293
  lintStagedVersion,
254
294
  nodeVersion,