@storm-software/terraform-tools 0.8.0 → 0.9.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 (102) hide show
  1. package/CHANGELOG.md +57 -24
  2. package/README.md +2 -1
  3. package/package.json +6 -6
  4. package/packages/build-tools/src/build/index.d.ts +0 -3
  5. package/packages/build-tools/src/build/rolldown.d.ts +0 -20
  6. package/packages/build-tools/src/build/ts-build.d.ts +0 -20
  7. package/packages/build-tools/src/build/unbuild.d.ts +0 -20
  8. package/packages/build-tools/src/cli/index.d.ts +0 -2
  9. package/packages/build-tools/src/config/browser-config.d.ts +0 -2
  10. package/packages/build-tools/src/config/default-config.d.ts +0 -2
  11. package/packages/build-tools/src/config/get-config.d.ts +0 -2
  12. package/packages/build-tools/src/config/get-rolldown-config.d.ts +0 -6
  13. package/packages/build-tools/src/config/get-unbuild-config.d.ts +0 -6
  14. package/packages/build-tools/src/config/index.d.ts +0 -7
  15. package/packages/build-tools/src/config/neutral-config.d.ts +0 -2
  16. package/packages/build-tools/src/config/node-config.d.ts +0 -3
  17. package/packages/build-tools/src/index.d.ts +0 -6
  18. package/packages/build-tools/src/plugins/analyze-plugin.d.ts +0 -4
  19. package/packages/build-tools/src/plugins/index.d.ts +0 -4
  20. package/packages/build-tools/src/plugins/swc-plugin.d.ts +0 -2
  21. package/packages/build-tools/src/plugins/ts-resolve.d.ts +0 -6
  22. package/packages/build-tools/src/plugins/type-definitions.d.ts +0 -7
  23. package/packages/build-tools/src/types.d.ts +0 -213
  24. package/packages/build-tools/src/utils/apply-default-options.d.ts +0 -6
  25. package/packages/build-tools/src/utils/generate-package-json.d.ts +0 -7
  26. package/packages/build-tools/src/utils/get-entry-points.d.ts +0 -3
  27. package/packages/build-tools/src/utils/get-file-banner.d.ts +0 -8
  28. package/packages/build-tools/src/utils/get-project-deps.d.ts +0 -5
  29. package/packages/build-tools/src/utils/index.d.ts +0 -7
  30. package/packages/build-tools/src/utils/out-extension.d.ts +0 -8
  31. package/packages/build-tools/src/utils/run-tsup-build.d.ts +0 -3
  32. package/packages/build-tools/src/utils/task-graph.d.ts +0 -6
  33. package/packages/config/src/constants.d.ts +0 -3
  34. package/packages/config/src/define-config.d.ts +0 -174
  35. package/packages/config/src/index.d.ts +0 -12
  36. package/packages/config/src/schema.d.ts +0 -1915
  37. package/packages/config/src/types.d.ts +0 -23
  38. package/packages/config-tools/src/config-file/get-config-file.d.ts +0 -16
  39. package/packages/config-tools/src/config-file/index.d.ts +0 -1
  40. package/packages/config-tools/src/create-storm-config.d.ts +0 -26
  41. package/packages/config-tools/src/env/get-env.d.ts +0 -15
  42. package/packages/config-tools/src/env/index.d.ts +0 -2
  43. package/packages/config-tools/src/env/set-env.d.ts +0 -14
  44. package/packages/config-tools/src/index.d.ts +0 -13
  45. package/packages/config-tools/src/types.d.ts +0 -33
  46. package/packages/config-tools/src/utilities/apply-workspace-tokens.d.ts +0 -4
  47. package/packages/config-tools/src/utilities/chalk.d.ts +0 -23
  48. package/packages/config-tools/src/utilities/correct-paths.d.ts +0 -1
  49. package/packages/config-tools/src/utilities/file-path-utils.d.ts +0 -2
  50. package/packages/config-tools/src/utilities/find-up.d.ts +0 -4
  51. package/packages/config-tools/src/utilities/find-workspace-root.d.ts +0 -14
  52. package/packages/config-tools/src/utilities/get-default-config.d.ts +0 -15
  53. package/packages/config-tools/src/utilities/get-log-level.d.ts +0 -15
  54. package/packages/config-tools/src/utilities/index.d.ts +0 -10
  55. package/packages/config-tools/src/utilities/logger.d.ts +0 -74
  56. package/packages/config-tools/src/utilities/process-handler.d.ts +0 -4
  57. package/packages/config-tools/src/utilities/run.d.ts +0 -18
  58. package/packages/workspace-tools/index.d.ts +0 -32
  59. package/packages/workspace-tools/src/base/base-executor.d.ts +0 -7
  60. package/packages/workspace-tools/src/base/base-generator.d.ts +0 -4
  61. package/packages/workspace-tools/src/base/index.d.ts +0 -3
  62. package/packages/workspace-tools/src/base/typescript-library-generator.d.ts +0 -8
  63. package/packages/workspace-tools/src/executors/cargo-publish/executor.d.ts +0 -6
  64. package/packages/workspace-tools/src/executors/clean-package/constants.d.ts +0 -4
  65. package/packages/workspace-tools/src/executors/clean-package/executor.d.ts +0 -8
  66. package/packages/workspace-tools/src/executors/clean-package/types.d.ts +0 -8
  67. package/packages/workspace-tools/src/executors/clean-package/utils.d.ts +0 -4
  68. package/packages/workspace-tools/src/executors/npm-publish/executor.d.ts +0 -6
  69. package/packages/workspace-tools/src/executors/rolldown/executor.d.ts +0 -9
  70. package/packages/workspace-tools/src/executors/size-limit/executor.d.ts +0 -8
  71. package/packages/workspace-tools/src/executors/tsup/executor.d.ts +0 -8
  72. package/packages/workspace-tools/src/executors/tsup-browser/executor.d.ts +0 -7
  73. package/packages/workspace-tools/src/executors/tsup-neutral/executor.d.ts +0 -8
  74. package/packages/workspace-tools/src/executors/tsup-node/executor.d.ts +0 -7
  75. package/packages/workspace-tools/src/executors/typia/executor.d.ts +0 -8
  76. package/packages/workspace-tools/src/executors/unbuild/executor.d.ts +0 -9
  77. package/packages/workspace-tools/src/generators/config-schema/generator.d.ts +0 -13
  78. package/packages/workspace-tools/src/generators/init/init.d.ts +0 -4
  79. package/packages/workspace-tools/src/generators/node-library/generator.d.ts +0 -5
  80. package/packages/workspace-tools/src/generators/preset/generator.d.ts +0 -5
  81. package/packages/workspace-tools/src/generators/release-version/generator.d.ts +0 -13
  82. package/packages/workspace-tools/src/utils/apply-workspace-tokens.d.ts +0 -8
  83. package/packages/workspace-tools/src/utils/cargo.d.ts +0 -26
  84. package/packages/workspace-tools/src/utils/create-cli-options.d.ts +0 -1
  85. package/packages/workspace-tools/src/utils/get-project-configurations.d.ts +0 -13
  86. package/packages/workspace-tools/src/utils/index.d.ts +0 -9
  87. package/packages/workspace-tools/src/utils/lock-file.d.ts +0 -23
  88. package/packages/workspace-tools/src/utils/project-tags.d.ts +0 -30
  89. package/packages/workspace-tools/src/utils/toml.d.ts +0 -167
  90. package/packages/workspace-tools/src/utils/typia-transform.d.ts +0 -2
  91. package/packages/workspace-tools/src/utils/versions.d.ts +0 -18
  92. /package/{packages/terraform-tools/index.d.ts → index.d.ts} +0 -0
  93. /package/{packages/terraform-tools/src → src}/base/base-executor.d.ts +0 -0
  94. /package/{packages/terraform-tools/src → src}/base/index.d.ts +0 -0
  95. /package/{packages/terraform-tools/src → src}/executors/apply/executor.d.ts +0 -0
  96. /package/{packages/terraform-tools/src → src}/executors/destroy/executor.d.ts +0 -0
  97. /package/{packages/terraform-tools/src → src}/executors/index.d.ts +0 -0
  98. /package/{packages/terraform-tools/src → src}/executors/output/executor.d.ts +0 -0
  99. /package/{packages/terraform-tools/src → src}/executors/plan/executor.d.ts +0 -0
  100. /package/{packages/terraform-tools/src → src}/generators/index.d.ts +0 -0
  101. /package/{packages/terraform-tools/src → src}/generators/init/init.d.ts +0 -0
  102. /package/{packages/terraform-tools/src → src}/index.d.ts +0 -0
package/CHANGELOG.md CHANGED
@@ -1,77 +1,110 @@
1
- ## 0.8.0 (2024-08-04)
1
+ ## 0.9.0 (2024-09-02)
2
+
3
+ ### Features
4
+
5
+ - **terraform-modules:** Added the `aws/karpenter` and `cloudflare/r2-bucket`
6
+ modules
7
+ ([09deea18](https://github.com/storm-software/storm-ops/commit/09deea18))
8
+
9
+ ### Bug Fixes
10
+
11
+ - **terraform-modules:** Resolved issue with applying tags to resources
12
+ ([a0fd5e19](https://github.com/storm-software/storm-ops/commit/a0fd5e19))
13
+
14
+ ## 0.8.1 (2024-08-26)
15
+
16
+ ### Bug Fixes
17
+
18
+ - **terraform-tools:** Resolved issue with the Jest configuration file
19
+ ([16c88699](https://github.com/storm-software/storm-ops/commit/16c88699))
20
+
21
+ ### Dependency Upgrades
2
22
 
23
+ - **storm-ops:** Upgrade the workspace's Nx version
24
+ ([4ce6ac9e](https://github.com/storm-software/storm-ops/commit/4ce6ac9e))
25
+
26
+ ## 0.8.0 (2024-08-04)
3
27
 
4
28
  ### Features
5
29
 
6
- - **config:** Added the `docs` and `licensing` options to the Storm configuration ([c867efe1](https://github.com/storm-software/storm-ops/commit/c867efe1))
30
+ - **config:** Added the `docs` and `licensing` options to the Storm
31
+ configuration
32
+ ([c867efe1](https://github.com/storm-software/storm-ops/commit/c867efe1))
7
33
 
8
34
  ## 0.7.0 (2024-08-03)
9
35
 
10
-
11
36
  ### Features
12
37
 
13
- - **eslint:** Ignore `prefer-nullish-coalescing` for strings ([dbae2a58](https://github.com/storm-software/storm-ops/commit/dbae2a58))
38
+ - **eslint:** Ignore `prefer-nullish-coalescing` for strings
39
+ ([dbae2a58](https://github.com/storm-software/storm-ops/commit/dbae2a58))
14
40
 
15
41
  ## 0.6.0 (2024-08-03)
16
42
 
17
-
18
43
  ### Features
19
44
 
20
- - **build-tools:** Add back experimental DTS option to TSUP ([4fe9652b](https://github.com/storm-software/storm-ops/commit/4fe9652b))
45
+ - **build-tools:** Add back experimental DTS option to TSUP
46
+ ([4fe9652b](https://github.com/storm-software/storm-ops/commit/4fe9652b))
21
47
 
22
48
  ## 0.5.0 (2024-08-03)
23
49
 
24
-
25
50
  ### Features
26
51
 
27
- - **storm-ops:** Upgrade workspace's Nx package dependencies ([5f31f734](https://github.com/storm-software/storm-ops/commit/5f31f734))
52
+ - **storm-ops:** Upgrade workspace's Nx package dependencies
53
+ ([5f31f734](https://github.com/storm-software/storm-ops/commit/5f31f734))
28
54
 
29
55
  ## 0.4.0 (2024-08-03)
30
56
 
31
-
32
57
  ### Features
33
58
 
34
- - **build-tools:** Add tsup build's rollup helpers ([27ecd4e6](https://github.com/storm-software/storm-ops/commit/27ecd4e6))
59
+ - **build-tools:** Add tsup build's rollup helpers
60
+ ([27ecd4e6](https://github.com/storm-software/storm-ops/commit/27ecd4e6))
35
61
 
36
62
  ## 0.3.1 (2024-08-03)
37
63
 
38
-
39
64
  ### Bug Fixes
40
65
 
41
- - **build-tools:** Resolved issue with the entry name parameter in unbuild config ([f5e5dbdd](https://github.com/storm-software/storm-ops/commit/f5e5dbdd))
66
+ - **build-tools:** Resolved issue with the entry name parameter in unbuild
67
+ config
68
+ ([f5e5dbdd](https://github.com/storm-software/storm-ops/commit/f5e5dbdd))
42
69
 
43
70
  ## 0.3.0 (2024-08-02)
44
71
 
45
-
46
72
  ### Features
47
73
 
48
- - **build-tools:** Added back the export statements to unbuild configuration ([5fb63682](https://github.com/storm-software/storm-ops/commit/5fb63682))
74
+ - **build-tools:** Added back the export statements to unbuild configuration
75
+ ([5fb63682](https://github.com/storm-software/storm-ops/commit/5fb63682))
49
76
 
50
77
  ## 0.2.0 (2024-08-02)
51
78
 
52
-
53
79
  ### Features
54
80
 
55
- - **build-tools:** Update the unbuild configuration to get exports from `package.json` files ([bb2fc78f](https://github.com/storm-software/storm-ops/commit/bb2fc78f))
81
+ - **build-tools:** Update the unbuild configuration to get exports from
82
+ `package.json` files
83
+ ([bb2fc78f](https://github.com/storm-software/storm-ops/commit/bb2fc78f))
56
84
 
57
85
  ## 0.1.1 (2024-08-02)
58
86
 
59
-
60
87
  ### Bug Fixes
61
88
 
62
- - **terraform-tools:** Resolve issue with invalid release executor ([20e5b88c](https://github.com/storm-software/storm-ops/commit/20e5b88c))
89
+ - **terraform-tools:** Resolve issue with invalid release executor
90
+ ([20e5b88c](https://github.com/storm-software/storm-ops/commit/20e5b88c))
63
91
 
64
- - **terraform-tools:** Include missing changes to `project.json` file ([5d7e0f0f](https://github.com/storm-software/storm-ops/commit/5d7e0f0f))
92
+ - **terraform-tools:** Include missing changes to `project.json` file
93
+ ([5d7e0f0f](https://github.com/storm-software/storm-ops/commit/5d7e0f0f))
65
94
 
66
95
  ## 0.1.0 (2024-08-02)
67
96
 
68
-
69
97
  ### Features
70
98
 
71
- - **terraform-tools:** Initial check-in of project code ([c4ef4810](https://github.com/storm-software/storm-ops/commit/c4ef4810))
99
+ - **terraform-tools:** Initial check-in of project code
100
+ ([c4ef4810](https://github.com/storm-software/storm-ops/commit/c4ef4810))
72
101
 
73
- - **build-tools:** Added `failOnWarn` parameter to unbuild configuration ([ba28050d](https://github.com/storm-software/storm-ops/commit/ba28050d))
102
+ - **build-tools:** Added `failOnWarn` parameter to unbuild configuration
103
+ ([ba28050d](https://github.com/storm-software/storm-ops/commit/ba28050d))
74
104
 
75
- - **terraform-tools:** Added terraform options to the plugin's executor schemas ([fb555cb4](https://github.com/storm-software/storm-ops/commit/fb555cb4))
105
+ - **terraform-tools:** Added terraform options to the plugin's executor schemas
106
+ ([fb555cb4](https://github.com/storm-software/storm-ops/commit/fb555cb4))
76
107
 
77
- - **terraform-tools:** Update build to exclude other storm package from the distribution ([96294aac](https://github.com/storm-software/storm-ops/commit/96294aac))
108
+ - **terraform-tools:** Update build to exclude other storm package from the
109
+ distribution
110
+ ([96294aac](https://github.com/storm-software/storm-ops/commit/96294aac))
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-0.7.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![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 Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&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)
24
+ [![Version](https://img.shields.io/badge/version-0.8.1-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![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 Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&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)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -40,6 +40,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
40
40
 
41
41
  <!-- START doctoc -->
42
42
  <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
43
+
43
44
  ## Table of Contents
44
45
 
45
46
  - [Storm Terraform Tools](#storm-terraform-tools)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/terraform-tools",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "type": "commonjs",
5
5
  "description": "⚡ A Nx plugin package that contains various executors, generators, and utilities that assist in managing Terraform IoC.",
6
6
  "repository": {
@@ -41,8 +41,8 @@
41
41
  "monorepo"
42
42
  ],
43
43
  "peerDependencies": {
44
- "@nx/devkit": "^19.5.6",
45
- "nx": "^19.5.6"
44
+ "@nx/devkit": "^19.6.4",
45
+ "nx": "^19.6.4"
46
46
  },
47
47
  "peerDependenciesMeta": {
48
48
  "@nx/devkit": {
@@ -53,13 +53,13 @@
53
53
  }
54
54
  },
55
55
  "dependencies": {
56
- "@nx/devkit": "^19.5.6",
57
- "@nx/workspace": "^19.5.6",
56
+ "@nx/devkit": "^19.6.4",
57
+ "@nx/workspace": "^19.6.4",
58
58
  "shelljs": "^0.8.5",
59
59
  "tslib": "^2.6.3"
60
60
  },
61
61
  "devDependencies": {
62
- "nx": "^19.5.6"
62
+ "nx": "^19.6.4"
63
63
  },
64
64
  "publishConfig": {
65
65
  "access": "public"
@@ -1,3 +0,0 @@
1
- export * from "./ts-build";
2
- export * from "./rolldown";
3
- export * from "./unbuild";
@@ -1,20 +0,0 @@
1
- import type { StormConfig } from "@storm-software/config";
2
- import type { RolldownOptions } from "../types";
3
- /**
4
- * Build and bundle a TypeScript project using the tsup build tools.
5
- *
6
- * @remarks
7
- * This function is a wrapper around the `buildWithOptions` function that provides a default set of options.
8
- *
9
- * @param config - The storm configuration.
10
- * @param options - A build options partial. The minimum required options are `projectRoot` or `projectName`.
11
- */
12
- export declare function rolldown(config: StormConfig, options?: Partial<RolldownOptions>): Promise<void>;
13
- /**
14
- * Build and bundle a TypeScript project using the tsup build tools.
15
- *
16
- * @param config - The storm configuration.
17
- * @param options - The build options.
18
- */
19
- export declare function rolldownWithOptions(config: StormConfig, options: RolldownOptions): Promise<void>;
20
- export default rolldown;
@@ -1,20 +0,0 @@
1
- import type { TypeScriptBuildOptions } from "../../declarations";
2
- import type { StormConfig } from "@storm-software/config";
3
- /**
4
- * Build and bundle a TypeScript project using the tsup build tools.
5
- *
6
- * @remarks
7
- * This function is a wrapper around the `buildWithOptions` function that provides a default set of options.
8
- *
9
- * @param config - The storm configuration.
10
- * @param options - A build options partial. The minimum required options are `projectRoot` or `projectName`.
11
- */
12
- export declare function build(config: StormConfig, options?: Partial<TypeScriptBuildOptions>): Promise<void>;
13
- /**
14
- * Build and bundle a TypeScript project using the tsup build tools.
15
- *
16
- * @param config - The storm configuration.
17
- * @param options - The build options.
18
- */
19
- export declare function buildWithOptions(config: StormConfig, options: TypeScriptBuildOptions): Promise<void>;
20
- export default build;
@@ -1,20 +0,0 @@
1
- import type { StormConfig } from "@storm-software/config";
2
- import type { UnbuildBuildOptions } from "../types";
3
- /**
4
- * Build and bundle a TypeScript project using the tsup build tools.
5
- *
6
- * @remarks
7
- * This function is a wrapper around the `buildWithOptions` function that provides a default set of options.
8
- *
9
- * @param config - The storm configuration.
10
- * @param options - A build options partial. The minimum required options are `projectRoot` or `projectName`.
11
- */
12
- export declare function unbuild(config: StormConfig, options?: Partial<UnbuildBuildOptions>): Promise<void>;
13
- /**
14
- * Build and bundle a TypeScript project using the tsup build tools.
15
- *
16
- * @param config - The storm configuration.
17
- * @param options - The build options.
18
- */
19
- export declare function unbuildWithOptions(config: StormConfig, options: UnbuildBuildOptions): Promise<void>;
20
- export default unbuild;
@@ -1,2 +0,0 @@
1
- import type { StormConfig } from "@storm-software/config";
2
- export declare function createProgram(config: StormConfig): Promise<import("commander").Command>;
@@ -1,2 +0,0 @@
1
- import type { BuildOptions, GetConfigParams } from "../../declarations";
2
- export declare const browserConfig: ({ entry, outDir, projectRoot, workspaceRoot, tsconfig, splitting, treeshake, debug, shims, external, banner, platform, verbose, metafile, skipNativeModulesPlugin, define, env, plugins, generatePackageJson, dtsTsConfig, minify, getTransform }: GetConfigParams) => BuildOptions;
@@ -1,2 +0,0 @@
1
- import type { BuildOptions, GetConfigParams } from "../../declarations";
2
- export declare function defaultConfig({ entry, outDir, projectRoot, workspaceRoot, tsconfig, splitting, treeshake, format, debug, shims, external, banner, platform, verbose, apiReport, docModel, tsdocMetadata, metafile, skipNativeModulesPlugin, define, env, plugins, generatePackageJson, dtsTsConfig, minify, getTransform }: GetConfigParams): BuildOptions;
@@ -1,2 +0,0 @@
1
- import type { BuildOptions, GetConfigParams, TsupGetConfigOptions } from "../types";
2
- export declare const getConfig: (workspaceRoot: string, projectRoot: string, getConfigFn: (options: GetConfigParams) => BuildOptions, { outputPath, tsConfig, platform, ...rest }: TsupGetConfigOptions) => import("tsup").Options;
@@ -1,6 +0,0 @@
1
- import type { RolldownBuildOptions, RolldownOptions } from "../types";
2
- import { type DependentBuildableProjectNode } from "@nx/js/src/utils/buildable-libs-utils.js";
3
- import type { StormConfig } from "@storm-software/config";
4
- import type { PackageJson } from "nx/src/utils/package-json.js";
5
- export declare const DEFAULT_CONFIG: RolldownBuildOptions;
6
- export declare function getRolldownBuildOptions(config: StormConfig, options: RolldownOptions, dependencies: DependentBuildableProjectNode[], packageJson: PackageJson, npmDeps: string[]): Promise<RolldownBuildOptions[]>;
@@ -1,6 +0,0 @@
1
- import { ProjectGraph } from "@nx/devkit";
2
- import type { StormConfig } from "@storm-software/config";
3
- import type { PackageJson } from "nx/src/utils/package-json.js";
4
- import { type BuildConfig } from "unbuild";
5
- import type { UnbuildBuildOptions } from "../types";
6
- export declare function getUnbuildBuildOptions(config: StormConfig, options: UnbuildBuildOptions, packageJson: PackageJson, projectGraph: ProjectGraph): Promise<BuildConfig[]>;
@@ -1,7 +0,0 @@
1
- export * from "./default-config";
2
- export * from "./get-config";
3
- export * from "./browser-config";
4
- export * from "./node-config";
5
- export * from "./neutral-config";
6
- export * from "./get-rolldown-config";
7
- export * from "./get-unbuild-config";
@@ -1,2 +0,0 @@
1
- import type { BuildOptions, GetConfigParams } from "../../declarations";
2
- export declare const neutralConfig: ({ entry, outDir, projectRoot, workspaceRoot, tsconfig, splitting, treeshake, debug, shims, external, banner, platform, verbose, metafile, skipNativeModulesPlugin, define, env, apiReport, docModel, tsdocMetadata, plugins, generatePackageJson, dtsTsConfig, minify, getTransform }: GetConfigParams) => BuildOptions;
@@ -1,3 +0,0 @@
1
- import type { BuildOptions, GetConfigParams } from "../../declarations";
2
- export declare function nodeConfig({ entry, outDir, projectRoot, workspaceRoot, tsconfig, splitting, treeshake, debug, shims, external, banner, platform, verbose, apiReport, docModel, tsdocMetadata, metafile, skipNativeModulesPlugin, define, env, plugins, generatePackageJson, dtsTsConfig, minify, getTransform }: GetConfigParams): BuildOptions;
3
- export declare function workerConfig({ entry, outDir, projectRoot, workspaceRoot, tsconfig, splitting, treeshake, debug, external, banner, verbose, apiReport, docModel, tsdocMetadata, shims, metafile, skipNativeModulesPlugin, define, env, plugins, generatePackageJson, dtsTsConfig, getTransform }: GetConfigParams): BuildOptions;
@@ -1,6 +0,0 @@
1
- export * from "./build";
2
- export * from "./cli";
3
- export * from "./config";
4
- export * from "./utils";
5
- export * from "./types";
6
- export * from "./plugins";
@@ -1,4 +0,0 @@
1
- export declare function analyze(): {
2
- name: string;
3
- renderChunk(source: any, chunk: any): void;
4
- };
@@ -1,4 +0,0 @@
1
- export * from "./analyze-plugin";
2
- export * from "./swc-plugin";
3
- export * from "./ts-resolve";
4
- export * from "./type-definitions";
@@ -1,2 +0,0 @@
1
- import type { Plugin } from "rollup";
2
- export declare function swc(): Plugin;
@@ -1,6 +0,0 @@
1
- import type { PluginImpl } from "rollup";
2
- export type TsResolveOptions = {
3
- resolveOnly?: Array<string | RegExp>;
4
- ignore?: (source: string, importer?: string) => boolean;
5
- };
6
- export declare const tsResolvePlugin: PluginImpl<TsResolveOptions>;
@@ -1,7 +0,0 @@
1
- import type { OutputBundle } from "rollup";
2
- export declare function typeDefinitions(options: {
3
- projectRoot: string;
4
- }): {
5
- name: string;
6
- generateBundle(_opts: unknown, bundle: OutputBundle): Promise<void>;
7
- };
@@ -1,213 +0,0 @@
1
- import type Rolldown from "rolldown";
2
- import type { Plugin } from "rolldown";
3
- import type { Options } from "tsup";
4
- import type { Diagnostic, ParsedCommandLine, Program, SourceFile, TransformerFactory } from "typescript";
5
- import type { BuildOptions as UnbuildOptions, RollupBuildOptions as UnbuildRollupBuildOptions } from "unbuild";
6
- export interface TsupContext {
7
- projectRoot: string;
8
- sourceRoot: string;
9
- projectName: string;
10
- main: string;
11
- }
12
- export type BuildOptions = Options;
13
- export type Entry = string | string[] | Record<string, string>;
14
- export type GetConfigParams = Omit<TsupGetConfigOptions, "entry" | "assets" | "clean" | "outputPath" | "tsConfig" | "main"> & {
15
- entry: Entry;
16
- outDir: string;
17
- projectRoot: string;
18
- workspaceRoot: string;
19
- tsconfig: string;
20
- shims?: boolean;
21
- apiReport?: boolean;
22
- docModel?: boolean;
23
- tsdocMetadata?: boolean;
24
- dtsTsConfig: ParsedCommandLine;
25
- getTransform?: (program: Program, diagnostics: Diagnostic[]) => TransformerFactory<SourceFile>;
26
- };
27
- export type TsupGetConfigOptions = Omit<TypeScriptBuildOptions, "banner" | "entry"> & {
28
- banner?: {
29
- js?: string;
30
- css?: string;
31
- };
32
- dtsTsConfig: ParsedCommandLine;
33
- entry: Entry;
34
- };
35
- export type Platform = "browser" | "node" | "neutral";
36
- export type FileInputOutput = {
37
- input: string;
38
- output: string;
39
- };
40
- export type AssetGlob = FileInputOutput & {
41
- glob: string;
42
- ignore?: string[];
43
- dot?: boolean;
44
- };
45
- export interface AdditionalCLIOptions {
46
- projectRoot: string;
47
- sourceRoot: string;
48
- projectName: string;
49
- }
50
- export interface TypeScriptBuildOptions extends AdditionalCLIOptions {
51
- additionalEntryPoints?: string[];
52
- assets: (AssetGlob | string)[];
53
- bundle?: boolean;
54
- deleteOutputPath?: boolean;
55
- esbuildOptions?: Record<string, any>;
56
- esbuildConfig?: string;
57
- external?: string[];
58
- outputFileName?: string;
59
- outputHashing?: "none" | "all";
60
- outputPath: string;
61
- platform?: "node" | "browser" | "neutral" | "worker";
62
- sourcemap?: boolean | "linked" | "inline" | "external" | "both";
63
- target?: string;
64
- tsConfig: string;
65
- watch?: boolean;
66
- entry: string;
67
- options?: Options;
68
- clean?: boolean;
69
- debug?: boolean;
70
- banner?: string;
71
- verbose?: boolean;
72
- define?: Record<string, string | undefined | null>;
73
- env?: Record<string, string | undefined | null>;
74
- apiReport?: boolean;
75
- docModel?: boolean;
76
- tsdocMetadata?: boolean;
77
- includeSrc?: boolean;
78
- plugins?: any[];
79
- shims?: boolean;
80
- splitting?: boolean;
81
- treeshake?: boolean;
82
- generatePackageJson?: boolean;
83
- emitOnAll?: boolean;
84
- getConfig: (params: GetConfigParams) => Options;
85
- format?: string[];
86
- metafile?: boolean;
87
- minify?: boolean;
88
- skipNativeModulesPlugin?: boolean;
89
- useJsxModule?: boolean;
90
- }
91
- export type RolldownFormat = "cjs" | "es";
92
- export declare const RolldownFormat: {
93
- COMMONJS: RolldownFormat;
94
- ES_MODULE: RolldownFormat;
95
- };
96
- export type IsExternal = (source: string, importer: string | undefined, isResolved: boolean) => boolean;
97
- export type RolldownResolveOptions = Omit<BindingResolveOptions, "alias"> & {
98
- alias?: Record<string, string>;
99
- };
100
- export interface BindingResolveOptions {
101
- alias?: Record<string, string[]>;
102
- aliasFields?: string[][];
103
- conditionNames?: string[];
104
- exportsFields?: string[][];
105
- extensions?: string[];
106
- mainFields?: string[];
107
- mainFiles?: string[];
108
- modules?: string[];
109
- symlinks?: boolean;
110
- tsconfigFilename?: string;
111
- }
112
- export interface RenderedModule {
113
- readonly code: string | null;
114
- originalLength: number;
115
- removedExports: string[];
116
- renderedExports: string[];
117
- renderedLength: number;
118
- }
119
- export interface PreRenderedChunk {
120
- exports: string[];
121
- facadeModuleId: string | null;
122
- isDynamicEntry: boolean;
123
- isEntry: boolean;
124
- isImplicitEntry: boolean;
125
- moduleIds: string[];
126
- name: string;
127
- type: "chunk";
128
- }
129
- export interface RenderedChunk extends PreRenderedChunk {
130
- dynamicImports: string[];
131
- fileName: string;
132
- implicitlyLoadedBefore: string[];
133
- importedBindings: {
134
- [imported: string]: string[];
135
- };
136
- imports: string[];
137
- modules: {
138
- [id: string]: RenderedModule;
139
- };
140
- referencedFiles: string[];
141
- }
142
- type InputOption = string | string[] | {
143
- [entryAlias: string]: string;
144
- };
145
- export interface InputOptions {
146
- input?: InputOption;
147
- plugins?: Plugin[];
148
- external?: IsExternal;
149
- resolve?: RolldownResolveOptions;
150
- cwd: string;
151
- platform: Platform;
152
- treeshake: boolean;
153
- }
154
- export interface OutputOptions extends Rolldown.OutputOptions {
155
- dir?: string;
156
- format?: "es";
157
- exports?: "default" | "named" | "none" | "auto";
158
- sourcemap?: boolean | "inline" | "hidden";
159
- banner?: string | ((chunk: RenderedChunk) => string | Promise<string>);
160
- footer?: string | ((chunk: RenderedChunk) => string | Promise<string>);
161
- }
162
- export interface RolldownBuildOptions extends InputOptions {
163
- output?: OutputOptions;
164
- }
165
- export type RolldownUserDefinedConfig = string | RolldownBuildOptions | ((config: RolldownBuildOptions) => RolldownBuildOptions | Promise<RolldownBuildOptions>);
166
- export type RolldownOptions = AdditionalCLIOptions & {
167
- clean: boolean;
168
- watch: boolean;
169
- entry: string;
170
- additionalEntryPoints?: string[];
171
- assets: (AssetGlob | string)[];
172
- generatePackageJson: boolean;
173
- includeSrc: boolean;
174
- banner?: OutputOptions["banner"];
175
- footer?: OutputOptions["footer"];
176
- outputPath: string;
177
- skipTypeCheck: boolean;
178
- verbose: boolean;
179
- tsConfig: string;
180
- minify: boolean;
181
- treeshake: boolean;
182
- extractCss: boolean;
183
- sourcemap?: OutputOptions["sourcemap"];
184
- exports?: OutputOptions["exports"];
185
- platform: InputOptions["platform"];
186
- resolve: InputOptions["resolve"];
187
- external: InputOptions["external"];
188
- plugins: Plugin[];
189
- rolldownConfig?: RolldownUserDefinedConfig | RolldownUserDefinedConfig[];
190
- };
191
- export type DeepPartial<T> = T extends object ? {
192
- [P in keyof T]?: DeepPartial<T[P]>;
193
- } : T;
194
- export type UnbuildBuildOptions = AdditionalCLIOptions & Omit<UnbuildOptions, "name" | "rootDir" | "entries" | "externals" | "outDir"> & {
195
- clean: boolean;
196
- watch: boolean;
197
- verbose: boolean;
198
- minify: boolean;
199
- tsLibs: string[];
200
- includeSrc: boolean;
201
- generatePackageJson: boolean;
202
- tsConfig: string;
203
- outputPath: string;
204
- entry?: string;
205
- additionalEntryPoints?: string[];
206
- external?: (string | RegExp)[];
207
- assets: (AssetGlob | string)[];
208
- banner?: OutputOptions["banner"];
209
- footer?: OutputOptions["footer"];
210
- rollupConfig?: DeepPartial<UnbuildRollupBuildOptions> | string;
211
- configPath?: string;
212
- };
213
- export {};
@@ -1,6 +0,0 @@
1
- import type { StormConfig } from "@storm-software/config";
2
- import type { TypeScriptBuildOptions } from "../../declarations";
3
- import type { RolldownOptions, UnbuildBuildOptions } from "../types";
4
- export declare const applyDefaultOptions: (options: Partial<any>, config?: StormConfig) => TypeScriptBuildOptions;
5
- export declare const applyDefaultRolldownOptions: (options: Partial<RolldownOptions>, config?: StormConfig) => RolldownOptions;
6
- export declare const applyDefaultUnbuildOptions: (options: Partial<UnbuildBuildOptions>, config?: StormConfig) => UnbuildBuildOptions;
@@ -1,7 +0,0 @@
1
- import type { ProjectConfiguration, ProjectGraph } from "@nx/devkit";
2
- import type { StormConfig } from "@storm-software/config";
3
- import type { TypeScriptBuildOptions } from "../../declarations";
4
- export declare const generatePackageJson: (config: StormConfig, projectRoot: string, sourceRoot: string, projectName: string, options: TypeScriptBuildOptions) => Promise<Record<string, any>>;
5
- export declare const formatPackageJson: (config: StormConfig, projectRoot: string, sourceRoot: string, projectName: string, options: Pick<TypeScriptBuildOptions, "tsConfig" | "external" | "generatePackageJson" | "bundle" | "includeSrc">, packageJson: Record<string, any>, projectGraph: ProjectGraph, projectsConfigurations: Record<string, ProjectConfiguration>) => Promise<Record<string, any>>;
6
- export declare const addWorkspacePackageJsonFields: (config: StormConfig, projectRoot: string, sourceRoot: string, projectName: string, includeSrc: boolean | undefined, packageJson: Record<string, any>) => Record<string, any>;
7
- export declare const addPackageJsonExports: (sourceRoot: string, packageJson: Record<string, any>) => Promise<Record<string, any>>;
@@ -1,3 +0,0 @@
1
- import type { TypeScriptBuildOptions } from "../../declarations";
2
- import type { StormConfig } from "@storm-software/config";
3
- export declare const getEntryPoints: (config: StormConfig, projectRoot: string, sourceRoot: string, options: TypeScriptBuildOptions) => string[];
@@ -1,8 +0,0 @@
1
- /**
2
- * Get a banner header to display at the top of a file
3
- *
4
- * @param name - The name to use in the display
5
- * @param commentStart - The comment starting token
6
- * @returns The banner header
7
- */
8
- export declare const getFileBanner: (name: string, commentStart?: string) => string;
@@ -1,5 +0,0 @@
1
- import type { ProjectGraph, ProjectGraphExternalNode, ProjectGraphProjectNode } from "@nx/devkit";
2
- import type { DependentBuildableProjectNode } from "@nx/js/src/utils/buildable-libs-utils.js";
3
- export declare function getExtraDependencies(projectName: string, graph: ProjectGraph): DependentBuildableProjectNode[];
4
- export declare function getInternalDependencies(projectName: string, graph: ProjectGraph): ProjectGraphProjectNode[];
5
- export declare function getExternalDependencies(projectName: string, graph: ProjectGraph): ProjectGraphExternalNode[];
@@ -1,7 +0,0 @@
1
- export * from "./out-extension";
2
- export * from "./run-tsup-build";
3
- export * from "./apply-default-options";
4
- export * from "./generate-package-json";
5
- export * from "./get-project-deps";
6
- export * from "./get-file-banner";
7
- export * from "./task-graph";
@@ -1,8 +0,0 @@
1
- import { PackageJson } from "pkg-types";
2
- export declare const outExtension: ({ format, pkgType }: {
3
- format?: string;
4
- pkgType?: PackageJson["type"];
5
- }) => {
6
- js: string;
7
- dts: string;
8
- };
@@ -1,3 +0,0 @@
1
- import type { StormConfig } from "@storm-software/config";
2
- import type { TsupContext, TypeScriptBuildOptions } from "../types";
3
- export declare const runTsupBuild: (context: TsupContext, config: Partial<StormConfig>, options: TypeScriptBuildOptions) => Promise<void>;
@@ -1,6 +0,0 @@
1
- import type { NxJsonConfiguration, TaskGraph, ProjectGraph } from "@nx/devkit";
2
- export declare function getAllWorkspaceTaskGraphs(nxJson: NxJsonConfiguration, projectGraph: ProjectGraph): {
3
- taskGraphs: Record<string, TaskGraph>;
4
- errors: Record<string, string>;
5
- };
6
- export declare function createTaskId(projectId: string, targetId: string, configurationId?: string): string;
@@ -1,3 +0,0 @@
1
- export declare const STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
2
- export declare const STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
3
- export declare const STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";