@storm-software/workspace-tools 1.66.30 → 1.67.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +42 -1
  3. package/executors.json +1 -1
  4. package/index.js +225 -96
  5. package/meta.json +1 -1
  6. package/package.json +3 -3
  7. package/src/base/index.js +16 -3
  8. package/src/executors/rolldown/executor.js +81 -19
  9. package/src/executors/rolldown/schema.json +4 -17
  10. package/src/executors/tsup/executor.js +60 -12
  11. package/src/executors/tsup/schema.json +5 -21
  12. package/src/executors/tsup-browser/executor.js +60 -12
  13. package/src/executors/tsup-neutral/executor.js +60 -12
  14. package/src/executors/tsup-node/executor.js +60 -12
  15. package/src/executors/typia/executor.js +16 -3
  16. package/src/generators/browser-library/generator.js +16 -3
  17. package/src/generators/config-schema/generator.js +116 -71
  18. package/src/generators/neutral-library/generator.js +16 -3
  19. package/src/generators/node-library/generator.js +16 -3
  20. package/src/generators/preset/files/.env.template +2 -7
  21. package/src/generators/preset/files/.eslintignore +17 -0
  22. package/src/generators/preset/files/.eslintrc.base.json +42 -0
  23. package/src/generators/preset/files/.github/CODEOWNERS +1 -1
  24. package/src/generators/preset/files/.github/dependabot.yml +24 -0
  25. package/src/generators/preset/files/.github/labels.yml +3 -0
  26. package/src/generators/preset/files/.github/renovate.json.template +14 -2
  27. package/src/generators/preset/files/.github/stale.yml +22 -17
  28. package/src/generators/preset/files/.github/workflows/build-release.yml.template +11 -80
  29. package/src/generators/preset/files/.github/workflows/codeql.yml +1 -1
  30. package/src/generators/preset/files/.github/workflows/dependabot-approve.yml +24 -0
  31. package/src/generators/preset/files/.github/workflows/git-guardian.yml +1 -1
  32. package/src/generators/preset/files/.github/workflows/greetings.yml +2 -3
  33. package/src/generators/preset/files/.vscode/settings.json +127 -42
  34. package/src/generators/preset/files/.vscode/tasks.json +1 -16
  35. package/src/generators/preset/files/storm.config.js.template +29 -0
  36. package/src/generators/preset/files/tsconfig.base.json.template +1 -1
  37. package/src/generators/preset/generator.js +16 -3
  38. package/src/generators/release-version/generator.js +16 -3
  39. package/src/utils/index.js +16 -3
  40. package/src/generators/preset/files/.github/actions/setup-workspace/action.yaml +0 -41
  41. /package/src/generators/preset/files/{.github/.whitesource → .whitesource} +0 -0
@@ -217804,7 +217804,9 @@ var init_schema = __esm({
217804
217804
  fatal: z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7d1a1a").describe("The fatal color of the workspace")
217805
217805
  }).describe("Colors used for various workspace elements");
217806
217806
  StormConfigSchema = z.object({
217807
- extends: z.string().trim().optional().describe("The path to a base JSON file to use as a configuration preset file"),
217807
+ extends: z.string().trim().optional().describe(
217808
+ "The path to a base JSON file to use as a configuration preset file"
217809
+ ),
217808
217810
  name: z.string().trim().toLowerCase().optional().describe("The name of the package"),
217809
217811
  namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
217810
217812
  organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
@@ -217818,7 +217820,9 @@ var init_schema = __esm({
217818
217820
  "The worker of the package (this is the bot that will be used to perform various tasks)"
217819
217821
  ),
217820
217822
  env: z.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
217821
- ci: z.boolean().default(true).describe("An indicator specifying if the current environment is a CI environment"),
217823
+ ci: z.boolean().default(true).describe(
217824
+ "An indicator specifying if the current environment is a CI environment"
217825
+ ),
217822
217826
  workspaceRoot: z.string().trim().optional().describe("The root directory of the workspace"),
217823
217827
  packageDirectory: z.string().trim().optional().describe("The root directory of the package"),
217824
217828
  externalPackagePatterns: z.array(z.string()).default([]).describe(
@@ -217834,7 +217838,16 @@ var init_schema = __esm({
217834
217838
  packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe("The package manager used by the repository"),
217835
217839
  timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
217836
217840
  locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
217837
- logLevel: z.enum(["silent", "fatal", "error", "warn", "info", "debug", "trace", "all"]).default("debug").describe(
217841
+ logLevel: z.enum([
217842
+ "silent",
217843
+ "fatal",
217844
+ "error",
217845
+ "warn",
217846
+ "info",
217847
+ "debug",
217848
+ "trace",
217849
+ "all"
217850
+ ]).default("debug").describe(
217838
217851
  "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`)."
217839
217852
  ),
217840
217853
  configFile: z.string().trim().nullable().default(null).describe(
@@ -215278,7 +215278,9 @@ var init_schema = __esm({
215278
215278
  fatal: z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7d1a1a").describe("The fatal color of the workspace")
215279
215279
  }).describe("Colors used for various workspace elements");
215280
215280
  StormConfigSchema = z.object({
215281
- extends: z.string().trim().optional().describe("The path to a base JSON file to use as a configuration preset file"),
215281
+ extends: z.string().trim().optional().describe(
215282
+ "The path to a base JSON file to use as a configuration preset file"
215283
+ ),
215282
215284
  name: z.string().trim().toLowerCase().optional().describe("The name of the package"),
215283
215285
  namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
215284
215286
  organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
@@ -215292,7 +215294,9 @@ var init_schema = __esm({
215292
215294
  "The worker of the package (this is the bot that will be used to perform various tasks)"
215293
215295
  ),
215294
215296
  env: z.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
215295
- ci: z.boolean().default(true).describe("An indicator specifying if the current environment is a CI environment"),
215297
+ ci: z.boolean().default(true).describe(
215298
+ "An indicator specifying if the current environment is a CI environment"
215299
+ ),
215296
215300
  workspaceRoot: z.string().trim().optional().describe("The root directory of the workspace"),
215297
215301
  packageDirectory: z.string().trim().optional().describe("The root directory of the package"),
215298
215302
  externalPackagePatterns: z.array(z.string()).default([]).describe(
@@ -215308,7 +215312,16 @@ var init_schema = __esm({
215308
215312
  packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe("The package manager used by the repository"),
215309
215313
  timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
215310
215314
  locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
215311
- logLevel: z.enum(["silent", "fatal", "error", "warn", "info", "debug", "trace", "all"]).default("debug").describe(
215315
+ logLevel: z.enum([
215316
+ "silent",
215317
+ "fatal",
215318
+ "error",
215319
+ "warn",
215320
+ "info",
215321
+ "debug",
215322
+ "trace",
215323
+ "all"
215324
+ ]).default("debug").describe(
215312
215325
  "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`)."
215313
215326
  ),
215314
215327
  configFile: z.string().trim().nullable().default(null).describe(
@@ -1,41 +0,0 @@
1
- name: "Setup Workspace"
2
- description: "This action install node and cache modules. It uses pnpm as package manager."
3
- inputs:
4
- working-directory:
5
- description: "The working directory of your node package"
6
- default: "."
7
- required: false
8
-
9
- runs:
10
- using: "composite"
11
- steps:
12
- - uses: actions/setup-node@v4
13
- with:
14
- node-version: ${{ inputs.node-version }}
15
-
16
- - uses: pnpm/action-setup@v3.0.0
17
- id: pnpm-install
18
- with:
19
- version: 8.10.2
20
- run_install: false
21
-
22
- - name: Get pnpm store directory
23
- shell: bash
24
- id: pnpm-cache
25
- run: |
26
- echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
27
-
28
- - uses: actions/setup-node@v4
29
- with:
30
- registry-url: https://registry.npmjs.org/
31
- node-version-file: .github/.nvmrc
32
- cache: pnpm
33
- cache-dependency-path: pnpm-lock.yaml
34
-
35
- - name: setup pnpm config registry
36
- run: pnpm config set registry https://registry.npmjs.org
37
- shell: bash
38
-
39
- - name: setup pnpm config registry
40
- run: pnpm install
41
- shell: bash