@storm-software/config-tools 1.1.1 → 1.1.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,18 @@
1
+ ## [1.1.2](https://github.com/storm-software/storm-ops/compare/config-tools-v1.1.1...config-tools-v1.1.2) (2023-12-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **config-tools:** Resolved issue with updated `createStormConfig` schema ([cbc6941](https://github.com/storm-software/storm-ops/commit/cbc69413e1ebbf5521c638401a34c604f25c2854))
7
+ * **config-tools:** Updated the config schema's default values ([42fc718](https://github.com/storm-software/storm-ops/commit/42fc7183f2725e435d006897fb349c02f7454ff9))
8
+
9
+ ## [1.1.1](https://github.com/storm-software/storm-ops/compare/config-tools-v1.1.0...config-tools-v1.1.1) (2023-12-02)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **workspace-tools:** Added new executors to `additionalEntryPoints` configuration ([f7289c7](https://github.com/storm-software/storm-ops/commit/f7289c7b21eba99e0a70147767b1f28fea242854))
15
+
1
16
  # [1.1.0](https://github.com/storm-software/storm-ops/compare/config-tools-v1.0.0...config-tools-v1.1.0) (2023-12-02)
2
17
 
3
18
 
package/README.md CHANGED
@@ -16,7 +16,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
16
16
 
17
17
  <h3 align="center">💻 Visit <a href="https://stormsoftware.org" target="_blank">stormsoftware.org</a> to stay up to date with this developer</h3><br />
18
18
 
19
- [![Version](https://img.shields.io/badge/version-0.0.1-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
19
+ [![Version](https://img.shields.io/badge/version-1.1.1-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
20
20
  [![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)
21
21
 
22
22
  <h3 align="center" bold="true">⚠️ <b>Attention</b> ⚠️ This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be availible through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.</h3><br />
package/index.js CHANGED
@@ -202,13 +202,13 @@ var StormConfigSchema = z.object({
202
202
  worker: z.string().trim().default("stormie-bot").describe(
203
203
  "The worker of the package (this is the bot that will be used to perform various tasks)"
204
204
  ),
205
- env: z.enum(["development", "staging", "production"]).default("development").describe("The current runtime environment of the package"),
206
- ci: z.boolean().default(false).describe(
205
+ env: z.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
206
+ ci: z.boolean().default(true).describe(
207
207
  "An indicator specifying if the current environment is a CI environment"
208
208
  ),
209
209
  workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
210
210
  packageDirectory: z.string().trim().optional().describe("The root directory of the package"),
211
- buildDirectory: z.string().trim().optional().describe("The build directory for the workspace"),
211
+ buildDirectory: z.string().trim().default("dist").describe("The build directory for the workspace"),
212
212
  runtimeDirectory: z.string().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
213
213
  runtimeVersion: z.string().trim().regex(
214
214
  /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
@@ -233,7 +233,7 @@ var wrapped_StormConfig = wrap(StormConfigSchema);
233
233
  // packages/config-tools/src/create-storm-config.ts
234
234
  var _extension_cache = /* @__PURE__ */ new WeakMap();
235
235
  var _static_cache2 = void 0;
236
- var createStormConfig = async (schema, moduleName) => {
236
+ var createStormConfig = async (extensionName, schema) => {
237
237
  let result;
238
238
  if (!_static_cache2) {
239
239
  let config = getConfigEnv();
@@ -241,14 +241,14 @@ var createStormConfig = async (schema, moduleName) => {
241
241
  } else {
242
242
  result = _static_cache2;
243
243
  }
244
- if (schema && moduleName) {
245
- const moduleConfig = await createConfigExtension(schema, moduleName);
246
- result.modules[moduleName] = moduleConfig;
244
+ if (schema && extensionName) {
245
+ const moduleConfig = await createConfigExtension(extensionName, schema);
246
+ result.modules[extensionName] = moduleConfig;
247
247
  }
248
248
  _static_cache2 = result;
249
249
  return result;
250
250
  };
251
- var createConfigExtension = async (schema, extensionName) => {
251
+ var createConfigExtension = async (extensionName, schema) => {
252
252
  const extension_cache_key = { extensionName };
253
253
  if (_extension_cache.has(extension_cache_key)) {
254
254
  return _extension_cache.get(extension_cache_key);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/config-tools",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "private": false,
5
5
  "description": "⚡The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",
6
6
  "repository": {