@storm-software/workspace-tools 1.21.12 → 1.21.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/workspace-tools",
3
- "version": "1.21.12",
3
+ "version": "1.21.14",
4
4
  "private": false,
5
5
  "description": "⚡ A Nx plugin package that contains various executors and generators used in a Storm workspaces.",
6
6
  "keywords": [
package/src/base/index.js CHANGED
@@ -11989,6 +11989,7 @@ var setConfigEnv = (config) => {
11989
11989
  process.env[`${prefix}BRANCH`] = config.branch;
11990
11990
  process.env[`${prefix}PRE_MAJOR`] = String(config.preMajor);
11991
11991
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
11992
+ process.env.LOG_LEVEL = String(config.logLevel);
11992
11993
  process.env.NX_VERBOSE_LOGGING = String(
11993
11994
  getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
11994
11995
  );
@@ -12121,7 +12122,9 @@ var withRunExecutor = (name, executorFn, executorOptions = {
12121
12122
  const startTime = Date.now();
12122
12123
  try {
12123
12124
  console.info(
12124
- chalk.bold.hex("#1fb2a6")(`\u26A1 Running the ${name} executor...`)
12125
+ chalk.bold.hex("#1fb2a6")(`\u26A1 Running the ${name} executor...
12126
+
12127
+ `)
12125
12128
  );
12126
12129
  if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
12127
12130
  throw new Error(
@@ -12156,8 +12159,9 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
12156
12159
  getLogLevel(config.logLevel) >= LogLevel.INFO && console.info(
12157
12160
  chalk.hex("#0ea5e9").italic(`
12158
12161
 
12159
- \u2699\uFE0F Executor schema options:
12160
- `, options)
12162
+ \u2699\uFE0F Executor schema options:
12163
+ `),
12164
+ options
12161
12165
  );
12162
12166
  const tokenized = applyWorkspaceTokens(
12163
12167
  options,
@@ -12207,7 +12211,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
12207
12211
  } catch (error) {
12208
12212
  console.error(
12209
12213
  chalk.bold.hex("#7d1a1a")(
12210
- `\u274C An error occurred while running the executor
12214
+ `\u274C An error occurred while running the executor
12211
12215
 
12212
12216
  `
12213
12217
  ),
@@ -12233,7 +12237,9 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
12233
12237
  const startTime = Date.now();
12234
12238
  try {
12235
12239
  console.info(
12236
- chalk2.bold.hex("#1fb2a6")(`\u26A1 Running the ${name} generator...`)
12240
+ chalk2.bold.hex("#1fb2a6")(`\u26A1 Running the ${name} generator...
12241
+
12242
+ `)
12237
12243
  );
12238
12244
  let config;
12239
12245
  if (!generatorOptions.skipReadingConfig) {
@@ -12257,7 +12263,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
12257
12263
  getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk2.dim(`Completed the applyDefaultOptions hook...`));
12258
12264
  }
12259
12265
  getLogLevel(config.logLevel) >= LogLevel.INFO && console.info(
12260
- chalk2.hex("#0ea5e9").italic("\n\n\u2699\uFE0F Generator schema options: \n"),
12266
+ chalk2.hex("#0ea5e9").italic("\n\n \u2699\uFE0F Generator schema options: \n"),
12261
12267
  options
12262
12268
  );
12263
12269
  const tokenized = applyWorkspaceTokens(
@@ -12298,7 +12304,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
12298
12304
  } catch (error) {
12299
12305
  console.error(
12300
12306
  chalk2.bold.hex("#7d1a1a")(
12301
- `\u274C An error occurred while running the generator
12307
+ `\u274C An error occurred while running the generator
12302
12308
 
12303
12309
  `
12304
12310
  ),
@@ -115129,6 +115129,7 @@ var setConfigEnv = (config) => {
115129
115129
  process.env[`${prefix}BRANCH`] = config.branch;
115130
115130
  process.env[`${prefix}PRE_MAJOR`] = String(config.preMajor);
115131
115131
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
115132
+ process.env.LOG_LEVEL = String(config.logLevel);
115132
115133
  process.env.NX_VERBOSE_LOGGING = String(
115133
115134
  getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
115134
115135
  );
@@ -115235,7 +115236,9 @@ var withRunExecutor = (name, executorFn, executorOptions = {
115235
115236
  const startTime = Date.now();
115236
115237
  try {
115237
115238
  console.info(
115238
- chalk.bold.hex("#1fb2a6")(`\u26A1 Running the ${name} executor...`)
115239
+ chalk.bold.hex("#1fb2a6")(`\u26A1 Running the ${name} executor...
115240
+
115241
+ `)
115239
115242
  );
115240
115243
  if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
115241
115244
  throw new Error(
@@ -115270,8 +115273,9 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
115270
115273
  getLogLevel(config.logLevel) >= LogLevel.INFO && console.info(
115271
115274
  chalk.hex("#0ea5e9").italic(`
115272
115275
 
115273
- \u2699\uFE0F Executor schema options:
115274
- `, options)
115276
+ \u2699\uFE0F Executor schema options:
115277
+ `),
115278
+ options
115275
115279
  );
115276
115280
  const tokenized = applyWorkspaceTokens(
115277
115281
  options,
@@ -115321,7 +115325,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
115321
115325
  } catch (error) {
115322
115326
  console.error(
115323
115327
  chalk.bold.hex("#7d1a1a")(
115324
- `\u274C An error occurred while running the executor
115328
+ `\u274C An error occurred while running the executor
115325
115329
 
115326
115330
  `
115327
115331
  ),
@@ -115844,6 +115848,10 @@ ${(0, import_fs3.readFileSync)(file, "utf-8")}`,
115844
115848
  )
115845
115849
  );
115846
115850
  }
115851
+ const stormEnv = Object.keys(options.env).filter((key) => key.startsWith("STORM_")).reduce((ret, key) => {
115852
+ ret[key] = options.env[key];
115853
+ return ret;
115854
+ }, {});
115847
115855
  options.plugins.push(await (0, import_decky.load)());
115848
115856
  options.plugins.push(
115849
115857
  (0, import_esbuild_decorators.esbuildDecorators)({
@@ -115851,9 +115859,11 @@ ${(0, import_fs3.readFileSync)(file, "utf-8")}`,
115851
115859
  cwd: workspaceRoot
115852
115860
  })
115853
115861
  );
115854
- options.plugins.push(environmentPlugin(options.env));
115862
+ options.plugins.push(environmentPlugin(stormEnv));
115855
115863
  const config = getConfig(context.root, projectRoot, sourceRoot, {
115856
115864
  ...options,
115865
+ define: stormEnv,
115866
+ env: stormEnv,
115857
115867
  dtsTsConfig: getNormalizedTsConfig(
115858
115868
  context.root,
115859
115869
  options.outputPath,
@@ -108893,6 +108893,7 @@ var setConfigEnv = (config) => {
108893
108893
  process.env[`${prefix}BRANCH`] = config.branch;
108894
108894
  process.env[`${prefix}PRE_MAJOR`] = String(config.preMajor);
108895
108895
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
108896
+ process.env.LOG_LEVEL = String(config.logLevel);
108896
108897
  process.env.NX_VERBOSE_LOGGING = String(
108897
108898
  getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
108898
108899
  );
@@ -108999,7 +109000,9 @@ var withRunExecutor = (name, executorFn, executorOptions = {
108999
109000
  const startTime = Date.now();
109000
109001
  try {
109001
109002
  console.info(
109002
- chalk.bold.hex("#1fb2a6")(`\u26A1 Running the ${name} executor...`)
109003
+ chalk.bold.hex("#1fb2a6")(`\u26A1 Running the ${name} executor...
109004
+
109005
+ `)
109003
109006
  );
109004
109007
  if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
109005
109008
  throw new Error(
@@ -109034,8 +109037,9 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
109034
109037
  getLogLevel(config.logLevel) >= LogLevel.INFO && console.info(
109035
109038
  chalk.hex("#0ea5e9").italic(`
109036
109039
 
109037
- \u2699\uFE0F Executor schema options:
109038
- `, options)
109040
+ \u2699\uFE0F Executor schema options:
109041
+ `),
109042
+ options
109039
109043
  );
109040
109044
  const tokenized = applyWorkspaceTokens(
109041
109045
  options,
@@ -109085,7 +109089,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
109085
109089
  } catch (error) {
109086
109090
  console.error(
109087
109091
  chalk.bold.hex("#7d1a1a")(
109088
- `\u274C An error occurred while running the executor
109092
+ `\u274C An error occurred while running the executor
109089
109093
 
109090
109094
  `
109091
109095
  ),
@@ -115875,6 +115879,10 @@ ${(0, import_fs3.readFileSync)(file, "utf-8")}`,
115875
115879
  )
115876
115880
  );
115877
115881
  }
115882
+ const stormEnv = Object.keys(options.env).filter((key) => key.startsWith("STORM_")).reduce((ret, key) => {
115883
+ ret[key] = options.env[key];
115884
+ return ret;
115885
+ }, {});
115878
115886
  options.plugins.push(await (0, import_decky.load)());
115879
115887
  options.plugins.push(
115880
115888
  (0, import_esbuild_decorators.esbuildDecorators)({
@@ -115882,9 +115890,11 @@ ${(0, import_fs3.readFileSync)(file, "utf-8")}`,
115882
115890
  cwd: workspaceRoot
115883
115891
  })
115884
115892
  );
115885
- options.plugins.push(environmentPlugin(options.env));
115893
+ options.plugins.push(environmentPlugin(stormEnv));
115886
115894
  const config = getConfig(context.root, projectRoot, sourceRoot, {
115887
115895
  ...options,
115896
+ define: stormEnv,
115897
+ env: stormEnv,
115888
115898
  dtsTsConfig: getNormalizedTsConfig(
115889
115899
  context.root,
115890
115900
  options.outputPath,
@@ -108893,6 +108893,7 @@ var setConfigEnv = (config) => {
108893
108893
  process.env[`${prefix}BRANCH`] = config.branch;
108894
108894
  process.env[`${prefix}PRE_MAJOR`] = String(config.preMajor);
108895
108895
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
108896
+ process.env.LOG_LEVEL = String(config.logLevel);
108896
108897
  process.env.NX_VERBOSE_LOGGING = String(
108897
108898
  getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
108898
108899
  );
@@ -108999,7 +109000,9 @@ var withRunExecutor = (name, executorFn, executorOptions = {
108999
109000
  const startTime = Date.now();
109000
109001
  try {
109001
109002
  console.info(
109002
- chalk.bold.hex("#1fb2a6")(`\u26A1 Running the ${name} executor...`)
109003
+ chalk.bold.hex("#1fb2a6")(`\u26A1 Running the ${name} executor...
109004
+
109005
+ `)
109003
109006
  );
109004
109007
  if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
109005
109008
  throw new Error(
@@ -109034,8 +109037,9 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
109034
109037
  getLogLevel(config.logLevel) >= LogLevel.INFO && console.info(
109035
109038
  chalk.hex("#0ea5e9").italic(`
109036
109039
 
109037
- \u2699\uFE0F Executor schema options:
109038
- `, options)
109040
+ \u2699\uFE0F Executor schema options:
109041
+ `),
109042
+ options
109039
109043
  );
109040
109044
  const tokenized = applyWorkspaceTokens(
109041
109045
  options,
@@ -109085,7 +109089,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
109085
109089
  } catch (error) {
109086
109090
  console.error(
109087
109091
  chalk.bold.hex("#7d1a1a")(
109088
- `\u274C An error occurred while running the executor
109092
+ `\u274C An error occurred while running the executor
109089
109093
 
109090
109094
  `
109091
109095
  ),
@@ -115875,6 +115879,10 @@ ${(0, import_fs3.readFileSync)(file, "utf-8")}`,
115875
115879
  )
115876
115880
  );
115877
115881
  }
115882
+ const stormEnv = Object.keys(options.env).filter((key) => key.startsWith("STORM_")).reduce((ret, key) => {
115883
+ ret[key] = options.env[key];
115884
+ return ret;
115885
+ }, {});
115878
115886
  options.plugins.push(await (0, import_decky.load)());
115879
115887
  options.plugins.push(
115880
115888
  (0, import_esbuild_decorators.esbuildDecorators)({
@@ -115882,9 +115890,11 @@ ${(0, import_fs3.readFileSync)(file, "utf-8")}`,
115882
115890
  cwd: workspaceRoot
115883
115891
  })
115884
115892
  );
115885
- options.plugins.push(environmentPlugin(options.env));
115893
+ options.plugins.push(environmentPlugin(stormEnv));
115886
115894
  const config = getConfig(context.root, projectRoot, sourceRoot, {
115887
115895
  ...options,
115896
+ define: stormEnv,
115897
+ env: stormEnv,
115888
115898
  dtsTsConfig: getNormalizedTsConfig(
115889
115899
  context.root,
115890
115900
  options.outputPath,
@@ -30193,6 +30193,7 @@ var setConfigEnv = (config) => {
30193
30193
  process.env[`${prefix}BRANCH`] = config.branch;
30194
30194
  process.env[`${prefix}PRE_MAJOR`] = String(config.preMajor);
30195
30195
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
30196
+ process.env.LOG_LEVEL = String(config.logLevel);
30196
30197
  process.env.NX_VERBOSE_LOGGING = String(
30197
30198
  getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
30198
30199
  );
@@ -31290,7 +31291,9 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
31290
31291
  const startTime = Date.now();
31291
31292
  try {
31292
31293
  console.info(
31293
- chalk.bold.hex("#1fb2a6")(`\u26A1 Running the ${name} generator...`)
31294
+ chalk.bold.hex("#1fb2a6")(`\u26A1 Running the ${name} generator...
31295
+
31296
+ `)
31294
31297
  );
31295
31298
  let config;
31296
31299
  if (!generatorOptions.skipReadingConfig) {
@@ -31314,7 +31317,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
31314
31317
  getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim(`Completed the applyDefaultOptions hook...`));
31315
31318
  }
31316
31319
  getLogLevel(config.logLevel) >= LogLevel.INFO && console.info(
31317
- chalk.hex("#0ea5e9").italic("\n\n\u2699\uFE0F Generator schema options: \n"),
31320
+ chalk.hex("#0ea5e9").italic("\n\n \u2699\uFE0F Generator schema options: \n"),
31318
31321
  options
31319
31322
  );
31320
31323
  const tokenized = applyWorkspaceTokens(
@@ -31355,7 +31358,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
31355
31358
  } catch (error) {
31356
31359
  console.error(
31357
31360
  chalk.bold.hex("#7d1a1a")(
31358
- `\u274C An error occurred while running the generator
31361
+ `\u274C An error occurred while running the generator
31359
31362
 
31360
31363
  `
31361
31364
  ),
@@ -47622,6 +47622,7 @@ var setConfigEnv = (config) => {
47622
47622
  process.env[`${prefix}BRANCH`] = config.branch;
47623
47623
  process.env[`${prefix}PRE_MAJOR`] = String(config.preMajor);
47624
47624
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
47625
+ process.env.LOG_LEVEL = String(config.logLevel);
47625
47626
  process.env.NX_VERBOSE_LOGGING = String(
47626
47627
  getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
47627
47628
  );
@@ -47704,7 +47705,9 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
47704
47705
  const startTime = Date.now();
47705
47706
  try {
47706
47707
  console.info(
47707
- chalk.bold.hex("#1fb2a6")(`\u26A1 Running the ${name} generator...`)
47708
+ chalk.bold.hex("#1fb2a6")(`\u26A1 Running the ${name} generator...
47709
+
47710
+ `)
47708
47711
  );
47709
47712
  let config;
47710
47713
  if (!generatorOptions.skipReadingConfig) {
@@ -47728,7 +47731,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
47728
47731
  getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim(`Completed the applyDefaultOptions hook...`));
47729
47732
  }
47730
47733
  getLogLevel(config.logLevel) >= LogLevel.INFO && console.info(
47731
- chalk.hex("#0ea5e9").italic("\n\n\u2699\uFE0F Generator schema options: \n"),
47734
+ chalk.hex("#0ea5e9").italic("\n\n \u2699\uFE0F Generator schema options: \n"),
47732
47735
  options
47733
47736
  );
47734
47737
  const tokenized = applyWorkspaceTokens(
@@ -47769,7 +47772,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
47769
47772
  } catch (error) {
47770
47773
  console.error(
47771
47774
  chalk.bold.hex("#7d1a1a")(
47772
- `\u274C An error occurred while running the generator
47775
+ `\u274C An error occurred while running the generator
47773
47776
 
47774
47777
  `
47775
47778
  ),
@@ -30194,6 +30194,7 @@ var setConfigEnv = (config) => {
30194
30194
  process.env[`${prefix}BRANCH`] = config.branch;
30195
30195
  process.env[`${prefix}PRE_MAJOR`] = String(config.preMajor);
30196
30196
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
30197
+ process.env.LOG_LEVEL = String(config.logLevel);
30197
30198
  process.env.NX_VERBOSE_LOGGING = String(
30198
30199
  getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
30199
30200
  );
@@ -30276,7 +30277,9 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
30276
30277
  const startTime = Date.now();
30277
30278
  try {
30278
30279
  console.info(
30279
- chalk.bold.hex("#1fb2a6")(`\u26A1 Running the ${name} generator...`)
30280
+ chalk.bold.hex("#1fb2a6")(`\u26A1 Running the ${name} generator...
30281
+
30282
+ `)
30280
30283
  );
30281
30284
  let config;
30282
30285
  if (!generatorOptions.skipReadingConfig) {
@@ -30300,7 +30303,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
30300
30303
  getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim(`Completed the applyDefaultOptions hook...`));
30301
30304
  }
30302
30305
  getLogLevel(config.logLevel) >= LogLevel.INFO && console.info(
30303
- chalk.hex("#0ea5e9").italic("\n\n\u2699\uFE0F Generator schema options: \n"),
30306
+ chalk.hex("#0ea5e9").italic("\n\n \u2699\uFE0F Generator schema options: \n"),
30304
30307
  options
30305
30308
  );
30306
30309
  const tokenized = applyWorkspaceTokens(
@@ -30341,7 +30344,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
30341
30344
  } catch (error) {
30342
30345
  console.error(
30343
30346
  chalk.bold.hex("#7d1a1a")(
30344
- `\u274C An error occurred while running the generator
30347
+ `\u274C An error occurred while running the generator
30345
30348
 
30346
30349
  `
30347
30350
  ),