@r_masseater/vite-plus-adopt 0.11.0 → 0.12.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.
- package/README.md +10 -31
- package/THIRD-PARTY-NOTICES +0 -251
- package/dist/attw.mjs +9 -16
- package/dist/attw.mjs.map +1 -1
- package/dist/cli.mjs +21 -3
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts +61 -2
- package/dist/index.mjs +1 -3
- package/dist/{vpa--jth0aBQ.mjs → vpa-CvCOW4oL.mjs} +154 -184
- package/dist/vpa-CvCOW4oL.mjs.map +1 -0
- package/package.json +33 -68
- package/skills/configure-checks/SKILL.md +15 -27
- package/dist/fsd.d.mts +0 -10
- package/dist/fsd.mjs +0 -1338
- package/dist/fsd.mjs.map +0 -1
- package/dist/index-HXyQUvp_.d.mts +0 -202
- package/dist/output-CeQIa6e5.mjs +0 -223
- package/dist/output-CeQIa6e5.mjs.map +0 -1
- package/dist/parsers/tree-sitter-astro.wasm +0 -0
- package/dist/parsers/tree-sitter-svelte.wasm +0 -0
- package/dist/parsers/tree-sitter-tsx.wasm +0 -0
- package/dist/parsers/tree-sitter-vue.wasm +0 -0
- package/dist/postinstall.d.mts +0 -1
- package/dist/postinstall.mjs +0 -19
- package/dist/postinstall.mjs.map +0 -1
- package/dist/run-cli-DIrqPoTy.mjs +0 -24
- package/dist/run-cli-DIrqPoTy.mjs.map +0 -1
- package/dist/steiger-CbusAzht.mjs +0 -5944
- package/dist/steiger-CbusAzht.mjs.map +0 -1
- package/dist/vpa--jth0aBQ.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
# vite-plus-adopt
|
|
1
|
+
# @r_masseater/vite-plus-adopt
|
|
2
2
|
|
|
3
|
-
`vpa` is a CLI that brings
|
|
3
|
+
`vpa` is a CLI that brings secret scanning with h56m, commitlint, textlint, fallow and agent skill installation into Vite+. Write their settings and your dependency rules in `vite.config.ts`, and `vpa` reads them from there.
|
|
4
4
|
Running `vpa` once with no arguments runs every configured check in parallel and prints the results together.
|
|
5
|
-
It also bundles
|
|
5
|
+
It also bundles @arethetypeswrong/core running on TypeScript 7 alone.
|
|
6
|
+
For Feature-Sliced Design and other structure rules, use [wism](https://www.npmjs.com/package/@r_masseater/wism).
|
|
6
7
|
|
|
7
8
|
## Published to
|
|
8
9
|
|
|
@@ -11,19 +12,12 @@ It also bundles a Feature-Sliced Design plugin for Steiger and @arethetypeswrong
|
|
|
11
12
|
## Usage
|
|
12
13
|
|
|
13
14
|
```sh
|
|
14
|
-
vp add -D @r_masseater/vite-plus-adopt
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
Allow its postinstall by adding it to `allowBuilds` in `pnpm-workspace.yaml`.
|
|
18
|
-
|
|
19
|
-
```yaml
|
|
20
|
-
allowBuilds:
|
|
21
|
-
"@r_masseater/vite-plus-adopt": true
|
|
15
|
+
vp add -D @r_masseater/vite-plus-adopt @r_masseater/h56m-presets
|
|
22
16
|
```
|
|
23
17
|
|
|
24
18
|
```ts
|
|
19
|
+
import { betterleaks } from "@r_masseater/h56m-presets";
|
|
25
20
|
import type {} from "@r_masseater/vite-plus-adopt";
|
|
26
|
-
import fsd from "@r_masseater/vite-plus-adopt/fsd";
|
|
27
21
|
import { defineConfig } from "vite-plus";
|
|
28
22
|
|
|
29
23
|
export default defineConfig({
|
|
@@ -32,12 +26,11 @@ export default defineConfig({
|
|
|
32
26
|
banned: { "Import tests from vite-plus/test": ["vitest", "@vitest/*"] },
|
|
33
27
|
peerRanges: "intersect",
|
|
34
28
|
},
|
|
35
|
-
|
|
36
|
-
extend: {
|
|
29
|
+
h56m: {
|
|
30
|
+
extend: { path: betterleaks },
|
|
37
31
|
filter: 'matchesAny(finding.line, [`\\bCF_BEACON_TOKEN = "[0-9a-f]{32}"`])',
|
|
38
32
|
ignoredSecrets: ["<SHA-256 of the secret>"],
|
|
39
33
|
},
|
|
40
|
-
steiger: { paths: ["apps/*/src"], rules: [...fsd.configs.recommended] },
|
|
41
34
|
textlint: {
|
|
42
35
|
ignores: ["CHANGELOG.md"],
|
|
43
36
|
rules: { "preset-ja-technical-writing": true },
|
|
@@ -47,9 +40,8 @@ export default defineConfig({
|
|
|
47
40
|
});
|
|
48
41
|
```
|
|
49
42
|
|
|
50
|
-
`import type {} from "@r_masseater/vite-plus-adopt"` types the
|
|
43
|
+
`import type {} from "@r_masseater/vite-plus-adopt"` types the keys vpa reads (`commitlint`, `dependencyRules`, `fallow`, `h56m`, `skills` and `textlint`) on `defineConfig`.
|
|
51
44
|
textlint checks the Markdown files Git tracks. To check other files too, list their globs (`files`) and the settings for them in `textlint.sources`. `presets` work there as well.
|
|
52
|
-
Steiger checks only the directories matching `steiger.paths` that directly contain FSD layer folders (`app`, `pages`, `widgets`, `features`, `entities`, `shared` and so on).
|
|
53
45
|
|
|
54
46
|
Write the Git hooks like this.
|
|
55
47
|
|
|
@@ -88,19 +80,6 @@ Put `vpa --prepare` in `prepare`. To let Renovate update the commits, extend thi
|
|
|
88
80
|
{ "extends": ["github>masseater/masseater.dev//libs/vite-plus-adopt/renovate"] }
|
|
89
81
|
```
|
|
90
82
|
|
|
91
|
-
## Feature-Sliced Design plugin
|
|
92
|
-
|
|
93
|
-
`@r_masseater/vite-plus-adopt/fsd` bundles [@feature-sliced/steiger-plugin][fsd-plugin] 0.8.2, with the same rules and `configs.recommended` as the original.
|
|
94
|
-
steiger itself also depends on `@feature-sliced/steiger-plugin`, which pulls in TypeScript 5.
|
|
95
|
-
vpa does not use the steiger CLI, so you can drop it with `overrides` in `pnpm-workspace.yaml`.
|
|
96
|
-
|
|
97
|
-
```yaml
|
|
98
|
-
overrides:
|
|
99
|
-
"steiger>@feature-sliced/steiger-plugin": "-"
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
[fsd-plugin]: https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd
|
|
103
|
-
|
|
104
83
|
## Replacement for @arethetypeswrong/core
|
|
105
84
|
|
|
106
85
|
`@r_masseater/vite-plus-adopt/attw` provides the same API as [@arethetypeswrong/core][attw] 0.18.5, on TypeScript 7.1 alone.
|
|
@@ -121,4 +100,4 @@ export default defineConfig({
|
|
|
121
100
|
|
|
122
101
|
## License
|
|
123
102
|
|
|
124
|
-
MIT. The licenses of the original packages bundled in `dist/
|
|
103
|
+
MIT. The licenses of the original packages bundled in `dist/attw.mjs` are in `THIRD-PARTY-NOTICES`.
|
package/THIRD-PARTY-NOTICES
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
dist/fsd.mjs bundles @feature-sliced/steiger-plugin and @feature-sliced/filesystem,
|
|
2
|
-
and dist/parsers holds the tree-sitter grammars that @feature-sliced/steiger-plugin ships.
|
|
3
|
-
dist/steiger-*.mjs bundles the linter API of steiger 0.10.0 and zod 4.6.7, which steiger uses.
|
|
4
1
|
dist/attw.mjs bundles the dist of @arethetypeswrong/core 0.18.5 from upstream/attw-core/lib,
|
|
5
2
|
with upstream/attw-core/lib.patch applied, and the module resolution, program construction
|
|
6
3
|
and binding in src/attw follow TypeScript 5.6.1-rc.
|
|
@@ -9,200 +6,6 @@ Their licenses follow.
|
|
|
9
6
|
|
|
10
7
|
================================================================================
|
|
11
8
|
|
|
12
|
-
@feature-sliced/steiger-plugin 0.8.2
|
|
13
|
-
Source: https://github.com/feature-sliced/steiger
|
|
14
|
-
|
|
15
|
-
MIT License
|
|
16
|
-
|
|
17
|
-
Copyright (c) 2026 [Feature-Sliced Design core team and contributors](https://github.com/feature-sliced)
|
|
18
|
-
|
|
19
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
20
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
21
|
-
in the Software without restriction, including without limitation the rights
|
|
22
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
23
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
24
|
-
furnished to do so, subject to the following conditions:
|
|
25
|
-
|
|
26
|
-
The above copyright notice and this permission notice shall be included in all
|
|
27
|
-
copies or substantial portions of the Software.
|
|
28
|
-
|
|
29
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
30
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
31
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
32
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
33
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
34
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
35
|
-
SOFTWARE.
|
|
36
|
-
|
|
37
|
-
================================================================================
|
|
38
|
-
|
|
39
|
-
@feature-sliced/filesystem 3.1.1
|
|
40
|
-
Source: https://github.com/feature-sliced/filesystem
|
|
41
|
-
|
|
42
|
-
ISC License
|
|
43
|
-
|
|
44
|
-
Copyright (c) 2024 Feature-Sliced Design core team
|
|
45
|
-
|
|
46
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
47
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
48
|
-
copyright notice and this permission notice appear in all copies.
|
|
49
|
-
|
|
50
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
51
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
52
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
53
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
54
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
55
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
56
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
57
|
-
|
|
58
|
-
================================================================================
|
|
59
|
-
|
|
60
|
-
magic-string 0.30.17 (bundled in @feature-sliced/steiger-plugin)
|
|
61
|
-
Source: https://github.com/Rich-Harris/magic-string
|
|
62
|
-
|
|
63
|
-
Copyright 2018 Rich Harris
|
|
64
|
-
|
|
65
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
66
|
-
|
|
67
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
68
|
-
|
|
69
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
70
|
-
|
|
71
|
-
================================================================================
|
|
72
|
-
|
|
73
|
-
@jridgewell/sourcemap-codec (bundled in @feature-sliced/steiger-plugin)
|
|
74
|
-
Source: https://github.com/jridgewell/sourcemaps
|
|
75
|
-
|
|
76
|
-
Copyright 2024 Justin Ridgewell <justin@ridgewell.name>
|
|
77
|
-
|
|
78
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
79
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
80
|
-
in the Software without restriction, including without limitation the rights
|
|
81
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
82
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
83
|
-
furnished to do so, subject to the following conditions:
|
|
84
|
-
|
|
85
|
-
The above copyright notice and this permission notice shall be included in
|
|
86
|
-
all copies or substantial portions of the Software.
|
|
87
|
-
|
|
88
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
89
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
90
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
91
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
92
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
93
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
94
|
-
SOFTWARE.
|
|
95
|
-
|
|
96
|
-
================================================================================
|
|
97
|
-
|
|
98
|
-
This package contains compiled WebAssembly modules of tree-sitter grammars.
|
|
99
|
-
These grammars are MIT-licensed by their respective authors.
|
|
100
|
-
|
|
101
|
-
================================================================================
|
|
102
|
-
|
|
103
|
-
tree-sitter-tsx.wasm
|
|
104
|
-
Source: https://github.com/tree-sitter/tree-sitter-typescript
|
|
105
|
-
|
|
106
|
-
The MIT License (MIT)
|
|
107
|
-
Copyright (c) 2017 Max Brunsfeld
|
|
108
|
-
|
|
109
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
110
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
111
|
-
in the Software without restriction, including without limitation the rights
|
|
112
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
113
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
114
|
-
furnished to do so, subject to the following conditions:
|
|
115
|
-
|
|
116
|
-
The above copyright notice and this permission notice shall be included in all
|
|
117
|
-
copies or substantial portions of the Software.
|
|
118
|
-
|
|
119
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
120
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
121
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
122
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
123
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
124
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
125
|
-
SOFTWARE.
|
|
126
|
-
|
|
127
|
-
================================================================================
|
|
128
|
-
|
|
129
|
-
tree-sitter-svelte.wasm
|
|
130
|
-
Source: https://github.com/Himujjal/tree-sitter-svelte
|
|
131
|
-
|
|
132
|
-
Copyright © Himujjal Upadhyaya <himu@tuta.io>
|
|
133
|
-
|
|
134
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
135
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
136
|
-
in the Software without restriction, including without limitation the rights
|
|
137
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
138
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
139
|
-
furnished to do so, subject to the following conditions:
|
|
140
|
-
|
|
141
|
-
The above copyright notice and this permission notice shall be included in all
|
|
142
|
-
copies or substantial portions of the Software.
|
|
143
|
-
|
|
144
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
145
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
146
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
147
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
148
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
149
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
150
|
-
SOFTWARE.
|
|
151
|
-
|
|
152
|
-
================================================================================
|
|
153
|
-
|
|
154
|
-
tree-sitter-astro.wasm
|
|
155
|
-
Source: https://github.com/virchau13/tree-sitter-astro
|
|
156
|
-
|
|
157
|
-
MIT License
|
|
158
|
-
Copyright (c) 2022 Vir Chaudhury
|
|
159
|
-
|
|
160
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
161
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
162
|
-
in the Software without restriction, including without limitation the rights
|
|
163
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
164
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
165
|
-
furnished to do so, subject to the following conditions:
|
|
166
|
-
|
|
167
|
-
The above copyright notice and this permission notice shall be included in all
|
|
168
|
-
copies or substantial portions of the Software.
|
|
169
|
-
|
|
170
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
171
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
172
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
173
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
174
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
175
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
176
|
-
SOFTWARE.
|
|
177
|
-
|
|
178
|
-
================================================================================
|
|
179
|
-
|
|
180
|
-
tree-sitter-vue.wasm
|
|
181
|
-
Source: https://github.com/tree-sitter-grammars/tree-sitter-vue
|
|
182
|
-
|
|
183
|
-
The MIT License (MIT)
|
|
184
|
-
Copyright (c) 2024 Amaan Qureshi <amaanq12@gmail.com>
|
|
185
|
-
|
|
186
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
187
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
188
|
-
in the Software without restriction, including without limitation the rights
|
|
189
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
190
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
191
|
-
furnished to do so, subject to the following conditions:
|
|
192
|
-
|
|
193
|
-
The above copyright notice and this permission notice shall be included in all
|
|
194
|
-
copies or substantial portions of the Software.
|
|
195
|
-
|
|
196
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
197
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
198
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
199
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
200
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
201
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
202
|
-
SOFTWARE.
|
|
203
|
-
|
|
204
|
-
================================================================================
|
|
205
|
-
|
|
206
9
|
@arethetypeswrong/core 0.18.5
|
|
207
10
|
Source: https://github.com/arethetypeswrong/arethetypeswrong.github.io/tree/main/packages/core
|
|
208
11
|
|
|
@@ -278,57 +81,3 @@ If the Work includes a "NOTICE" text file as part of its distribution, then any
|
|
|
278
81
|
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
|
279
82
|
|
|
280
83
|
END OF TERMS AND CONDITIONS
|
|
281
|
-
|
|
282
|
-
================================================================================
|
|
283
|
-
|
|
284
|
-
steiger 0.10.0
|
|
285
|
-
Source: https://github.com/feature-sliced/steiger
|
|
286
|
-
|
|
287
|
-
MIT License
|
|
288
|
-
|
|
289
|
-
Copyright (c) 2026 [Feature-Sliced Design core team and contributors](https://github.com/feature-sliced)
|
|
290
|
-
|
|
291
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
292
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
293
|
-
in the Software without restriction, including without limitation the rights
|
|
294
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
295
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
296
|
-
furnished to do so, subject to the following conditions:
|
|
297
|
-
|
|
298
|
-
The above copyright notice and this permission notice shall be included in all
|
|
299
|
-
copies or substantial portions of the Software.
|
|
300
|
-
|
|
301
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
302
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
303
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
304
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
305
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
306
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
307
|
-
SOFTWARE.
|
|
308
|
-
|
|
309
|
-
================================================================================
|
|
310
|
-
|
|
311
|
-
zod 4.6.7
|
|
312
|
-
Source: https://github.com/colinhacks/zod
|
|
313
|
-
|
|
314
|
-
MIT License
|
|
315
|
-
|
|
316
|
-
Copyright (c) 2025 Colin McDonnell
|
|
317
|
-
|
|
318
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
319
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
320
|
-
in the Software without restriction, including without limitation the rights
|
|
321
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
322
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
323
|
-
furnished to do so, subject to the following conditions:
|
|
324
|
-
|
|
325
|
-
The above copyright notice and this permission notice shall be included in all
|
|
326
|
-
copies or substantial portions of the Software.
|
|
327
|
-
|
|
328
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
329
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
330
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
331
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
332
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
333
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
334
|
-
SOFTWARE.
|
package/dist/attw.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as parseJson } from "./json-QtVKpodH.mjs";
|
|
2
2
|
import { Array as Array$1, Function, MutableRef, Option, Order, Predicate, Record, String as String$1, pipe } from "effect";
|
|
3
|
-
import { FlateErrorCode, Gunzip } from "fflate";
|
|
4
3
|
import semver, { major, maxSatisfying, minor, valid, validRange } from "semver";
|
|
5
|
-
import { serverFS } from "typescript/fs";
|
|
6
|
-
import { API, ModuleKind, ModuleResolutionKind, ObjectFlags, SignatureKind, SymbolFlags, TypeFlags, isObjectType } from "typescript/sync";
|
|
7
4
|
import { init, parse } from "cjs-module-lexer";
|
|
8
5
|
import { InternalSymbolName, ModifierFlags, NodeFlags, ScriptKind, ScriptTarget, SyntaxKind, escapeLeadingUnderscores, getNameOfDeclaration } from "typescript/ast";
|
|
6
|
+
import { API, ModuleKind, ModuleResolutionKind, ObjectFlags, SignatureKind, SymbolFlags, TypeFlags, isObjectType } from "typescript/sync";
|
|
9
7
|
import { isArrayBindingPattern, isArrayLiteralExpression, isArrowFunction, isBinaryExpression, isBindingElement, isBlock, isCallExpression, isCatchClause, isClassDeclaration, isClassExpression, isElementAccessExpression, isEnumDeclaration, isExportAssignment, isExportDeclaration, isExportSpecifier, isExpression, isExpressionStatement, isForInStatement, isFunctionDeclaration, isFunctionExpression, isIdentifier, isImportAttributes, isImportClause, isImportDeclaration, isImportEqualsDeclaration, isImportSpecifier, isImportTypeNode, isInterfaceDeclaration, isJSDoc, isJSDocCallbackTag, isJSDocImportTag, isJSDocTypedefTag, isModuleBlock, isModuleDeclaration, isNamedExports, isNamespaceExport, isNamespaceImport, isNumericLiteral, isObjectBindingPattern, isObjectLiteralExpression, isParameterDeclaration, isParenthesizedExpression, isPrefixUnaryExpression, isPropertyAccessExpression, isPropertyAssignment, isReturnStatement, isShorthandPropertyAssignment, isSourceFile, isStringLiteral, isStringLiteralLikeNode, isTypeAliasDeclaration, isVariableDeclaration, isVariableDeclarationList, isVariableStatement, isVoidExpression } from "typescript/ast/is";
|
|
8
|
+
import { serverFS } from "typescript/fs";
|
|
10
9
|
import { untar } from "@andrewbranch/untar.js";
|
|
10
|
+
import { FlateErrorCode, Gunzip } from "fflate";
|
|
11
11
|
import validatePackgeName from "validate-npm-package-name";
|
|
12
12
|
import * as cjs from "@loaderkit/resolve/cjs";
|
|
13
13
|
import * as esm from "@loaderkit/resolve/esm";
|
|
@@ -1878,11 +1878,10 @@ const MODULE_NAMES = /* @__PURE__ */ new Map([
|
|
|
1878
1878
|
const SCRIPT_KINDS = new Set(Record.values(ScriptKind));
|
|
1879
1879
|
const resolutionNameOf = (kind) => Option.fromNullishOr(kind).pipe(Option.flatMapNullishOr((value) => RESOLUTION_NAMES.get(value)), Option.getOrElse(() => "Node10"));
|
|
1880
1880
|
const moduleNameOf = (kind) => Option.fromNullishOr(kind).pipe(Option.flatMapNullishOr((value) => MODULE_NAMES.get(value)), Option.getOrElse(() => "CommonJS"));
|
|
1881
|
-
const
|
|
1881
|
+
const getModeForUsageLocation = (sourceFile, usage, options) => Option.getOrUndefined(getModeForUsageLocation$1(sourceFile, usage, {
|
|
1882
1882
|
moduleResolution: resolutionNameOf(options.moduleResolution),
|
|
1883
1883
|
module: moduleNameOf(options.module)
|
|
1884
|
-
});
|
|
1885
|
-
const getModeForUsageLocation = (sourceFile, usage, options) => Option.getOrUndefined(getModeForUsageLocation$1(sourceFile, usage, modeOptionsOf(options)).pipe(Option.map((mode) => modeToNumber(mode))));
|
|
1884
|
+
}).pipe(Option.map((mode) => modeToNumber(mode))));
|
|
1886
1885
|
const isScriptKind = (value) => Predicate.isNumber(value) && SCRIPT_KINDS.has(value);
|
|
1887
1886
|
const createSourceFile = (fileName, text, ...parseArguments) => parseSourceFile(getNormalizedAbsolutePath(fileName, ROOT), text, Option.liftPredicate(parseArguments[SCRIPT_KIND_AFTER_TEXT], isScriptKind));
|
|
1888
1887
|
const fileFunctions = {
|
|
@@ -4418,8 +4417,7 @@ const createFlagStore = () => {
|
|
|
4418
4417
|
hasFlag: (fileName, flag) => Option.fromNullishOr(flags.get(toPath(fileName))).pipe(Option.exists((own) => own.has(flag))),
|
|
4419
4418
|
setFlag: (fileName, flag, value) => {
|
|
4420
4419
|
const path = toPath(fileName);
|
|
4421
|
-
const own = flags.
|
|
4422
|
-
flags.set(path, own);
|
|
4420
|
+
const own = flags.getOrInsertComputed(path, () => /* @__PURE__ */ new Set());
|
|
4423
4421
|
if (value) {
|
|
4424
4422
|
own.add(flag);
|
|
4425
4423
|
return;
|
|
@@ -4786,9 +4784,7 @@ const createResultTables = () => {
|
|
|
4786
4784
|
return {
|
|
4787
4785
|
get: (outer, inner) => Option.fromNullishOr(tables.get(outer)).pipe(Option.flatMap((table) => Option.fromNullishOr(table.get(inner)))),
|
|
4788
4786
|
tableFor: (outer) => {
|
|
4789
|
-
|
|
4790
|
-
tables.set(outer, table);
|
|
4791
|
-
return table;
|
|
4787
|
+
return tables.getOrInsertComputed(outer, () => /* @__PURE__ */ new Map());
|
|
4792
4788
|
}
|
|
4793
4789
|
};
|
|
4794
4790
|
};
|
|
@@ -4858,9 +4854,7 @@ const createResolutionStore = (source) => {
|
|
|
4858
4854
|
const noDtsCache = createModuleResolutionCache();
|
|
4859
4855
|
const byFile = /* @__PURE__ */ new Map();
|
|
4860
4856
|
const tableFor = (containingFile) => {
|
|
4861
|
-
|
|
4862
|
-
byFile.set(containingFile, table);
|
|
4863
|
-
return table;
|
|
4857
|
+
return byFile.getOrInsertComputed(containingFile, () => /* @__PURE__ */ new Map());
|
|
4864
4858
|
};
|
|
4865
4859
|
const cacheFor = (request) => {
|
|
4866
4860
|
if (request.noDtsResolution) return noDtsCache;
|
|
@@ -4910,8 +4904,7 @@ const createResolvedModuleTable = () => {
|
|
|
4910
4904
|
return {
|
|
4911
4905
|
record: (fileName, entries) => {
|
|
4912
4906
|
const path = toPath(fileName);
|
|
4913
|
-
const own = byFile.
|
|
4914
|
-
byFile.set(path, own);
|
|
4907
|
+
const own = byFile.getOrInsertComputed(path, () => /* @__PURE__ */ new Map());
|
|
4915
4908
|
for (const entry of entries) own.set(modeKey(entry.moduleName, entry.mode), toTsResolution(entry.resolution));
|
|
4916
4909
|
},
|
|
4917
4910
|
lookup: (fileName, moduleName, mode) => Option.fromNullishOr(byFile.get(toPath(fileName))).pipe(Option.flatMap((own) => Option.fromNullishOr(own.get(modeKey(moduleName, mode)))))
|