@r_masseater/vite-plus-adopt 0.11.1 → 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 +5 -20
- package/THIRD-PARTY-NOTICES +0 -251
- package/dist/attw.mjs +4 -5
- package/dist/attw.mjs.map +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +61 -2
- package/dist/index.mjs +1 -1
- package/dist/{vpa-MRYbih3E.mjs → vpa-CvCOW4oL.mjs} +7 -30
- package/dist/vpa-CvCOW4oL.mjs.map +1 -0
- package/package.json +15 -47
- package/skills/configure-checks/SKILL.md +5 -13
- package/dist/fsd.d.mts +0 -10
- package/dist/fsd.mjs +0 -1336
- package/dist/fsd.mjs.map +0 -1
- package/dist/index-DyvYt7R0.d.mts +0 -173
- 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/steiger-CbusAzht.mjs +0 -5944
- package/dist/steiger-CbusAzht.mjs.map +0 -1
- package/dist/vpa-MRYbih3E.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# @r_masseater/vite-plus-adopt
|
|
2
2
|
|
|
3
|
-
`vpa` is a CLI that brings secret scanning with h56m, commitlint, textlint,
|
|
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
|
|
|
@@ -17,7 +18,6 @@ vp add -D @r_masseater/vite-plus-adopt @r_masseater/h56m-presets
|
|
|
17
18
|
```ts
|
|
18
19
|
import { betterleaks } from "@r_masseater/h56m-presets";
|
|
19
20
|
import type {} from "@r_masseater/vite-plus-adopt";
|
|
20
|
-
import fsd from "@r_masseater/vite-plus-adopt/fsd";
|
|
21
21
|
import { defineConfig } from "vite-plus";
|
|
22
22
|
|
|
23
23
|
export default defineConfig({
|
|
@@ -31,7 +31,6 @@ export default defineConfig({
|
|
|
31
31
|
filter: 'matchesAny(finding.line, [`\\bCF_BEACON_TOKEN = "[0-9a-f]{32}"`])',
|
|
32
32
|
ignoredSecrets: ["<SHA-256 of the secret>"],
|
|
33
33
|
},
|
|
34
|
-
steiger: { paths: ["apps/*/src"], rules: [...fsd.configs.recommended] },
|
|
35
34
|
textlint: {
|
|
36
35
|
ignores: ["CHANGELOG.md"],
|
|
37
36
|
rules: { "preset-ja-technical-writing": true },
|
|
@@ -41,9 +40,8 @@ export default defineConfig({
|
|
|
41
40
|
});
|
|
42
41
|
```
|
|
43
42
|
|
|
44
|
-
`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`.
|
|
45
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.
|
|
46
|
-
Steiger checks only the directories matching `steiger.paths` that directly contain FSD layer folders (`app`, `pages`, `widgets`, `features`, `entities`, `shared` and so on).
|
|
47
45
|
|
|
48
46
|
Write the Git hooks like this.
|
|
49
47
|
|
|
@@ -82,19 +80,6 @@ Put `vpa --prepare` in `prepare`. To let Renovate update the commits, extend thi
|
|
|
82
80
|
{ "extends": ["github>masseater/masseater.dev//libs/vite-plus-adopt/renovate"] }
|
|
83
81
|
```
|
|
84
82
|
|
|
85
|
-
## Feature-Sliced Design plugin
|
|
86
|
-
|
|
87
|
-
`@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.
|
|
88
|
-
steiger itself also depends on `@feature-sliced/steiger-plugin`, which pulls in TypeScript 5.
|
|
89
|
-
vpa does not use the steiger CLI, so you can drop it with `overrides` in `pnpm-workspace.yaml`.
|
|
90
|
-
|
|
91
|
-
```yaml
|
|
92
|
-
overrides:
|
|
93
|
-
"steiger>@feature-sliced/steiger-plugin": "-"
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
[fsd-plugin]: https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd
|
|
97
|
-
|
|
98
83
|
## Replacement for @arethetypeswrong/core
|
|
99
84
|
|
|
100
85
|
`@r_masseater/vite-plus-adopt/attw` provides the same API as [@arethetypeswrong/core][attw] 0.18.5, on TypeScript 7.1 alone.
|
|
@@ -115,4 +100,4 @@ export default defineConfig({
|
|
|
115
100
|
|
|
116
101
|
## License
|
|
117
102
|
|
|
118
|
-
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,11 +1,11 @@
|
|
|
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
3
|
import semver, { major, maxSatisfying, minor, valid, validRange } from "semver";
|
|
4
|
-
import { serverFS } from "typescript/fs";
|
|
5
|
-
import { API, ModuleKind, ModuleResolutionKind, ObjectFlags, SignatureKind, SymbolFlags, TypeFlags, isObjectType } from "typescript/sync";
|
|
6
4
|
import { init, parse } from "cjs-module-lexer";
|
|
7
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";
|
|
8
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";
|
|
9
9
|
import { untar } from "@andrewbranch/untar.js";
|
|
10
10
|
import { FlateErrorCode, Gunzip } from "fflate";
|
|
11
11
|
import validatePackgeName from "validate-npm-package-name";
|
|
@@ -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 = {
|