@powerlines/plugin-env 0.15.60 → 0.15.62
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/README.md +305 -0
- package/dist/babel/plugin.cjs +6 -6
- package/dist/babel/plugin.mjs +6 -6
- package/dist/components/docs.cjs +4 -4
- package/dist/components/docs.mjs +4 -4
- package/dist/components/env.cjs +2 -2
- package/dist/components/env.mjs +2 -2
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/helpers/automd-generator.cjs +2 -2
- package/dist/helpers/automd-generator.mjs +2 -2
- package/dist/helpers/index.cjs +1 -1
- package/dist/helpers/index.mjs +1 -1
- package/dist/helpers/load.cjs +4 -4
- package/dist/helpers/load.mjs +4 -4
- package/dist/helpers/persistence.cjs +6 -6
- package/dist/helpers/persistence.mjs +6 -6
- package/dist/helpers/reflect.cjs +4 -4
- package/dist/helpers/reflect.mjs +4 -4
- package/dist/index.cjs +25 -25
- package/dist/index.mjs +25 -25
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.34/node_modules/@stryke/convert/dist/parse-type-definition.cjs +37 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.34/node_modules/@stryke/convert/dist/parse-type-definition.mjs +37 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.34/node_modules/@stryke/convert/dist/to-array.cjs +15 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.34/node_modules/@stryke/convert/dist/to-array.mjs +14 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.34/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.cjs +15 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.34/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs +14 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.34/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.cjs +6 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.34/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs +6 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.34/node_modules/@stryke/convert/dist/type-checks/src/is-object.cjs +19 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.34/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs +19 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.34/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.cjs +63 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.34/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs +63 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.34/node_modules/@stryke/convert/dist/type-checks/src/is-string.cjs +12 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.34/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs +11 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.34/node_modules/@stryke/convert/dist/type-checks/src/type-detect.cjs +15 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.34/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs +16 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.25.3/node_modules/@stryke/path/dist/is-parent-path.cjs +32 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.25.3/node_modules/@stryke/path/dist/is-parent-path.mjs +32 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.25.3/node_modules/@stryke/path/dist/is-type.cjs +28 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.25.3/node_modules/@stryke/path/dist/is-type.mjs +28 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.25.3/node_modules/@stryke/path/dist/join-paths.cjs +106 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.25.3/node_modules/@stryke/path/dist/join-paths.mjs +106 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.25.3/node_modules/@stryke/path/dist/regex.cjs +12 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.25.3/node_modules/@stryke/path/dist/regex.mjs +8 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.25.3/node_modules/@stryke/path/dist/slash.cjs +15 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.25.3/node_modules/@stryke/path/dist/slash.mjs +14 -0
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.cjs +1 -1
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.mjs +1 -1
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.cjs +1 -1
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +1 -1
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.cjs +1 -1
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs +1 -1
- package/dist/packages/powerlines/src/types/config.d.mts +1 -1
- package/package.json +16 -16
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.32/node_modules/@stryke/convert/dist/parse-type-definition.cjs +0 -31
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.32/node_modules/@stryke/convert/dist/parse-type-definition.mjs +0 -31
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.32/node_modules/@stryke/convert/dist/to-array.cjs +0 -8
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.32/node_modules/@stryke/convert/dist/to-array.mjs +0 -7
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.32/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.cjs +0 -6
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.32/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs +0 -5
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.32/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.cjs +0 -6
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.32/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs +0 -6
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.32/node_modules/@stryke/convert/dist/type-checks/src/is-object.cjs +0 -13
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.32/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs +0 -13
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.32/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.cjs +0 -13
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.32/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs +0 -13
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.32/node_modules/@stryke/convert/dist/type-checks/src/is-string.cjs +0 -12
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.32/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs +0 -11
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.32/node_modules/@stryke/convert/dist/type-checks/src/type-detect.cjs +0 -11
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.32/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs +0 -12
- package/dist/node_modules/.pnpm/@stryke_path@0.24.3/node_modules/@stryke/path/dist/is-parent-path.cjs +0 -10
- package/dist/node_modules/.pnpm/@stryke_path@0.24.3/node_modules/@stryke/path/dist/is-parent-path.mjs +0 -10
- package/dist/node_modules/.pnpm/@stryke_path@0.24.3/node_modules/@stryke/path/dist/is-type.cjs +0 -13
- package/dist/node_modules/.pnpm/@stryke_path@0.24.3/node_modules/@stryke/path/dist/is-type.mjs +0 -13
- package/dist/node_modules/.pnpm/@stryke_path@0.24.3/node_modules/@stryke/path/dist/join-paths.cjs +0 -49
- package/dist/node_modules/.pnpm/@stryke_path@0.24.3/node_modules/@stryke/path/dist/join-paths.mjs +0 -49
- package/dist/node_modules/.pnpm/@stryke_path@0.24.3/node_modules/@stryke/path/dist/regex.cjs +0 -9
- package/dist/node_modules/.pnpm/@stryke_path@0.24.3/node_modules/@stryke/path/dist/regex.mjs +0 -5
- package/dist/node_modules/.pnpm/@stryke_path@0.24.3/node_modules/@stryke/path/dist/slash.cjs +0 -8
- package/dist/node_modules/.pnpm/@stryke_path@0.24.3/node_modules/@stryke/path/dist/slash.mjs +0 -7
- /package/dist/node_modules/.pnpm/{@stryke_convert@0.6.32 → @stryke_convert@0.6.34}/node_modules/@stryke/convert/dist/type-checks/src/index.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@stryke_convert@0.6.32 → @stryke_convert@0.6.34}/node_modules/@stryke/convert/dist/type-checks/src/index.mjs +0 -0
- /package/dist/node_modules/.pnpm/{@stryke_convert@0.6.32 → @stryke_convert@0.6.34}/node_modules/@stryke/convert/dist/type-checks/src/is-collection.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@stryke_convert@0.6.32 → @stryke_convert@0.6.34}/node_modules/@stryke/convert/dist/type-checks/src/is-collection.mjs +0 -0
package/README.md
ADDED
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
<!-- START header -->
|
|
2
|
+
<!-- prettier-ignore-start -->
|
|
3
|
+
<!-- markdownlint-disable -->
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<div align="center">
|
|
7
|
+
<picture>
|
|
8
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/powerlines/banner-1280x640-dark.gif">
|
|
9
|
+
<source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/powerlines/banner-1280x640-light.gif">
|
|
10
|
+
<img src="https://public.storm-cdn.com/powerlines/banner-1280x640-dark.gif" width="100%" alt="Powerlines" />
|
|
11
|
+
</picture>
|
|
12
|
+
</div>
|
|
13
|
+
<br />
|
|
14
|
+
|
|
15
|
+
<div align="center">
|
|
16
|
+
<b>
|
|
17
|
+
<a href="https://stormsoftware.com" target="_blank">Website</a> •
|
|
18
|
+
<a href="https://github.com/storm-software/powerlines" target="_blank">GitHub</a> •
|
|
19
|
+
<a href="https://discord.gg/MQ6YVzakM5">Discord</a> • <a href="https://stormstack.github.io/stormstack/" target="_blank">Docs</a> • <a href="https://stormsoftware.com/contact" target="_blank">Contact</a> •
|
|
20
|
+
<a href="https://github.com/storm-software/powerlines/issues/new?assignees=&labels=bug&template=bug-report.yml&title=Bug Report%3A+">Report a Bug</a>
|
|
21
|
+
</b>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
<br />
|
|
25
|
+
This package is part of the 🔌 <b>Powerlines</b> monorepo. Powerlines packages include CLI utility applications, tools, and various libraries used to create modern, scalable web applications.
|
|
26
|
+
<br />
|
|
27
|
+
|
|
28
|
+
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
|
+
|
|
30
|
+
[](https://prettier.io/) [](http://commitizen.github.io/cz-cli/)  
|
|
31
|
+
|
|
32
|
+
<!-- prettier-ignore-start -->
|
|
33
|
+
<!-- markdownlint-disable -->
|
|
34
|
+
|
|
35
|
+
> [!IMPORTANT]
|
|
36
|
+
> 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 available 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.
|
|
37
|
+
|
|
38
|
+
<!-- markdownlint-restore -->
|
|
39
|
+
<!-- prettier-ignore-end -->
|
|
40
|
+
|
|
41
|
+
<div align="center">
|
|
42
|
+
<a href="https://github.com/storm-software/powerlines" target="_blank"><b>Be sure to ⭐ this repository on GitHub so you can keep up to date with it's progress!</b></a>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<br />
|
|
46
|
+
|
|
47
|
+
<!-- markdownlint-restore -->
|
|
48
|
+
<!-- prettier-ignore-end -->
|
|
49
|
+
|
|
50
|
+
<!-- END header -->
|
|
51
|
+
|
|
52
|
+
# Powerlines - Environment Configuration Plugin
|
|
53
|
+
|
|
54
|
+
A package containing a Powerlines plugin for injecting configuration parameter
|
|
55
|
+
values into the code so that they're accessible at runtime.
|
|
56
|
+
|
|
57
|
+
<!-- START doctoc -->
|
|
58
|
+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
59
|
+
|
|
60
|
+
## Table of Contents
|
|
61
|
+
|
|
62
|
+
- [Powerlines - Environment Configuration Plugin](#powerlines---environment-configuration-plugin)
|
|
63
|
+
- [Table of Contents](#table-of-contents)
|
|
64
|
+
- [Installing](#installing)
|
|
65
|
+
- [Reduced Package Size](#reduced-package-size)
|
|
66
|
+
- [Development](#development)
|
|
67
|
+
- [Building](#building)
|
|
68
|
+
- [Running unit tests](#running-unit-tests)
|
|
69
|
+
- [Linting](#linting)
|
|
70
|
+
- [Storm Workspaces](#storm-workspaces)
|
|
71
|
+
- [Roadmap](#roadmap)
|
|
72
|
+
- [Support](#support)
|
|
73
|
+
- [License](#license)
|
|
74
|
+
- [Changelog](#changelog)
|
|
75
|
+
- [Contributing](#contributing)
|
|
76
|
+
- [Contributors](#contributors)
|
|
77
|
+
|
|
78
|
+
<!-- END doctoc -->
|
|
79
|
+
|
|
80
|
+
## Installing
|
|
81
|
+
|
|
82
|
+
Using [pnpm](http://pnpm.io):
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
pnpm add @powerlines/plugin-env
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
<details>
|
|
89
|
+
<summary>Using npm</summary>
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
npm install @powerlines/plugin-env
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
</details>
|
|
96
|
+
|
|
97
|
+
<details>
|
|
98
|
+
<summary>Using yarn</summary>
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
yarn add @powerlines/plugin-env
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
</details>
|
|
105
|
+
|
|
106
|
+
## Reduced Package Size
|
|
107
|
+
|
|
108
|
+
This project uses [tsup](https://tsup.egoist.dev/) to package the source code
|
|
109
|
+
due to its ability to remove unused code and ship smaller javascript files
|
|
110
|
+
thanks to code splitting. This helps to greatly reduce the size of the package
|
|
111
|
+
and to make it easier to use in other projects.
|
|
112
|
+
|
|
113
|
+
## Development
|
|
114
|
+
|
|
115
|
+
This project is built using [Nx](https://nx.dev). As a result, many of the usual
|
|
116
|
+
commands are available to assist in development.
|
|
117
|
+
|
|
118
|
+
### Building
|
|
119
|
+
|
|
120
|
+
Run `nx build plugin-env` to build the library.
|
|
121
|
+
|
|
122
|
+
### Running unit tests
|
|
123
|
+
|
|
124
|
+
Run `nx test plugin-env` to execute the unit tests via
|
|
125
|
+
[Jest](https://jestjs.io).
|
|
126
|
+
|
|
127
|
+
### Linting
|
|
128
|
+
|
|
129
|
+
Run `nx lint plugin-env` to run [ESLint](https://eslint.org/) on the package.
|
|
130
|
+
|
|
131
|
+
<!-- START footer -->
|
|
132
|
+
<!-- prettier-ignore-start -->
|
|
133
|
+
<!-- markdownlint-disable -->
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
## Storm Workspaces
|
|
137
|
+
|
|
138
|
+
Storm workspaces are built using
|
|
139
|
+
<a href="https://nx.dev/" target="_blank">Nx</a>, a set of extensible dev tools
|
|
140
|
+
for monorepos, which helps you develop like Google, Facebook, and Microsoft.
|
|
141
|
+
Building on top of Nx, the Open System provides a set of tools and patterns that
|
|
142
|
+
help you scale your monorepo to many teams while keeping the codebase
|
|
143
|
+
maintainable.
|
|
144
|
+
|
|
145
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
146
|
+
<br />
|
|
147
|
+
|
|
148
|
+
## Roadmap
|
|
149
|
+
|
|
150
|
+
See the [open issues](https://github.com/storm-software/powerlines/issues) for
|
|
151
|
+
a list of proposed features (and known issues).
|
|
152
|
+
|
|
153
|
+
- [Top Feature Requests](https://github.com/storm-software/powerlines/issues?q=label%3Aenhancement+is%3Aopen+sort%3Areactions-%2B1-desc)
|
|
154
|
+
(Add your votes using the 👍 reaction)
|
|
155
|
+
- [Top Bugs](https://github.com/storm-software/powerlines/issues?q=is%3Aissue+is%3Aopen+label%3Abug+sort%3Areactions-%2B1-desc)
|
|
156
|
+
(Add your votes using the 👍 reaction)
|
|
157
|
+
- [Newest Bugs](https://github.com/storm-software/powerlines/issues?q=is%3Aopen+is%3Aissue+label%3Abug)
|
|
158
|
+
|
|
159
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
160
|
+
<br />
|
|
161
|
+
|
|
162
|
+
## Support
|
|
163
|
+
|
|
164
|
+
Reach out to the maintainer at one of the following places:
|
|
165
|
+
|
|
166
|
+
- [Contact](https://stormsoftware.com/contact)
|
|
167
|
+
- [GitHub discussions](https://github.com/storm-software/powerlines/discussions)
|
|
168
|
+
- <support@stormsoftware.com>
|
|
169
|
+
|
|
170
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
171
|
+
<br />
|
|
172
|
+
|
|
173
|
+
## License
|
|
174
|
+
|
|
175
|
+
This project is licensed under the **Apache License 2.0**. Feel free to edit and
|
|
176
|
+
distribute this template as you like.
|
|
177
|
+
|
|
178
|
+
See [LICENSE](LICENSE) for more information.
|
|
179
|
+
|
|
180
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
181
|
+
<br />
|
|
182
|
+
|
|
183
|
+
## Changelog
|
|
184
|
+
|
|
185
|
+
This project adheres to
|
|
186
|
+
[Semantic Versioning](https://semver.org/spec/v2.0.0.html). Every release, along
|
|
187
|
+
with the migration instructions, is documented in the [CHANGELOG](CHANGELOG.md)
|
|
188
|
+
file
|
|
189
|
+
|
|
190
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
191
|
+
<br />
|
|
192
|
+
|
|
193
|
+
## Contributing
|
|
194
|
+
|
|
195
|
+
First off, thanks for taking the time to contribute! Contributions are what
|
|
196
|
+
makes the open-source community such an amazing place to learn, inspire, and
|
|
197
|
+
create. Any contributions you make will benefit everybody else and are **greatly
|
|
198
|
+
appreciated**.
|
|
199
|
+
|
|
200
|
+
Please try to create bug reports that are:
|
|
201
|
+
|
|
202
|
+
- _Reproducible._ Include steps to reproduce the problem.
|
|
203
|
+
- _Specific._ Include as much detail as possible: which version, what
|
|
204
|
+
environment, etc.
|
|
205
|
+
- _Unique._ Do not duplicate existing opened issues.
|
|
206
|
+
- _Scoped to a Single Bug._ One bug per report.
|
|
207
|
+
|
|
208
|
+
Please adhere to this project's [code of conduct](.github/CODE_OF_CONDUCT.md).
|
|
209
|
+
|
|
210
|
+
You can use
|
|
211
|
+
[markdownlint-cli](https://github.com/storm-software/powerlines/markdownlint-cli)
|
|
212
|
+
to check for common markdown style inconsistency.
|
|
213
|
+
|
|
214
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
215
|
+
<br />
|
|
216
|
+
|
|
217
|
+
## Contributors
|
|
218
|
+
|
|
219
|
+
Thanks goes to these wonderful people
|
|
220
|
+
([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|
|
221
|
+
|
|
222
|
+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
|
223
|
+
|
|
224
|
+
<table>
|
|
225
|
+
<tbody>
|
|
226
|
+
<tr>
|
|
227
|
+
<td align="center" valign="top" width="14.28%"><a href="http://www.sullypat.com/"><img src="https://avatars.githubusercontent.com/u/99053093?v=4?s=100" width="100px;" alt="Patrick Sullivan"/><br /><sub><b>Patrick Sullivan</b></sub></a><br /><a href="#design-sullivanpj" title="Design">🎨</a> <a href="https://github.com/storm-software/powerlines/commits?author=sullivanpj" title="Code">💻</a> <a href="#tool-sullivanpj" title="Tools">🔧</a> <a href="https://github.com/storm-software/powerlines/commits?author=sullivanpj" title="Documentation">📖</a> <a href="https://github.com/storm-software/powerlines/commits?author=sullivanpj" title="Tests">⚠️</a></td>
|
|
228
|
+
<td align="center" valign="top" width="14.28%"><a href="https://tylerbenning.com/"><img src="https://avatars.githubusercontent.com/u/7265547?v=4?s=100" width="100px;" alt="Tyler Benning"/><br /><sub><b>Tyler Benning</b></sub></a><br /><a href="#design-tbenning" title="Design">🎨</a></td>
|
|
229
|
+
<td align="center" valign="top" width="14.28%"><a href="http://stormsoftware.com"><img src="https://avatars.githubusercontent.com/u/149802440?v=4?s=100" width="100px;" alt="Stormie"/><br /><sub><b>Stormie</b></sub></a><br /><a href="#maintenance-stormie-bot" title="Maintenance">🚧</a></td>
|
|
230
|
+
</tr>
|
|
231
|
+
</tbody>
|
|
232
|
+
<tfoot>
|
|
233
|
+
<tr>
|
|
234
|
+
<td align="center" size="13px" colspan="7">
|
|
235
|
+
<img src="https://raw.githubusercontent.com/all-contributors/all-contributors-cli/1b8533af435da9854653492b1327a23a4dbd0a10/assets/logo-small.svg" alt="All Contributors">
|
|
236
|
+
<a href="https://all-contributors.js.org/docs/en/bot/usage">Add your contributions</a>
|
|
237
|
+
</img>
|
|
238
|
+
</td>
|
|
239
|
+
</tr>
|
|
240
|
+
</tfoot>
|
|
241
|
+
</table>
|
|
242
|
+
|
|
243
|
+
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
244
|
+
|
|
245
|
+
This project follows the
|
|
246
|
+
[all-contributors](https://github.com/all-contributors/all-contributors)
|
|
247
|
+
specification. Contributions of any kind welcome!
|
|
248
|
+
|
|
249
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
250
|
+
<br />
|
|
251
|
+
|
|
252
|
+
<hr />
|
|
253
|
+
<br />
|
|
254
|
+
|
|
255
|
+
<div align="center">
|
|
256
|
+
<picture>
|
|
257
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-dark.webp">
|
|
258
|
+
<source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-light.webp">
|
|
259
|
+
<img src="https://public.storm-cdn.com/storm-software/banner-1280x320-dark.webp" width="100%" alt="Storm Software" />
|
|
260
|
+
</picture>
|
|
261
|
+
</div>
|
|
262
|
+
<br />
|
|
263
|
+
|
|
264
|
+
<div align="center">
|
|
265
|
+
<a href="https://stormsoftware.com" target="_blank">Website</a> • <a href="https://stormsoftware.com/contact" target="_blank">Contact</a> • <a href="https://linkedin.com/in/patrick-sullivan-865526b0" target="_blank">LinkedIn</a> • <a href="https://medium.com/@pat.joseph.sullivan" target="_blank">Medium</a> • <a href="https://github.com/storm-software" target="_blank">GitHub</a> • <a href="https://keybase.io/sullivanp" target="_blank">OpenPGP Key</a>
|
|
266
|
+
</div>
|
|
267
|
+
|
|
268
|
+
<div align="center">
|
|
269
|
+
<b>Fingerprint:</b> 1BD2 7192 7770 2549 F4C9 F238 E6AD C420 DA5C 4C2D
|
|
270
|
+
</div>
|
|
271
|
+
<br />
|
|
272
|
+
|
|
273
|
+
Storm Software is an open source software development organization and creator
|
|
274
|
+
of Acidic, StormStack and StormCloud.
|
|
275
|
+
|
|
276
|
+
Our mission is to make software development more accessible. Our ideal future is
|
|
277
|
+
one where anyone can create software without years of prior development
|
|
278
|
+
experience serving as a barrier to entry. We hope to achieve this via LLMs,
|
|
279
|
+
Generative AI, and intuitive, high-level data modeling/programming languages.
|
|
280
|
+
|
|
281
|
+
Join us on [Discord](https://discord.gg/MQ6YVzakM5) to chat with the team,
|
|
282
|
+
receive release notifications, ask questions, and get involved.
|
|
283
|
+
|
|
284
|
+
If this sounds interesting, and you would like to help us in creating the next
|
|
285
|
+
generation of development tools, please reach out on our
|
|
286
|
+
[website](https://stormsoftware.com/contact) or join our
|
|
287
|
+
[Slack channel](https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA)!
|
|
288
|
+
|
|
289
|
+
<br />
|
|
290
|
+
|
|
291
|
+
<div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://public.storm-cdn.com/icon-fill.png" alt="Storm Software" width="200px"/></a></div>
|
|
292
|
+
<br />
|
|
293
|
+
<div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://public.storm-cdn.com/visit-us-text.svg" alt="Visit us at stormsoftware.com" height="90px"/></a></div>
|
|
294
|
+
|
|
295
|
+
<br />
|
|
296
|
+
|
|
297
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
298
|
+
<br />
|
|
299
|
+
<br />
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
<!-- markdownlint-restore -->
|
|
303
|
+
<!-- prettier-ignore-end -->
|
|
304
|
+
|
|
305
|
+
<!-- END footer -->
|
package/dist/babel/plugin.cjs
CHANGED
|
@@ -2,18 +2,18 @@ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
|
2
2
|
const require_types_plugin = require('../types/plugin.cjs');
|
|
3
3
|
const require_helpers_persistence = require('../helpers/persistence.cjs');
|
|
4
4
|
let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
5
|
-
let __storm_software_config_tools_types = require("@storm-software/config-tools/types");
|
|
6
|
-
let powerlines_types_babel = require("powerlines/types/babel");
|
|
7
|
-
let __babel_core = require("@babel/core");
|
|
8
5
|
let __powerlines_deepkit_capnp = require("@powerlines/deepkit/capnp");
|
|
9
6
|
let __powerlines_deepkit_schemas_reflection = require("@powerlines/deepkit/schemas/reflection");
|
|
10
|
-
let __powerlines_deepkit_utilities = require("@powerlines/deepkit/utilities");
|
|
11
|
-
let __powerlines_plugin_babel_helpers_create_plugin = require("@powerlines/plugin-babel/helpers/create-plugin");
|
|
12
|
-
let __powerlines_plugin_babel_helpers_module_helpers = require("@powerlines/plugin-babel/helpers/module-helpers");
|
|
13
7
|
let __stryke_capnp = require("@stryke/capnp");
|
|
14
8
|
__stryke_capnp = require_rolldown_runtime.__toESM(__stryke_capnp);
|
|
15
9
|
let __stryke_fs_buffer = require("@stryke/fs/buffer");
|
|
16
10
|
let node_fs = require("node:fs");
|
|
11
|
+
let powerlines_types_babel = require("powerlines/types/babel");
|
|
12
|
+
let __babel_core = require("@babel/core");
|
|
13
|
+
let __powerlines_deepkit_utilities = require("@powerlines/deepkit/utilities");
|
|
14
|
+
let __powerlines_plugin_babel_helpers_create_plugin = require("@powerlines/plugin-babel/helpers/create-plugin");
|
|
15
|
+
let __powerlines_plugin_babel_helpers_module_helpers = require("@powerlines/plugin-babel/helpers/module-helpers");
|
|
16
|
+
let __storm_software_config_tools_types = require("@storm-software/config-tools/types");
|
|
17
17
|
|
|
18
18
|
//#region src/babel/plugin.ts
|
|
19
19
|
function __assignType(fn, args) {
|
package/dist/babel/plugin.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { __ΩEnvPluginContext } from "../types/plugin.mjs";
|
|
2
2
|
import { getEnvReflectionsPath } from "../helpers/persistence.mjs";
|
|
3
3
|
import { ReflectionClass, ReflectionKind, deserializeType, resolveClassType } from "@powerlines/deepkit/vendor/type";
|
|
4
|
-
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
5
|
-
import { __ΩBabelPluginPass } from "powerlines/types/babel";
|
|
6
|
-
import { NodePath } from "@babel/core";
|
|
7
4
|
import { convertFromCapnp } from "@powerlines/deepkit/capnp";
|
|
8
5
|
import { SerializedTypes } from "@powerlines/deepkit/schemas/reflection";
|
|
9
|
-
import { stringifyDefaultValue } from "@powerlines/deepkit/utilities";
|
|
10
|
-
import { createBabelPlugin } from "@powerlines/plugin-babel/helpers/create-plugin";
|
|
11
|
-
import { addImport } from "@powerlines/plugin-babel/helpers/module-helpers";
|
|
12
6
|
import * as capnp from "@stryke/capnp";
|
|
13
7
|
import { readFileBufferSync } from "@stryke/fs/buffer";
|
|
14
8
|
import { existsSync } from "node:fs";
|
|
9
|
+
import { __ΩBabelPluginPass } from "powerlines/types/babel";
|
|
10
|
+
import { NodePath } from "@babel/core";
|
|
11
|
+
import { stringifyDefaultValue } from "@powerlines/deepkit/utilities";
|
|
12
|
+
import { createBabelPlugin } from "@powerlines/plugin-babel/helpers/create-plugin";
|
|
13
|
+
import { addImport } from "@powerlines/plugin-babel/helpers/module-helpers";
|
|
14
|
+
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
15
15
|
|
|
16
16
|
//#region src/babel/plugin.ts
|
|
17
17
|
function __assignType(fn, args) {
|
package/dist/components/docs.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_join_paths = require('../node_modules/.pnpm/@stryke_path@0.
|
|
2
|
+
const require_join_paths = require('../node_modules/.pnpm/@stryke_path@0.25.3/node_modules/@stryke/path/dist/join-paths.cjs');
|
|
3
3
|
const require_helpers_create_reflection_resource = require('../helpers/create-reflection-resource.cjs');
|
|
4
|
-
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
5
4
|
let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
6
5
|
let __alloy_js_core = require("@alloy-js/core");
|
|
7
|
-
let
|
|
6
|
+
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
8
7
|
let __alloy_js_markdown = require("@alloy-js/markdown");
|
|
8
|
+
let __powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
|
|
9
9
|
let __powerlines_plugin_alloy_markdown_components_markdown_file = require("@powerlines/plugin-alloy/markdown/components/markdown-file");
|
|
10
10
|
let __powerlines_plugin_alloy_markdown_components_markdown_table = require("@powerlines/plugin-alloy/markdown/components/markdown-table");
|
|
11
11
|
|
|
@@ -19,7 +19,7 @@ function EnvDocs() {
|
|
|
19
19
|
const reflection = require_helpers_create_reflection_resource.createReflectionResource(context);
|
|
20
20
|
return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_markdown_components_markdown_file.MarkdownFile, {
|
|
21
21
|
get path() {
|
|
22
|
-
return require_join_paths.
|
|
22
|
+
return require_join_paths.joinPaths(context.config.projectRoot, "docs", "generated", "env.md");
|
|
23
23
|
},
|
|
24
24
|
get children() {
|
|
25
25
|
return [
|
package/dist/components/docs.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { joinPaths } from "../node_modules/.pnpm/@stryke_path@0.25.3/node_modules/@stryke/path/dist/join-paths.mjs";
|
|
2
2
|
import { createReflectionResource } from "../helpers/create-reflection-resource.mjs";
|
|
3
|
-
import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
4
3
|
import { stringifyType } from "@powerlines/deepkit/vendor/type";
|
|
5
4
|
import { Show, code } from "@alloy-js/core";
|
|
6
|
-
import {
|
|
5
|
+
import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
7
6
|
import { Heading, Link } from "@alloy-js/markdown";
|
|
7
|
+
import { usePowerlinesSafe } from "@powerlines/plugin-alloy/core/contexts/context";
|
|
8
8
|
import { MarkdownFile } from "@powerlines/plugin-alloy/markdown/components/markdown-file";
|
|
9
9
|
import { MarkdownTable } from "@powerlines/plugin-alloy/markdown/components/markdown-table";
|
|
10
10
|
|
|
@@ -18,7 +18,7 @@ function EnvDocs() {
|
|
|
18
18
|
const reflection = createReflectionResource(context);
|
|
19
19
|
return createComponent(MarkdownFile, {
|
|
20
20
|
get path() {
|
|
21
|
-
return
|
|
21
|
+
return joinPaths(context.config.projectRoot, "docs", "generated", "env.md");
|
|
22
22
|
},
|
|
23
23
|
get children() {
|
|
24
24
|
return [
|
package/dist/components/env.cjs
CHANGED
|
@@ -2,12 +2,12 @@ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
|
2
2
|
const require_defu = require('../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs');
|
|
3
3
|
const require_helpers_load = require('../helpers/load.cjs');
|
|
4
4
|
const require_helpers_create_reflection_resource = require('../helpers/create-reflection-resource.cjs');
|
|
5
|
-
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
5
|
let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
7
6
|
let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
8
7
|
let __alloy_js_core = require("@alloy-js/core");
|
|
9
|
-
let
|
|
8
|
+
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
10
9
|
let __powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
|
|
10
|
+
let __alloy_js_typescript = require("@alloy-js/typescript");
|
|
11
11
|
let __powerlines_plugin_alloy_helpers_refkey = require("@powerlines/plugin-alloy/helpers/refkey");
|
|
12
12
|
let __powerlines_plugin_alloy_typescript_components_builtin_file = require("@powerlines/plugin-alloy/typescript/components/builtin-file");
|
|
13
13
|
let __powerlines_plugin_alloy_typescript_components_tsdoc = require("@powerlines/plugin-alloy/typescript/components/tsdoc");
|
package/dist/components/env.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defu } from "../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs";
|
|
2
2
|
import { loadEnvFromContext } from "../helpers/load.mjs";
|
|
3
3
|
import { createReflectionResource } from "../helpers/create-reflection-resource.mjs";
|
|
4
|
-
import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
5
4
|
import { ReflectionClass, ReflectionKind } from "@powerlines/deepkit/vendor/type";
|
|
6
5
|
import { titleCase } from "@stryke/string-format/title-case";
|
|
7
6
|
import { For, Show, code, computed, splitProps } from "@alloy-js/core";
|
|
8
|
-
import {
|
|
7
|
+
import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
9
8
|
import { usePowerlinesSafe } from "@powerlines/plugin-alloy/core/contexts/context";
|
|
9
|
+
import { ClassDeclaration, ClassMethod, ElseIfClause, FunctionDeclaration, IfStatement, NewExpression, TypeDeclaration, VarDeclaration } from "@alloy-js/typescript";
|
|
10
10
|
import { refkey } from "@powerlines/plugin-alloy/helpers/refkey";
|
|
11
11
|
import { BuiltinFile } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
|
|
12
12
|
import { TSDoc, TSDocExample, TSDocLink, TSDocParam, TSDocRemarks, TSDocReturns, TSDocThrows } from "@powerlines/plugin-alloy/typescript/components/tsdoc";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_components_env = require('./env.cjs');
|
|
2
1
|
const require_components_docs = require('./docs.cjs');
|
|
2
|
+
const require_components_env = require('./env.cjs');
|
|
3
3
|
|
|
4
4
|
exports.EnvBuiltin = require_components_env.EnvBuiltin;
|
|
5
5
|
exports.EnvDocs = require_components_docs.EnvDocs;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_join_paths = require('../node_modules/.pnpm/@stryke_path@0.
|
|
2
|
+
const require_join_paths = require('../node_modules/.pnpm/@stryke_path@0.25.3/node_modules/@stryke/path/dist/join-paths.cjs');
|
|
3
3
|
let powerlines_types_context = require("powerlines/types/context");
|
|
4
4
|
let automd = require("automd");
|
|
5
5
|
|
|
@@ -17,7 +17,7 @@ function __assignType(fn, args) {
|
|
|
17
17
|
const env = __assignType((context) => (0, automd.defineGenerator)({
|
|
18
18
|
name: "env",
|
|
19
19
|
generate: __assignType(async function generate() {
|
|
20
|
-
const envDocFile = require_join_paths.
|
|
20
|
+
const envDocFile = require_join_paths.joinPaths(context.config.projectRoot, "docs", "generated", "env.md");
|
|
21
21
|
if (!context.fs.existsSync(envDocFile)) return { contents: "" };
|
|
22
22
|
return { contents: await context.fs.read(envDocFile) || "" };
|
|
23
23
|
}, ["generate", "P\"/!"])
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { joinPaths } from "../node_modules/.pnpm/@stryke_path@0.25.3/node_modules/@stryke/path/dist/join-paths.mjs";
|
|
2
2
|
import { __ΩUnresolvedContext } from "powerlines/types/context";
|
|
3
3
|
import { defineGenerator } from "automd";
|
|
4
4
|
|
|
@@ -16,7 +16,7 @@ function __assignType(fn, args) {
|
|
|
16
16
|
const env = __assignType((context) => defineGenerator({
|
|
17
17
|
name: "env",
|
|
18
18
|
generate: __assignType(async function generate() {
|
|
19
|
-
const envDocFile =
|
|
19
|
+
const envDocFile = joinPaths(context.config.projectRoot, "docs", "generated", "env.md");
|
|
20
20
|
if (!context.fs.existsSync(envDocFile)) return { contents: "" };
|
|
21
21
|
return { contents: await context.fs.read(envDocFile) || "" };
|
|
22
22
|
}, ["generate", "P\"/!"])
|
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_helpers_reflect = require('./reflect.cjs');
|
|
2
2
|
const require_helpers_persistence = require('./persistence.cjs');
|
|
3
|
+
const require_helpers_template_helpers = require('./template-helpers.cjs');
|
|
3
4
|
const require_helpers_source_file_env = require('./source-file-env.cjs');
|
|
4
5
|
const require_helpers_load = require('./load.cjs');
|
|
5
6
|
const require_helpers_create_reflection_resource = require('./create-reflection-resource.cjs');
|
|
6
|
-
const require_helpers_template_helpers = require('./template-helpers.cjs');
|
|
7
7
|
|
|
8
8
|
exports.BaseEnv = require_helpers_reflect.BaseEnv;
|
|
9
9
|
exports.BaseSecrets = require_helpers_reflect.BaseSecrets;
|
package/dist/helpers/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BaseEnv, BaseSecrets, __ΩCreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets } from "./reflect.mjs";
|
|
2
2
|
import { getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, readEnvReflection, readEnvTypeReflection, readSecretsReflection, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection } from "./persistence.mjs";
|
|
3
|
+
import { createTemplateReflection } from "./template-helpers.mjs";
|
|
3
4
|
import { formatEnvField, removeEnvPrefix } from "./source-file-env.mjs";
|
|
4
5
|
import { loadEnv, loadEnvFromContext } from "./load.mjs";
|
|
5
6
|
import { createReflectionResource } from "./create-reflection-resource.mjs";
|
|
6
|
-
import { createTemplateReflection } from "./template-helpers.mjs";
|
|
7
7
|
|
|
8
8
|
export { BaseEnv, BaseSecrets, __ΩCreateEnvReflectionOptions, createEnvReflection, createReflectionResource, createSecretsReflection, createTemplateReflection, formatEnvField, getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, loadEnv, loadEnvFromContext, mergeEnvReflections, mergeSecretsReflections, readEnvReflection, readEnvTypeReflection, readSecretsReflection, reflectEnv, reflectSecrets, removeEnvPrefix, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection };
|
package/dist/helpers/load.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_join_paths = require('../node_modules/.pnpm/@stryke_path@0.24.3/node_modules/@stryke/path/dist/join-paths.cjs');
|
|
3
|
-
const require_defu = require('../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs');
|
|
4
2
|
const require_types_plugin = require('../types/plugin.cjs');
|
|
5
|
-
const
|
|
3
|
+
const require_join_paths = require('../node_modules/.pnpm/@stryke_path@0.25.3/node_modules/@stryke/path/dist/join-paths.cjs');
|
|
6
4
|
const require_helpers_source_file_env = require('./source-file-env.cjs');
|
|
5
|
+
const require_defu = require('../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs');
|
|
6
|
+
const require_index = require('../node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.cjs');
|
|
7
7
|
let powerlines_types_config = require("powerlines/types/config");
|
|
8
8
|
let __stryke_env_load_env = require("@stryke/env/load-env");
|
|
9
9
|
let __stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
|
|
@@ -49,7 +49,7 @@ async function loadEnvDirectory(options, directory, mode, cacheDir, packageJson,
|
|
|
49
49
|
packageJson: true,
|
|
50
50
|
dotenv: true,
|
|
51
51
|
jitiOptions: {
|
|
52
|
-
fsCache: require_join_paths.
|
|
52
|
+
fsCache: require_join_paths.joinPaths(cacheDir, "jiti"),
|
|
53
53
|
moduleCache: true
|
|
54
54
|
}
|
|
55
55
|
})]);
|
package/dist/helpers/load.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { o } from "../node_modules/.pnpm/@stryke_path@0.24.3/node_modules/@stryke/path/dist/join-paths.mjs";
|
|
2
|
-
import { defu } from "../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs";
|
|
3
1
|
import { __ΩEnvPluginContext, __ΩEnvPluginOptions } from "../types/plugin.mjs";
|
|
4
|
-
import {
|
|
2
|
+
import { joinPaths } from "../node_modules/.pnpm/@stryke_path@0.25.3/node_modules/@stryke/path/dist/join-paths.mjs";
|
|
5
3
|
import { removeEnvPrefix } from "./source-file-env.mjs";
|
|
4
|
+
import { defu } from "../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs";
|
|
5
|
+
import { loadConfig } from "../node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.mjs";
|
|
6
6
|
import { __ΩWorkspaceConfig } from "powerlines/types/config";
|
|
7
7
|
import { loadEnv as loadEnv$1, loadEnvFile } from "@stryke/env/load-env";
|
|
8
8
|
import { kebabCase } from "@stryke/string-format/kebab-case";
|
|
@@ -48,7 +48,7 @@ async function loadEnvDirectory(options, directory, mode, cacheDir, packageJson,
|
|
|
48
48
|
packageJson: true,
|
|
49
49
|
dotenv: true,
|
|
50
50
|
jitiOptions: {
|
|
51
|
-
fsCache:
|
|
51
|
+
fsCache: joinPaths(cacheDir, "jiti"),
|
|
52
52
|
moduleCache: true
|
|
53
53
|
}
|
|
54
54
|
})]);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_join_paths = require('../node_modules/.pnpm/@stryke_path@0.24.3/node_modules/@stryke/path/dist/join-paths.cjs');
|
|
3
2
|
const require_types_plugin = require('../types/plugin.cjs');
|
|
3
|
+
const require_join_paths = require('../node_modules/.pnpm/@stryke_path@0.25.3/node_modules/@stryke/path/dist/join-paths.cjs');
|
|
4
4
|
const require_helpers_reflect = require('./reflect.cjs');
|
|
5
5
|
let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
6
|
+
let powerlines_types_context = require("powerlines/types/context");
|
|
6
7
|
let __powerlines_deepkit_capnp = require("@powerlines/deepkit/capnp");
|
|
8
|
+
let __powerlines_deepkit_resolve_reflections = require("@powerlines/deepkit/resolve-reflections");
|
|
7
9
|
let __powerlines_deepkit_schemas_reflection = require("@powerlines/deepkit/schemas/reflection");
|
|
8
10
|
let __stryke_capnp = require("@stryke/capnp");
|
|
9
11
|
__stryke_capnp = require_rolldown_runtime.__toESM(__stryke_capnp);
|
|
10
12
|
let __stryke_fs_buffer = require("@stryke/fs/buffer");
|
|
11
|
-
let node_fs = require("node:fs");
|
|
12
|
-
let powerlines_types_context = require("powerlines/types/context");
|
|
13
|
-
let __powerlines_deepkit_resolve_reflections = require("@powerlines/deepkit/resolve-reflections");
|
|
14
13
|
let __stryke_type_checks_is_empty_object = require("@stryke/type-checks/is-empty-object");
|
|
14
|
+
let node_fs = require("node:fs");
|
|
15
15
|
|
|
16
16
|
//#region src/helpers/persistence.ts
|
|
17
17
|
/**
|
|
@@ -79,7 +79,7 @@ getSecretsDefaultTypeDefinition.__type = [
|
|
|
79
79
|
* @returns The path to the environment type reflections.
|
|
80
80
|
*/
|
|
81
81
|
function getEnvTypeReflectionsPath(context, name = "env") {
|
|
82
|
-
return require_join_paths.
|
|
82
|
+
return require_join_paths.joinPaths((0, __powerlines_deepkit_resolve_reflections.getReflectionsPath)(context), "env", `${name}-types.bin`);
|
|
83
83
|
}
|
|
84
84
|
getEnvTypeReflectionsPath.__type = [
|
|
85
85
|
() => powerlines_types_context.__ΩContext,
|
|
@@ -157,7 +157,7 @@ writeEnvTypeReflection.__type = [
|
|
|
157
157
|
"Pn!2\"P\"7#2$n%2&>'\"/(?)"
|
|
158
158
|
];
|
|
159
159
|
function getEnvReflectionsPath(context, name) {
|
|
160
|
-
return require_join_paths.
|
|
160
|
+
return require_join_paths.joinPaths((0, __powerlines_deepkit_resolve_reflections.getReflectionsPath)(context), "env", `${name}.bin`);
|
|
161
161
|
}
|
|
162
162
|
getEnvReflectionsPath.__type = [
|
|
163
163
|
() => require_types_plugin.__ΩEnvPluginContext,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { o } from "../node_modules/.pnpm/@stryke_path@0.24.3/node_modules/@stryke/path/dist/join-paths.mjs";
|
|
2
1
|
import { __ΩEnvPluginContext, __ΩEnvPluginResolvedConfig, __ΩEnvType } from "../types/plugin.mjs";
|
|
2
|
+
import { joinPaths } from "../node_modules/.pnpm/@stryke_path@0.25.3/node_modules/@stryke/path/dist/join-paths.mjs";
|
|
3
3
|
import { createEnvReflection } from "./reflect.mjs";
|
|
4
4
|
import { ReflectionClass, ReflectionKind, deserializeType, resolveClassType } from "@powerlines/deepkit/vendor/type";
|
|
5
|
+
import { __ΩContext, __ΩUnresolvedContext } from "powerlines/types/context";
|
|
5
6
|
import { convertFromCapnp, convertToCapnp } from "@powerlines/deepkit/capnp";
|
|
7
|
+
import { getReflectionsPath } from "@powerlines/deepkit/resolve-reflections";
|
|
6
8
|
import { SerializedTypes } from "@powerlines/deepkit/schemas/reflection";
|
|
7
9
|
import * as capnp from "@stryke/capnp";
|
|
8
10
|
import { readFileBuffer, writeFileBuffer, writeFileBufferSync } from "@stryke/fs/buffer";
|
|
9
|
-
import { existsSync } from "node:fs";
|
|
10
|
-
import { __ΩContext, __ΩUnresolvedContext } from "powerlines/types/context";
|
|
11
|
-
import { getReflectionsPath } from "@powerlines/deepkit/resolve-reflections";
|
|
12
11
|
import { isEmptyObject } from "@stryke/type-checks/is-empty-object";
|
|
12
|
+
import { existsSync } from "node:fs";
|
|
13
13
|
|
|
14
14
|
//#region src/helpers/persistence.ts
|
|
15
15
|
/**
|
|
@@ -77,7 +77,7 @@ getSecretsDefaultTypeDefinition.__type = [
|
|
|
77
77
|
* @returns The path to the environment type reflections.
|
|
78
78
|
*/
|
|
79
79
|
function getEnvTypeReflectionsPath(context, name = "env") {
|
|
80
|
-
return
|
|
80
|
+
return joinPaths(getReflectionsPath(context), "env", `${name}-types.bin`);
|
|
81
81
|
}
|
|
82
82
|
getEnvTypeReflectionsPath.__type = [
|
|
83
83
|
() => __ΩContext,
|
|
@@ -155,7 +155,7 @@ writeEnvTypeReflection.__type = [
|
|
|
155
155
|
"Pn!2\"P\"7#2$n%2&>'\"/(?)"
|
|
156
156
|
];
|
|
157
157
|
function getEnvReflectionsPath(context, name) {
|
|
158
|
-
return
|
|
158
|
+
return joinPaths(getReflectionsPath(context), "env", `${name}.bin`);
|
|
159
159
|
}
|
|
160
160
|
getEnvReflectionsPath.__type = [
|
|
161
161
|
() => __ΩEnvPluginContext,
|