@storm-software/projen 0.9.53 → 0.9.54
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/dist/{chunk-PWRTPR5P.js → chunk-6TMYNO5K.js} +14 -9
- package/dist/{chunk-MTVIRC7N.mjs → chunk-FCVTETPK.mjs} +14 -9
- package/dist/generators.js +2 -2
- package/dist/generators.mjs +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +1 -1
- package/dist/src/generators/init/generator.d.mts +2 -2
- package/dist/src/generators/init/generator.d.ts +2 -2
- package/dist/src/generators/init/generator.js +2 -2
- package/dist/src/generators/init/generator.mjs +1 -1
- package/package.json +1 -1
|
@@ -228,7 +228,7 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
|
|
|
228
228
|
"staging",
|
|
229
229
|
"production"
|
|
230
230
|
]).default("production").describe("The current runtime environment mode for the package"),
|
|
231
|
-
workspaceRoot: _zod2.default.string().trim().
|
|
231
|
+
workspaceRoot: _zod2.default.string().trim().describe("The root directory of the workspace"),
|
|
232
232
|
externalPackagePatterns: _zod2.default.array(_zod2.default.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
|
|
233
233
|
skipCache: _zod2.default.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
234
234
|
directories: WorkspaceDirectoryConfigSchema,
|
|
@@ -797,7 +797,7 @@ var getConfigFile = /* @__PURE__ */ _chunk3HFBGYEUjs.__name.call(void 0, async (
|
|
|
797
797
|
}
|
|
798
798
|
}
|
|
799
799
|
}
|
|
800
|
-
if (!config) {
|
|
800
|
+
if (!config || Object.keys(config).length === 0) {
|
|
801
801
|
return void 0;
|
|
802
802
|
}
|
|
803
803
|
config.configFile = configFile;
|
|
@@ -1274,7 +1274,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunk3HFBGYEUjs.__name.call(vo
|
|
|
1274
1274
|
// ../config-tools/src/create-storm-config.ts
|
|
1275
1275
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
1276
1276
|
var _static_cache = void 0;
|
|
1277
|
-
var createStormWorkspaceConfig = /* @__PURE__ */ _chunk3HFBGYEUjs.__name.call(void 0, async (extensionName, schema, workspaceRoot3, skipLogs = false) => {
|
|
1277
|
+
var createStormWorkspaceConfig = /* @__PURE__ */ _chunk3HFBGYEUjs.__name.call(void 0, async (extensionName, schema, workspaceRoot3, skipLogs = false, useDefault = true) => {
|
|
1278
1278
|
let result;
|
|
1279
1279
|
if (!_optionalChain([_static_cache, 'optionalAccess', _57 => _57.data]) || !_optionalChain([_static_cache, 'optionalAccess', _58 => _58.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
1280
1280
|
let _workspaceRoot = workspaceRoot3;
|
|
@@ -1282,13 +1282,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ _chunk3HFBGYEUjs.__name.call(vo
|
|
|
1282
1282
|
_workspaceRoot = findWorkspaceRoot();
|
|
1283
1283
|
}
|
|
1284
1284
|
const configEnv = getConfigEnv();
|
|
1285
|
-
const defaultConfig = await getDefaultConfig(_workspaceRoot);
|
|
1286
1285
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
1287
|
-
if (!configFile
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1286
|
+
if (!configFile) {
|
|
1287
|
+
if (!skipLogs) {
|
|
1288
|
+
writeWarning("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
|
|
1289
|
+
logLevel: "all"
|
|
1290
|
+
});
|
|
1291
|
+
}
|
|
1292
|
+
if (useDefault === false) {
|
|
1293
|
+
return void 0;
|
|
1294
|
+
}
|
|
1291
1295
|
}
|
|
1296
|
+
const defaultConfig = await getDefaultConfig(_workspaceRoot);
|
|
1292
1297
|
result = await stormWorkspaceConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
|
|
1293
1298
|
result.workspaceRoot ??= _workspaceRoot;
|
|
1294
1299
|
} else {
|
|
@@ -1321,7 +1326,7 @@ var createConfigExtension = /* @__PURE__ */ _chunk3HFBGYEUjs.__name.call(void 0,
|
|
|
1321
1326
|
return extension;
|
|
1322
1327
|
}, "createConfigExtension");
|
|
1323
1328
|
var loadStormWorkspaceConfig = /* @__PURE__ */ _chunk3HFBGYEUjs.__name.call(void 0, async (workspaceRoot3, skipLogs = false) => {
|
|
1324
|
-
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot3, skipLogs);
|
|
1329
|
+
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot3, skipLogs, true);
|
|
1325
1330
|
setConfigEnv(config);
|
|
1326
1331
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
1327
1332
|
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
|
@@ -229,7 +229,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
229
229
|
"staging",
|
|
230
230
|
"production"
|
|
231
231
|
]).default("production").describe("The current runtime environment mode for the package"),
|
|
232
|
-
workspaceRoot: z.string().trim().
|
|
232
|
+
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
233
233
|
externalPackagePatterns: z.array(z.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
|
|
234
234
|
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
235
235
|
directories: WorkspaceDirectoryConfigSchema,
|
|
@@ -798,7 +798,7 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames
|
|
|
798
798
|
}
|
|
799
799
|
}
|
|
800
800
|
}
|
|
801
|
-
if (!config) {
|
|
801
|
+
if (!config || Object.keys(config).length === 0) {
|
|
802
802
|
return void 0;
|
|
803
803
|
}
|
|
804
804
|
config.configFile = configFile;
|
|
@@ -1275,7 +1275,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
|
|
|
1275
1275
|
// ../config-tools/src/create-storm-config.ts
|
|
1276
1276
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
1277
1277
|
var _static_cache = void 0;
|
|
1278
|
-
var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot3, skipLogs = false) => {
|
|
1278
|
+
var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot3, skipLogs = false, useDefault = true) => {
|
|
1279
1279
|
let result;
|
|
1280
1280
|
if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
|
|
1281
1281
|
let _workspaceRoot = workspaceRoot3;
|
|
@@ -1283,13 +1283,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, sc
|
|
|
1283
1283
|
_workspaceRoot = findWorkspaceRoot();
|
|
1284
1284
|
}
|
|
1285
1285
|
const configEnv = getConfigEnv();
|
|
1286
|
-
const defaultConfig = await getDefaultConfig(_workspaceRoot);
|
|
1287
1286
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
1288
|
-
if (!configFile
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1287
|
+
if (!configFile) {
|
|
1288
|
+
if (!skipLogs) {
|
|
1289
|
+
writeWarning("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
|
|
1290
|
+
logLevel: "all"
|
|
1291
|
+
});
|
|
1292
|
+
}
|
|
1293
|
+
if (useDefault === false) {
|
|
1294
|
+
return void 0;
|
|
1295
|
+
}
|
|
1292
1296
|
}
|
|
1297
|
+
const defaultConfig = await getDefaultConfig(_workspaceRoot);
|
|
1293
1298
|
result = await stormWorkspaceConfigSchema.parseAsync(defu2(configEnv, configFile, defaultConfig));
|
|
1294
1299
|
result.workspaceRoot ??= _workspaceRoot;
|
|
1295
1300
|
} else {
|
|
@@ -1322,7 +1327,7 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
|
|
|
1322
1327
|
return extension;
|
|
1323
1328
|
}, "createConfigExtension");
|
|
1324
1329
|
var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot3, skipLogs = false) => {
|
|
1325
|
-
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot3, skipLogs);
|
|
1330
|
+
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot3, skipLogs, true);
|
|
1326
1331
|
setConfigEnv(config);
|
|
1327
1332
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
1328
1333
|
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
package/dist/generators.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-FC4VZESQ.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk6TMYNO5Kjs = require('./chunk-6TMYNO5K.js');
|
|
5
5
|
require('./chunk-RMDWM2XC.js');
|
|
6
6
|
require('./chunk-3HFBGYEU.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.initGeneratorFn =
|
|
9
|
+
exports.initGeneratorFn = _chunk6TMYNO5Kjs.initGeneratorFn;
|
package/dist/generators.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkGBSU3GE2js = require('./chunk-GBSU3GE2.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk6TMYNO5Kjs = require('./chunk-6TMYNO5K.js');
|
|
8
8
|
require('./chunk-RMDWM2XC.js');
|
|
9
9
|
|
|
10
10
|
|
|
@@ -16,10 +16,10 @@ var _chunk3HFBGYEUjs = require('./chunk-3HFBGYEU.js');
|
|
|
16
16
|
// index.ts
|
|
17
17
|
var index_exports = {};
|
|
18
18
|
_chunk3HFBGYEUjs.__export.call(void 0, index_exports, {
|
|
19
|
-
initGeneratorFn: () =>
|
|
19
|
+
initGeneratorFn: () => _chunk6TMYNO5Kjs.initGeneratorFn
|
|
20
20
|
});
|
|
21
21
|
_chunk3HFBGYEUjs.init_cjs_shims.call(void 0, );
|
|
22
22
|
_chunk3HFBGYEUjs.__reExport.call(void 0, index_exports, _chunk3HFBGYEUjs.__toESM.call(void 0, _chunkGBSU3GE2js.require_components.call(void 0, )));
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
exports.initGeneratorFn =
|
|
25
|
+
exports.initGeneratorFn = _chunk6TMYNO5Kjs.initGeneratorFn;
|
package/dist/index.mjs
CHANGED
|
@@ -75,7 +75,7 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
|
|
|
75
75
|
url?: string | undefined;
|
|
76
76
|
}>;
|
|
77
77
|
mode: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
78
|
-
workspaceRoot: z.
|
|
78
|
+
workspaceRoot: z.ZodString;
|
|
79
79
|
externalPackagePatterns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
80
80
|
skipCache: z.ZodDefault<z.ZodBoolean>;
|
|
81
81
|
directories: z.ZodObject<{
|
|
@@ -1072,6 +1072,7 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
|
|
|
1072
1072
|
codesFile?: string | undefined;
|
|
1073
1073
|
url?: string | undefined;
|
|
1074
1074
|
};
|
|
1075
|
+
workspaceRoot: string;
|
|
1075
1076
|
directories: {
|
|
1076
1077
|
cache?: string | undefined;
|
|
1077
1078
|
data?: string | undefined;
|
|
@@ -1242,7 +1243,6 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
|
|
|
1242
1243
|
preid?: string | undefined;
|
|
1243
1244
|
owner?: string | undefined;
|
|
1244
1245
|
mode?: "development" | "staging" | "production" | undefined;
|
|
1245
|
-
workspaceRoot?: string | undefined;
|
|
1246
1246
|
externalPackagePatterns?: string[] | undefined;
|
|
1247
1247
|
skipCache?: boolean | undefined;
|
|
1248
1248
|
packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
|
|
@@ -75,7 +75,7 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
|
|
|
75
75
|
url?: string | undefined;
|
|
76
76
|
}>;
|
|
77
77
|
mode: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
78
|
-
workspaceRoot: z.
|
|
78
|
+
workspaceRoot: z.ZodString;
|
|
79
79
|
externalPackagePatterns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
80
80
|
skipCache: z.ZodDefault<z.ZodBoolean>;
|
|
81
81
|
directories: z.ZodObject<{
|
|
@@ -1072,6 +1072,7 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
|
|
|
1072
1072
|
codesFile?: string | undefined;
|
|
1073
1073
|
url?: string | undefined;
|
|
1074
1074
|
};
|
|
1075
|
+
workspaceRoot: string;
|
|
1075
1076
|
directories: {
|
|
1076
1077
|
cache?: string | undefined;
|
|
1077
1078
|
data?: string | undefined;
|
|
@@ -1242,7 +1243,6 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
|
|
|
1242
1243
|
preid?: string | undefined;
|
|
1243
1244
|
owner?: string | undefined;
|
|
1244
1245
|
mode?: "development" | "staging" | "production" | undefined;
|
|
1245
|
-
workspaceRoot?: string | undefined;
|
|
1246
1246
|
externalPackagePatterns?: string[] | undefined;
|
|
1247
1247
|
skipCache?: boolean | undefined;
|
|
1248
1248
|
packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk6TMYNO5Kjs = require('../../../chunk-6TMYNO5K.js');
|
|
5
5
|
require('../../../chunk-RMDWM2XC.js');
|
|
6
6
|
require('../../../chunk-3HFBGYEU.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.default =
|
|
10
|
+
exports.default = _chunk6TMYNO5Kjs.generator_default; exports.initGeneratorFn = _chunk6TMYNO5Kjs.initGeneratorFn;
|