@storm-software/linting-tools 1.48.2 → 1.49.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 1.49.0 (2024-05-29)
2
+
3
+
4
+ ### 🚀 Features
5
+
6
+ - **cloudflare-tools:** Update worker generator to add hono depenendency ([946a9e59](https://github.com/storm-software/storm-ops/commit/946a9e59))
7
+
8
+
9
+ ### ❤️ Thank You
10
+
11
+ - Patrick Sullivan
12
+
1
13
  ## 1.48.2 (2024-05-27)
2
14
 
3
15
 
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-1.48.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
24
+ [![Version](https://img.shields.io/badge/version-1.48.2-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
25
25
  [![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 docusaurus](https://img.shields.io/badge/documented_with-docusaurus-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://docusaurus.io/)&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)
26
26
 
27
27
  > [!IMPORTANT]
package/bin/lint.js CHANGED
@@ -356045,6 +356045,7 @@ var StormConfigSchema = z2.object({
356045
356045
  ]).default("debug").describe(
356046
356046
  "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
356047
356047
  ),
356048
+ cloudflareAccountId: z2.string().trim().toLowerCase().length(32).regex(/^([0-9a-fA-F]{32})$/i).nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
356048
356049
  configFile: z2.string().trim().nullable().default(null).describe(
356049
356050
  "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
356050
356051
  ),
@@ -356521,6 +356522,7 @@ var getConfigEnv = () => {
356521
356522
  branch: process.env[`${prefix}BRANCH`],
356522
356523
  preid: process.env[`${prefix}PRE_ID`],
356523
356524
  externalPackagePatterns: process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`] ? JSON.parse(process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`]) : [],
356525
+ cloudflareAccountId: process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`] ? process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`] : process.env.CLOUDFLARE_ACCOUNT_ID ? process.env.CLOUDFLARE_ACCOUNT_ID : process.env.STORM_BOT_CLOUDFLARE_ACCOUNT,
356524
356526
  logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
356525
356527
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
356526
356528
  ) ? getLogLevelLabel(
@@ -356727,6 +356729,15 @@ var setConfigEnv = (config) => {
356727
356729
  config.externalPackagePatterns
356728
356730
  );
356729
356731
  }
356732
+ if (config.cloudflareAccountId) {
356733
+ process.env.STORM_BOT_CLOUDFLARE_ACCOUNT ??= String(
356734
+ config.cloudflareAccountId
356735
+ );
356736
+ process.env.CLOUDFLARE_ACCOUNT_ID ??= String(config.cloudflareAccountId);
356737
+ process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`] = String(
356738
+ config.cloudflareAccountId
356739
+ );
356740
+ }
356730
356741
  if (config.logLevel) {
356731
356742
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
356732
356743
  process.env.LOG_LEVEL = String(config.logLevel);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/linting-tools",
3
- "version": "1.48.2",
3
+ "version": "1.49.0",
4
4
  "private": false,
5
5
  "description": "⚡ A package containing various linting tools used to validate syntax, enforce design standards, and format code in a Storm workspace.",
6
6
  "keywords": [
package/src/cli/index.js CHANGED
@@ -291905,6 +291905,7 @@ var StormConfigSchema = z.object({
291905
291905
  ]).default("debug").describe(
291906
291906
  "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
291907
291907
  ),
291908
+ cloudflareAccountId: z.string().trim().toLowerCase().length(32).regex(/^([0-9a-fA-F]{32})$/i).nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
291908
291909
  configFile: z.string().trim().nullable().default(null).describe(
291909
291910
  "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
291910
291911
  ),