@storm-software/config-tools 1.1.1 → 1.1.2
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 +7 -0
- package/README.md +1 -1
- package/index.js +8 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.1.1](https://github.com/storm-software/storm-ops/compare/config-tools-v1.1.0...config-tools-v1.1.1) (2023-12-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **workspace-tools:** Added new executors to `additionalEntryPoints` configuration ([f7289c7](https://github.com/storm-software/storm-ops/commit/f7289c7b21eba99e0a70147767b1f28fea242854))
|
|
7
|
+
|
|
1
8
|
# [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
9
|
|
|
3
10
|
|
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
|
-
[](https://prettier.io/)
|
|
20
20
|
[](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://docusaurus.io/) 
|
|
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("
|
|
206
|
-
ci: z.boolean().default(
|
|
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().
|
|
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 (
|
|
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 &&
|
|
245
|
-
const moduleConfig = await createConfigExtension(
|
|
246
|
-
result.modules[
|
|
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 (
|
|
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.
|
|
3
|
+
"version": "1.1.2",
|
|
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": {
|