@dtsx/dtsx 0.11.56 → 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/dist/bin/cli.js +1 -1
- package/dist/{chunk-62428w6e.js → chunk-07c41ffx.js} +7 -7
- package/dist/{chunk-j7rpp55s.js → chunk-0mj07j66.js} +3 -3
- package/dist/chunk-0zwa1tag.js +31 -0
- package/dist/chunk-16rpzfwq.js +10 -0
- package/dist/chunk-253e6nb4.js +3 -0
- package/dist/chunk-27hrxxsh.js +9 -0
- package/dist/{chunk-tgaear7n.js → chunk-27rxm6hh.js} +6 -6
- package/dist/chunk-30ffarqm.js +4 -0
- package/dist/{chunk-kkshxyex.js → chunk-37jcvx0v.js} +3 -3
- package/dist/chunk-44a6zpxs.js +3 -0
- package/dist/{chunk-g9emajpc.js → chunk-4ce9a877.js} +2 -2
- package/dist/{chunk-587w6ktw.js → chunk-4th0w19y.js} +3 -3
- package/dist/{chunk-mew3f4wh.js → chunk-50r5qs7t.js} +2 -2
- package/dist/chunk-5fgakmq9.js +3 -0
- package/dist/chunk-5tcpge5e.js +56 -0
- package/dist/{chunk-h6ddkhyq.js → chunk-5vk2x8ee.js} +2 -2
- package/dist/{chunk-k8tnz2qd.js → chunk-7116bytq.js} +8 -8
- package/dist/{chunk-6j6dvj8a.js → chunk-78ft65vf.js} +2 -2
- package/dist/{chunk-v22xpr7j.js → chunk-795w1bb2.js} +2 -2
- package/dist/chunk-7vjbc4z7.js +6 -0
- package/dist/chunk-85r70e8z.js +3 -0
- package/dist/chunk-8t9qp0mq.js +5 -0
- package/dist/chunk-9axwjcna.js +21 -0
- package/dist/{chunk-qt9gjs57.js → chunk-9wgk5qp1.js} +2 -2
- package/dist/{chunk-hbmnkmzb.js → chunk-am4b9zt0.js} +3 -3
- package/dist/chunk-b5wcbnb8.js +9 -0
- package/dist/{chunk-8vvryt8p.js → chunk-bd048mjd.js} +2 -2
- package/dist/chunk-be7f8t6b.js +3 -0
- package/dist/chunk-bwb12r8r.js +3 -0
- package/dist/chunk-cb5dj4qy.js +3 -0
- package/dist/chunk-chj3hn6f.js +3 -0
- package/dist/chunk-cnb2rfmv.js +21 -0
- package/dist/{chunk-vk5r6pgx.js → chunk-cs6538bw.js} +2 -2
- package/dist/chunk-d99qykzn.js +6 -0
- package/dist/{chunk-2qbj76ap.js → chunk-e12f4mpd.js} +8 -8
- package/dist/chunk-e21ap86b.js +3 -0
- package/dist/{chunk-f5jc2v3k.js → chunk-ezhvnzja.js} +2 -2
- package/dist/chunk-fnd5bvfd.js +3 -0
- package/dist/chunk-fwqdc8fd.js +3 -0
- package/dist/{chunk-6r01zgys.js → chunk-gkfchhnr.js} +2 -2
- package/dist/chunk-h9gwg4kt.js +9 -0
- package/dist/chunk-hd2bq1j5.js +6 -0
- package/dist/{chunk-g25sbqbw.js → chunk-hpdmtzhk.js} +3 -3
- package/dist/{chunk-v6fwy63g.js → chunk-j2bapmng.js} +2 -2
- package/dist/{chunk-pnfjhm01.js → chunk-j41nnny5.js} +2 -2
- package/dist/{chunk-btcj8fgc.js → chunk-j60x598n.js} +3 -3
- package/dist/{chunk-gwa4hmfa.js → chunk-javyer70.js} +2 -2
- package/dist/chunk-ke1h5m7f.js +5 -0
- package/dist/chunk-kp395d2p.js +44 -0
- package/dist/{chunk-4rsk49xj.js → chunk-mzw42cv7.js} +2 -2
- package/dist/chunk-n2fm08w5.js +2 -0
- package/dist/chunk-n73yp5s4.js +6 -0
- package/dist/{chunk-6ekemc3h.js → chunk-ne7q6jf2.js} +2 -2
- package/dist/{chunk-5bdwrsqt.js → chunk-ngb87w7x.js} +7 -7
- package/dist/chunk-p15wwraa.js +3 -0
- package/dist/{chunk-1mzxq1rg.js → chunk-pb7p64tn.js} +2 -2
- package/dist/chunk-peg2exva.js +3 -0
- package/dist/chunk-pjrnfmwm.js +3 -0
- package/dist/{chunk-mph001z4.js → chunk-pkmjprad.js} +4 -4
- package/dist/{chunk-fpa2ea8k.js → chunk-pq6j9bkd.js} +5 -5
- package/dist/chunk-r1t34d75.js +3 -0
- package/dist/chunk-r48h4anw.js +3 -0
- package/dist/chunk-r6bagvr6.js +18 -0
- package/dist/chunk-rnm8937h.js +3 -0
- package/dist/chunk-rv597vq5.js +3 -0
- package/dist/chunk-s7d3d1wx.js +3 -0
- package/dist/{chunk-b6994asf.js → chunk-sqhmhd08.js} +2 -2
- package/dist/{chunk-8r7rmcz7.js → chunk-t5x9cy8y.js} +5 -5
- package/dist/chunk-t9w6e58q.js +22 -0
- package/dist/chunk-v0gpmwh9.js +8 -0
- package/dist/{chunk-heqx5083.js → chunk-ves5kf6r.js} +4 -4
- package/dist/{chunk-6c8nk9rm.js → chunk-veys7ggd.js} +4 -4
- package/dist/chunk-vjmwxye4.js +3 -0
- package/dist/chunk-war78wdt.js +22 -0
- package/dist/chunk-wfkkp4tx.js +29 -0
- package/dist/{chunk-mqv5m22t.js → chunk-x4pxkg7c.js} +4 -4
- package/dist/chunk-xrtfb38p.js +14 -0
- package/dist/chunk-xz57d151.js +3 -0
- package/dist/chunk-y7bcjjqd.js +3 -0
- package/dist/{chunk-hgg4aqvf.js → chunk-yfgm2ccr.js} +2 -2
- package/dist/{chunk-nmht3krt.js → chunk-yje9ebc0.js} +4 -4
- package/dist/chunk-yjkhep5n.js +3 -0
- package/dist/{chunk-7dmn623d.js → chunk-ykxeeekb.js} +3 -3
- package/dist/{chunk-9bj73ygx.js → chunk-ypbjr2b6.js} +3 -3
- package/dist/src/augmentation-graph.js +1 -1
- package/dist/src/binding-patterns.js +1 -1
- package/dist/src/branded-types.js +1 -1
- package/dist/src/bundle-linker.d.ts +4 -2
- package/dist/src/bundle-linker.js +1 -1
- package/dist/src/bundler.js +1 -1
- package/dist/src/cache.js +1 -1
- package/dist/src/call-signatures.d.ts +2 -0
- package/dist/src/call-signatures.js +1 -1
- package/dist/src/circular.js +1 -1
- package/dist/src/compat.js +1 -1
- package/dist/src/computed-keys.js +1 -1
- package/dist/src/concurrency.js +1 -1
- package/dist/src/config.js +1 -1
- package/dist/src/dangling-refs.js +1 -1
- package/dist/src/declaration-project.d.ts +4 -2
- package/dist/src/declaration-project.js +1 -1
- package/dist/src/declaration-publication.d.ts +1 -1
- package/dist/src/declaration-publication.js +1 -1
- package/dist/src/declaration-references.js +1 -1
- package/dist/src/diff.js +1 -1
- package/dist/src/docs.js +1 -1
- package/dist/src/enum-declarations.js +1 -1
- package/dist/src/errors.js +1 -1
- package/dist/src/extractor/directives.js +1 -1
- package/dist/src/extractor/extract.js +1 -1
- package/dist/src/extractor/hash.js +1 -1
- package/dist/src/extractor/scanner.d.ts +2 -0
- package/dist/src/extractor/scanner.js +1 -1
- package/dist/src/extractor.js +1 -1
- package/dist/src/formats.js +1 -1
- package/dist/src/formatter.js +1 -1
- package/dist/src/function-properties.js +1 -1
- package/dist/src/generator.js +1 -1
- package/dist/src/import-sorter.d.ts +6 -6
- package/dist/src/import-sorter.js +1 -1
- package/dist/src/incremental.js +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/inferred-imports.d.ts +5 -1
- package/dist/src/inferred-imports.js +1 -1
- package/dist/src/initializer-type-spans.js +1 -1
- package/dist/src/json-config.js +1 -1
- package/dist/src/lexical.d.ts +3 -0
- package/dist/src/lexical.js +1 -1
- package/dist/src/logger.js +1 -1
- package/dist/src/lsp.js +1 -1
- package/dist/src/memory.js +1 -1
- package/dist/src/merger.js +1 -1
- package/dist/src/module-graph.d.ts +9 -3
- package/dist/src/module-graph.js +1 -1
- package/dist/src/module-references.d.ts +2 -0
- package/dist/src/module-references.js +1 -1
- package/dist/src/native-checker.js +1 -1
- package/dist/src/native-engine.d.ts +24 -0
- package/dist/src/native-engine.js +1 -1
- package/dist/src/native-extractor.js +1 -1
- package/dist/src/native-generation.js +1 -1
- package/dist/src/native-project.js +1 -1
- package/dist/src/numeric-literals.js +1 -1
- package/dist/src/optimizer.js +1 -1
- package/dist/src/output-normalizer.d.ts +5 -5
- package/dist/src/output-normalizer.js +1 -1
- package/dist/src/parallel-processor.js +1 -1
- package/dist/src/parameters.js +1 -1
- package/dist/src/parser.js +1 -1
- package/dist/src/plugins/bun.js +1 -1
- package/dist/src/plugins/esbuild.js +1 -1
- package/dist/src/plugins/index.js +1 -1
- package/dist/src/plugins/tsdown.js +1 -1
- package/dist/src/plugins/tsup.js +1 -1
- package/dist/src/plugins/vite.js +1 -1
- package/dist/src/plugins/webpack.js +1 -1
- package/dist/src/plugins.d.ts +2 -0
- package/dist/src/plugins.js +1 -1
- package/dist/src/process-source.js +1 -1
- package/dist/src/processor/cache.js +1 -1
- package/dist/src/processor/comments.js +1 -1
- package/dist/src/processor/declarations.js +1 -1
- package/dist/src/processor/import-usage.js +1 -1
- package/dist/src/processor/imports.d.ts +3 -1
- package/dist/src/processor/imports.js +1 -1
- package/dist/src/processor/index.js +1 -1
- package/dist/src/processor/type-inference.d.ts +27 -7
- package/dist/src/processor/type-inference.js +1 -1
- package/dist/src/processor.js +1 -1
- package/dist/src/profiling.js +1 -1
- package/dist/src/return-type-scope.js +1 -1
- package/dist/src/security.js +1 -1
- package/dist/src/source-cache.js +1 -1
- package/dist/src/sourcemap.js +1 -1
- package/dist/src/stx.js +1 -1
- package/dist/src/syntax-validator.js +1 -1
- package/dist/src/tracking.js +1 -1
- package/dist/src/transformers.js +1 -1
- package/dist/src/tree-shaker.js +1 -1
- package/dist/src/tsconfig.js +1 -1
- package/dist/src/type-mappings.js +1 -1
- package/dist/src/utils.js +1 -1
- package/dist/src/value-inference.js +1 -1
- package/dist/src/vue.js +1 -1
- package/dist/src/watcher.js +1 -1
- package/dist/src/worker-thread.js +1 -1
- package/dist/src/worker.js +1 -1
- package/dist/src/workspace.js +1 -1
- package/native/darwin-arm64/libzig-dtsx.dylib +0 -0
- package/native/darwin-x64/libzig-dtsx.dylib +0 -0
- package/native/freebsd-x64/libzig-dtsx.so +0 -0
- package/native/linux-arm64/libzig-dtsx.so +0 -0
- package/native/linux-x64/libzig-dtsx.so +0 -0
- package/native/windows-x64/zig-dtsx.dll +0 -0
- package/package.json +1 -1
- package/dist/chunk-0a1xppye.js +0 -3
- package/dist/chunk-0d5nemtn.js +0 -3
- package/dist/chunk-1t77gtcx.js +0 -3
- package/dist/chunk-20jq5v1p.js +0 -14
- package/dist/chunk-38r6thfe.js +0 -3
- package/dist/chunk-4cr1q0yf.js +0 -4
- package/dist/chunk-555w3kcr.js +0 -8
- package/dist/chunk-5tn8854w.js +0 -31
- package/dist/chunk-5yx2x4v4.js +0 -3
- package/dist/chunk-6b6rt0yh.js +0 -3
- package/dist/chunk-7pw9ayve.js +0 -9
- package/dist/chunk-7rdazac9.js +0 -40
- package/dist/chunk-81jrzxr6.js +0 -10
- package/dist/chunk-9h17ws4c.js +0 -2
- package/dist/chunk-9mdgtq38.js +0 -3
- package/dist/chunk-9wwsqemm.js +0 -3
- package/dist/chunk-bt2n0b75.js +0 -4
- package/dist/chunk-c726s7aj.js +0 -6
- package/dist/chunk-cfjd81h8.js +0 -3
- package/dist/chunk-cgqg1br8.js +0 -5
- package/dist/chunk-daasy0pw.js +0 -3
- package/dist/chunk-dak0dhnx.js +0 -3
- package/dist/chunk-djbck65n.js +0 -3
- package/dist/chunk-ekf33t9z.js +0 -6
- package/dist/chunk-eskywkxz.js +0 -22
- package/dist/chunk-ewgs91y1.js +0 -3
- package/dist/chunk-h28vzayq.js +0 -3
- package/dist/chunk-h7ebvy8j.js +0 -3
- package/dist/chunk-hj7gs32r.js +0 -3
- package/dist/chunk-hkcqbex1.js +0 -3
- package/dist/chunk-msa98cgm.js +0 -19
- package/dist/chunk-mzxxgnp8.js +0 -3
- package/dist/chunk-njknd1pt.js +0 -6
- package/dist/chunk-qbk49jz5.js +0 -21
- package/dist/chunk-qhkxctek.js +0 -3
- package/dist/chunk-r46rw8gr.js +0 -29
- package/dist/chunk-rzcnab8j.js +0 -3
- package/dist/chunk-sjbm1trn.js +0 -3
- package/dist/chunk-spdw3tc0.js +0 -18
- package/dist/chunk-srm0ddsk.js +0 -27
- package/dist/chunk-t5nmnzy6.js +0 -7
- package/dist/chunk-tw99ftp1.js +0 -3
- package/dist/chunk-vt5hr8vs.js +0 -3
- package/dist/chunk-wq5r1ms9.js +0 -38
- package/dist/chunk-x6ddycvm.js +0 -3
- package/dist/chunk-yxcyqezk.js +0 -8
package/dist/src/plugins/tsup.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Pe,Ha,Dr,Ka}from"../../chunk-85r70e8z.js";import"../../chunk-0zwa1tag.js";import"../../chunk-fnd5bvfd.js";import"../../chunk-5vk2x8ee.js";import"../../chunk-hd2bq1j5.js";import"../../chunk-r6bagvr6.js";import"../../chunk-yjkhep5n.js";import"../../chunk-s7d3d1wx.js";import"../../chunk-16rpzfwq.js";import"../../chunk-j41nnny5.js";import"../../chunk-253e6nb4.js";import"../../chunk-xrtfb38p.js";import"../../chunk-795w1bb2.js";import"../../chunk-nnayqrp5.js";import"../../chunk-h9gwg4kt.js";import"../../chunk-yfgm2ccr.js";import"../../chunk-v0gpmwh9.js";import"../../chunk-e12f4mpd.js";import"../../chunk-r48h4anw.js";import"../../chunk-8t9qp0mq.js";import"../../chunk-vjmwxye4.js";import"../../chunk-fwqdc8fd.js";import"../../chunk-pq6j9bkd.js";import"../../chunk-9axwjcna.js";import"../../chunk-rnm8937h.js";import"../../chunk-j2bapmng.js";import"../../chunk-50r5qs7t.js";import"../../chunk-27rxm6hh.js";import"../../chunk-cnb2rfmv.js";import"../../chunk-t9w6e58q.js";import"../../chunk-chj3hn6f.js";import"../../chunk-rv597vq5.js";import"../../chunk-4ce9a877.js";import"../../chunk-44a6zpxs.js";import"../../chunk-5tcpge5e.js";import"../../chunk-wfkkp4tx.js";import"../../chunk-p15wwraa.js";import"../../chunk-27hrxxsh.js";import"../../chunk-peg2exva.js";import"../../chunk-cb5dj4qy.js";import"../../chunk-ne7q6jf2.js";import"../../chunk-30ffarqm.js";import"../../chunk-kp395d2p.js";import"../../chunk-4th0w19y.js";import"../../chunk-gkfchhnr.js";import"../../chunk-pjrnfmwm.js";import"../../chunk-javyer70.js";import"../../chunk-cs6538bw.js";import"../../chunk-be7f8t6b.js";import"../../chunk-xz57d151.js";import"../../chunk-b5wcbnb8.js";import"../../chunk-ke1h5m7f.js";import"../../chunk-bd048mjd.js";export{Ka as default,Dr as dts,Pe as dtsxPlugin,Ha as tsupDts};
|
package/dist/src/plugins/vite.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Xe,Qa,Za}from"../../chunk-bwb12r8r.js";import"../../chunk-0zwa1tag.js";import"../../chunk-fnd5bvfd.js";import"../../chunk-5vk2x8ee.js";import"../../chunk-hd2bq1j5.js";import"../../chunk-r6bagvr6.js";import"../../chunk-yjkhep5n.js";import"../../chunk-s7d3d1wx.js";import"../../chunk-16rpzfwq.js";import"../../chunk-j41nnny5.js";import"../../chunk-253e6nb4.js";import"../../chunk-xrtfb38p.js";import"../../chunk-795w1bb2.js";import"../../chunk-nnayqrp5.js";import"../../chunk-h9gwg4kt.js";import"../../chunk-yfgm2ccr.js";import"../../chunk-v0gpmwh9.js";import"../../chunk-e12f4mpd.js";import"../../chunk-r48h4anw.js";import"../../chunk-8t9qp0mq.js";import"../../chunk-vjmwxye4.js";import"../../chunk-fwqdc8fd.js";import"../../chunk-pq6j9bkd.js";import"../../chunk-9axwjcna.js";import"../../chunk-rnm8937h.js";import"../../chunk-j2bapmng.js";import"../../chunk-50r5qs7t.js";import"../../chunk-27rxm6hh.js";import"../../chunk-cnb2rfmv.js";import"../../chunk-t9w6e58q.js";import"../../chunk-chj3hn6f.js";import"../../chunk-rv597vq5.js";import"../../chunk-4ce9a877.js";import"../../chunk-44a6zpxs.js";import"../../chunk-5tcpge5e.js";import"../../chunk-wfkkp4tx.js";import"../../chunk-p15wwraa.js";import"../../chunk-27hrxxsh.js";import"../../chunk-peg2exva.js";import"../../chunk-cb5dj4qy.js";import"../../chunk-ne7q6jf2.js";import"../../chunk-30ffarqm.js";import"../../chunk-kp395d2p.js";import"../../chunk-4th0w19y.js";import"../../chunk-gkfchhnr.js";import"../../chunk-pjrnfmwm.js";import"../../chunk-javyer70.js";import"../../chunk-cs6538bw.js";import"../../chunk-be7f8t6b.js";import"../../chunk-xz57d151.js";import"../../chunk-b5wcbnb8.js";import"../../chunk-ke1h5m7f.js";import"../../chunk-bd048mjd.js";export{Za as default,Xe as dts,Qa as viteDts};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Qe,ln,Or,ec}from"../../chunk-ezhvnzja.js";import"../../chunk-0zwa1tag.js";import"../../chunk-fnd5bvfd.js";import"../../chunk-5vk2x8ee.js";import"../../chunk-hd2bq1j5.js";import"../../chunk-r6bagvr6.js";import"../../chunk-yjkhep5n.js";import"../../chunk-s7d3d1wx.js";import"../../chunk-16rpzfwq.js";import"../../chunk-j41nnny5.js";import"../../chunk-253e6nb4.js";import"../../chunk-xrtfb38p.js";import"../../chunk-795w1bb2.js";import"../../chunk-nnayqrp5.js";import"../../chunk-h9gwg4kt.js";import"../../chunk-yfgm2ccr.js";import"../../chunk-v0gpmwh9.js";import"../../chunk-e12f4mpd.js";import"../../chunk-r48h4anw.js";import"../../chunk-8t9qp0mq.js";import"../../chunk-vjmwxye4.js";import"../../chunk-fwqdc8fd.js";import"../../chunk-pq6j9bkd.js";import"../../chunk-9axwjcna.js";import"../../chunk-rnm8937h.js";import"../../chunk-j2bapmng.js";import"../../chunk-50r5qs7t.js";import"../../chunk-27rxm6hh.js";import"../../chunk-cnb2rfmv.js";import"../../chunk-t9w6e58q.js";import"../../chunk-chj3hn6f.js";import"../../chunk-rv597vq5.js";import"../../chunk-4ce9a877.js";import"../../chunk-44a6zpxs.js";import"../../chunk-5tcpge5e.js";import"../../chunk-wfkkp4tx.js";import"../../chunk-p15wwraa.js";import"../../chunk-27hrxxsh.js";import"../../chunk-peg2exva.js";import"../../chunk-cb5dj4qy.js";import"../../chunk-ne7q6jf2.js";import"../../chunk-30ffarqm.js";import"../../chunk-kp395d2p.js";import"../../chunk-4th0w19y.js";import"../../chunk-gkfchhnr.js";import"../../chunk-pjrnfmwm.js";import"../../chunk-javyer70.js";import"../../chunk-cs6538bw.js";import"../../chunk-be7f8t6b.js";import"../../chunk-xz57d151.js";import"../../chunk-b5wcbnb8.js";import"../../chunk-ke1h5m7f.js";import"../../chunk-bd048mjd.js";export{Qe as DtsxWebpackPlugin,ec as default,Or as dts,ln as dtsxWebpack};
|
package/dist/src/plugins.d.ts
CHANGED
|
@@ -76,6 +76,8 @@ export declare class PluginManager {
|
|
|
76
76
|
private config;
|
|
77
77
|
register(plugin: Plugin): void;
|
|
78
78
|
hasDeclarationHooks(): boolean;
|
|
79
|
+
hasBeforeFileHooks(): boolean;
|
|
80
|
+
hasAfterFileHooks(): boolean;
|
|
79
81
|
unregister(name: string): boolean;
|
|
80
82
|
getPlugins(): readonly Plugin[];
|
|
81
83
|
private createLogger;
|
package/dist/src/plugins.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Me,bo,de,wo,xo,Co}from"../chunk-h9gwg4kt.js";export{Me as PluginManager,xo as createBannerPlugin,Co as createFilterPlugin,de as definePlugin,bo as pluginManager,wo as stripInternalPlugin};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{rt,Et,bi,wi,xi,tc,An}from"../chunk-yjkhep5n.js";import"../chunk-s7d3d1wx.js";import"../chunk-16rpzfwq.js";import"../chunk-j41nnny5.js";import"../chunk-8t9qp0mq.js";import"../chunk-fwqdc8fd.js";import"../chunk-pq6j9bkd.js";import"../chunk-9axwjcna.js";import"../chunk-j2bapmng.js";import"../chunk-5tcpge5e.js";import"../chunk-wfkkp4tx.js";import"../chunk-p15wwraa.js";import"../chunk-27hrxxsh.js";import"../chunk-peg2exva.js";import"../chunk-cb5dj4qy.js";import"../chunk-ne7q6jf2.js";import"../chunk-30ffarqm.js";import"../chunk-kp395d2p.js";import"../chunk-4th0w19y.js";import"../chunk-gkfchhnr.js";import"../chunk-pjrnfmwm.js";import"../chunk-javyer70.js";import"../chunk-cs6538bw.js";import"../chunk-be7f8t6b.js";import"../chunk-xz57d151.js";import"../chunk-b5wcbnb8.js";import"../chunk-ke1h5m7f.js";export{xi as clearResultCache,rt as emitNatively,Et as processSource,tc as processSourceDirect,bi as processSourceIsolated,wi as processSourceSemantic,An as processSourceWithTypeScriptEngine};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{ac,hr,gr,yr}from"../../chunk-ne7q6jf2.js";export{yr as clearProcessorCaches,ac as getCachedRegex,hr as getImportItemsFromCache,gr as setImportItemsCache};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{y,Ee}from"../../chunk-4th0w19y.js";export{Ee as escapeJsdocContent,y as formatComments};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{ye,A,be,we,xe,Ce,lr,ur,ve}from"../../chunk-wfkkp4tx.js";import"../../chunk-kp395d2p.js";import"../../chunk-4th0w19y.js";import"../../chunk-gkfchhnr.js";import"../../chunk-pjrnfmwm.js";import"../../chunk-javyer70.js";import"../../chunk-cs6538bw.js";import"../../chunk-xz57d151.js";import"../../chunk-b5wcbnb8.js";import"../../chunk-ke1h5m7f.js";export{xe as processClassDeclaration,Ce as processEnumDeclaration,ur as processExportDeclaration,ye as processFunctionDeclaration,lr as processImportDeclaration,be as processInterfaceDeclaration,ve as processModuleDeclaration,we as processTypeDeclaration,A as processVariableDeclaration};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Fe}from"../../chunk-8t9qp0mq.js";import"../../chunk-wfkkp4tx.js";import"../../chunk-cb5dj4qy.js";import"../../chunk-ne7q6jf2.js";import"../../chunk-kp395d2p.js";import"../../chunk-4th0w19y.js";import"../../chunk-gkfchhnr.js";import"../../chunk-pjrnfmwm.js";import"../../chunk-javyer70.js";import"../../chunk-cs6538bw.js";import"../../chunk-xz57d151.js";import"../../chunk-b5wcbnb8.js";import"../../chunk-ke1h5m7f.js";export{Fe as analyzeDeclarationImportUsage};
|
|
@@ -19,7 +19,7 @@ export declare function extractAllImportedItems(importText: string): string[];
|
|
|
19
19
|
* Parse an import statement with detailed type-only information for each item
|
|
20
20
|
* Handles: import type { X }, import { type X, Y }, import * as X, etc.
|
|
21
21
|
*/
|
|
22
|
-
export declare function parseImportDetailed(
|
|
22
|
+
export declare function parseImportDetailed(rawImportText: string): ParsedImport | null;
|
|
23
23
|
/**
|
|
24
24
|
* Parse an export statement with detailed type-only information
|
|
25
25
|
* Handles: export type { X }, export { type X, Y }, export * from, etc.
|
|
@@ -65,4 +65,6 @@ export declare interface ParsedImport {
|
|
|
65
65
|
isNamespace: boolean
|
|
66
66
|
namespaceName: string | null
|
|
67
67
|
isImportEquals?: boolean
|
|
68
|
+
attributes?: string
|
|
69
|
+
sourceLiteral?: string
|
|
68
70
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ve,mr,w,T,ic,es,sc,oc}from"../../chunk-cb5dj4qy.js";import"../../chunk-ne7q6jf2.js";import"../../chunk-b5wcbnb8.js";import"../../chunk-ke1h5m7f.js";export{sc as convertToTypeOnlyImport,w as extractAllImportedItems,Ve as getImportSourceLiteral,es as isTypeOnlyImportItem,oc as mergeImports,ic as parseExportDetailed,T as parseImportDetailed,mr as parseImportStatement};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{h}from"../../chunk-16rpzfwq.js";import"../../chunk-j41nnny5.js";import"../../chunk-8t9qp0mq.js";import"../../chunk-5tcpge5e.js";import{ye,A,be,we,xe,Ce,lr,ur,ve}from"../../chunk-wfkkp4tx.js";import"../../chunk-p15wwraa.js";import"../../chunk-27hrxxsh.js";import"../../chunk-peg2exva.js";import{mr,w}from"../../chunk-cb5dj4qy.js";import{yr}from"../../chunk-ne7q6jf2.js";import"../../chunk-30ffarqm.js";import{r,rn,ie,o,se,t,ee,ke,P}from"../../chunk-kp395d2p.js";import{y}from"../../chunk-4th0w19y.js";import"../../chunk-gkfchhnr.js";import"../../chunk-pjrnfmwm.js";import"../../chunk-javyer70.js";import"../../chunk-cs6538bw.js";import"../../chunk-be7f8t6b.js";import"../../chunk-xz57d151.js";import"../../chunk-b5wcbnb8.js";import"../../chunk-ke1h5m7f.js";export{yr as clearProcessorCaches,w as extractAllImportedItems,P as extractSatisfiesType,t as findMatchingBracket,y as formatComments,ie as inferArrayType,ee as inferFunctionType,r as inferNarrowType,rn as inferNarrowTypeInUnion,se as inferObjectType,ke as isGenericType,o as parseArrayElements,mr as parseImportStatement,xe as processClassDeclaration,h as processDeclarations,Ce as processEnumDeclaration,ur as processExportDeclaration,ye as processFunctionDeclaration,lr as processImportDeclaration,be as processInterfaceDeclaration,ve as processModuleDeclaration,we as processTypeDeclaration,A as processVariableDeclaration};
|
|
@@ -16,18 +16,18 @@ export declare function consumeCleanDefault(): string | null;
|
|
|
16
16
|
* @param _depth - Internal recursion depth counter (do not set manually)
|
|
17
17
|
*/
|
|
18
18
|
export declare function inferNarrowType(value: unknown, isConst?: boolean, inUnion?: boolean, _depth?: number, keyConstants?: KeyConstants): string;
|
|
19
|
+
export declare function inferInstantiationExpressionType(value: string): string | null;
|
|
20
|
+
export declare function inferObjectFreezeType(value: string, depth?: number, keyConstants?: KeyConstants): string | null;
|
|
21
|
+
export declare function inferNonNullAssertionType(value: string, isConst?: boolean, depth?: number, keyConstants?: KeyConstants): string | null;
|
|
22
|
+
export declare function inferTaggedTemplateType(value: string): string | null;
|
|
19
23
|
/**
|
|
20
24
|
* Infer and narrow types from values in union context (for arrays)
|
|
21
25
|
* Widens number/boolean literals to base types unless const
|
|
22
26
|
*/
|
|
23
27
|
export declare function inferNarrowTypeInUnion(value: unknown, isConst?: boolean, _depth?: number, keyConstants?: KeyConstants): string;
|
|
24
|
-
/**
|
|
25
|
-
* Infer the public return type of a function body without building a TypeScript AST.
|
|
26
|
-
*
|
|
27
|
-
* This is intentionally used only by the semantic generation path. Isolated
|
|
28
|
-
* declarations remain annotation-first and never scan implementation bodies.
|
|
29
|
-
*/
|
|
30
28
|
export declare function inferFunctionBodyReturnType(body: string, isAsync?: boolean, parameters?: string, classExpression?: (value: string) => string | undefined, assertedType?: (type: string, position: number) => string): string;
|
|
29
|
+
/** Infer `Generator<Y, R, unknown>` / `AsyncGenerator<Y, R, unknown>` from top-level `yield` and `return` statements. */
|
|
30
|
+
export declare function inferGeneratorBodyReturnType(body: string, isAsync?: boolean, parameters?: string, classExpression?: (value: string) => string | undefined, assertedType?: (type: string, position: number) => string): string;
|
|
31
31
|
/** The result of calling `method` on a value of a primitive keyword type, when it is fixed. */
|
|
32
32
|
export declare function primitiveMethodReturnType(receiver: string, method: string): string | undefined;
|
|
33
33
|
/**
|
|
@@ -36,10 +36,11 @@ export declare function primitiveMethodReturnType(receiver: string, method: stri
|
|
|
36
36
|
* literals indent by level. Mirrored by the native engine (`indentNestedType`).
|
|
37
37
|
*/
|
|
38
38
|
export declare function indentNestedType(type: string): string;
|
|
39
|
+
export declare function isRegexLiteral(value: string): boolean;
|
|
39
40
|
/**
|
|
40
41
|
* Infer type from new expression
|
|
41
42
|
*/
|
|
42
|
-
export declare function inferNewExpressionType(value: string, nominal?: (name: string) => boolean): string;
|
|
43
|
+
export declare function inferNewExpressionType(value: string, nominal?: (name: string) => boolean, isShadowed?: (name: string) => boolean): string;
|
|
43
44
|
/**
|
|
44
45
|
* Infer array type from array literal
|
|
45
46
|
*/
|
|
@@ -74,6 +75,18 @@ export declare function cleanParameterDefaults(params: string): string;
|
|
|
74
75
|
* Find matching bracket for nested structures
|
|
75
76
|
*/
|
|
76
77
|
export declare function findMatchingBracket(str: string, start: number, openChar: string, closeChar: string): number;
|
|
78
|
+
/**
|
|
79
|
+
* If `text` ends with a const assertion (`<expr> as const` with arbitrary
|
|
80
|
+
* whitespace around `as`), return the trimmed expression before `as`.
|
|
81
|
+
*/
|
|
82
|
+
export declare function stripTrailingAsConst(text: string): string | null;
|
|
83
|
+
export declare function isSinglePromiseType(typeStr: string): boolean;
|
|
84
|
+
export declare function wrapAsyncReturnType(returnType: string): string;
|
|
85
|
+
/**
|
|
86
|
+
* Whether `value` is a function expression or arrow function (`function...`,
|
|
87
|
+
* `async function...`, `[async] [<T>](...) [: R] => ...`, or `[async] x => ...`).
|
|
88
|
+
*/
|
|
89
|
+
export declare function isFunctionExpression(value: string): boolean;
|
|
77
90
|
/**
|
|
78
91
|
* Infer function type from function expression
|
|
79
92
|
*/
|
|
@@ -82,6 +95,13 @@ export declare function inferFunctionType(value: string, inUnion?: boolean, _dep
|
|
|
82
95
|
* Check if a type annotation is a generic/broad type that should be replaced with narrow inference
|
|
83
96
|
*/
|
|
84
97
|
export declare function isGenericType(typeAnnotation: string): boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Verify that `typeStr` (the tail after a depth-0 `as` or `satisfies`) is a
|
|
100
|
+
* plausible top-level TypeScript type expression rather than a fragment cut
|
|
101
|
+
* through a ternary (`number : "a"`), binary operator (`number + 2`, `string || "x"`),
|
|
102
|
+
* or another `satisfies` clause (`const satisfies Foo`).
|
|
103
|
+
*/
|
|
104
|
+
export declare function isValidTopLevelTypeTail(typeStr: string): boolean;
|
|
85
105
|
/**
|
|
86
106
|
* Extract type from 'satisfies' operator
|
|
87
107
|
* e.g., "{ port: 3000 } satisfies { port: number }" returns "{ port: number }"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Xt,Qt,r,Zt,en,tn,nn,rn,O,Ue,ts,B,sn,Se,ie,o,xr,on,se,Z,$e,t,oe,Cr,an,ae,ee,ke,cn,P,cc,lc,uc,fc,dc,pc,mc,Ba,hc,gc,yc}from"../../chunk-kp395d2p.js";import"../../chunk-4th0w19y.js";import"../../chunk-gkfchhnr.js";import"../../chunk-pjrnfmwm.js";import"../../chunk-javyer70.js";import{b,v,z}from"../../chunk-cs6538bw.js";import"../../chunk-xz57d151.js";import"../../chunk-b5wcbnb8.js";import"../../chunk-ke1h5m7f.js";export{on as classFieldDefaultDoc,$e as cleanParameterDefaults,Qt as consumeCleanDefault,Xt as enableCleanDefaultCollection,fc as extractInferTypes,P as extractSatisfiesType,t as findMatchingBracket,B as indentNestedType,ie as inferArrayType,Z as inferCallType,lc as inferConditionalType,O as inferFunctionBodyReturnType,ee as inferFunctionType,Ue as inferGeneratorBodyReturnType,Zt as inferInstantiationExpressionType,hc as inferKeyofType,cc as inferMappedType,r as inferNarrowType,rn as inferNarrowTypeInUnion,Se as inferNewExpressionType,tn as inferNonNullAssertionType,en as inferObjectFreezeType,se as inferObjectType,nn as inferTaggedTemplateType,uc as inferTemplateLiteralTypeAdvanced,gc as inferTypeofType,v as isBigIntLiteral,dc as isComplexType,ae as isFunctionExpression,ke as isGenericType,yc as isIndexedAccessType,b as isNumericLiteral,sn as isRegexLiteral,Cr as isSinglePromiseType,cn as isValidTopLevelTypeTail,xr as leadingSourceComments,z as numericLiteralType,o as parseArrayElements,Ba as parseTypeParameters,mc as parseUtilityType,ts as primitiveMethodReturnType,pc as simplifyComplexType,oe as stripTrailingAsConst,an as wrapAsyncReturnType};
|
package/dist/src/processor.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"../chunk-
|
|
2
|
+
import"../chunk-ke1h5m7f.js";import"../chunk-b5wcbnb8.js";import"../chunk-javyer70.js";import"../chunk-30ffarqm.js";import"../chunk-j41nnny5.js";import"../chunk-p15wwraa.js";import"../chunk-xz57d151.js";import"../chunk-be7f8t6b.js";import"../chunk-cs6538bw.js";import"../chunk-pjrnfmwm.js";import"../chunk-gkfchhnr.js";import{y}from"../chunk-4th0w19y.js";import{r,rn,ie,o,se,t,ee,ke,P}from"../chunk-kp395d2p.js";import"../chunk-27hrxxsh.js";import{yr}from"../chunk-ne7q6jf2.js";import{mr,w}from"../chunk-cb5dj4qy.js";import{ye,A,be,we,xe,Ce,lr,ur,ve}from"../chunk-wfkkp4tx.js";import"../chunk-5tcpge5e.js";import"../chunk-peg2exva.js";import"../chunk-8t9qp0mq.js";import{h}from"../chunk-16rpzfwq.js";export{yr as clearProcessorCaches,w as extractAllImportedItems,P as extractSatisfiesType,t as findMatchingBracket,y as formatComments,ie as inferArrayType,ee as inferFunctionType,r as inferNarrowType,rn as inferNarrowTypeInUnion,se as inferObjectType,ke as isGenericType,o as parseArrayElements,mr as parseImportStatement,xe as processClassDeclaration,h as processDeclarations,Ce as processEnumDeclaration,ur as processExportDeclaration,ye as processFunctionDeclaration,lr as processImportDeclaration,be as processInterfaceDeclaration,ve as processModuleDeclaration,we as processTypeDeclaration,A as processVariableDeclaration};
|
package/dist/src/profiling.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Rn,Ei,lo,uo,On,fo}from"../chunk-ypbjr2b6.js";export{Rn as Profiler,On as Timer,uo as createProfiledIo,Ei as createProfiler,fo as createTimer,lo as profileExecution};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{ar}from"../chunk-5tcpge5e.js";import"../chunk-wfkkp4tx.js";import"../chunk-p15wwraa.js";import"../chunk-27hrxxsh.js";import"../chunk-peg2exva.js";import"../chunk-cb5dj4qy.js";import"../chunk-ne7q6jf2.js";import"../chunk-30ffarqm.js";import"../chunk-kp395d2p.js";import"../chunk-4th0w19y.js";import"../chunk-gkfchhnr.js";import"../chunk-pjrnfmwm.js";import"../chunk-javyer70.js";import"../chunk-cs6538bw.js";import"../chunk-be7f8t6b.js";import"../chunk-xz57d151.js";import"../chunk-b5wcbnb8.js";import"../chunk-ke1h5m7f.js";export{ar as createReturnTypeScope};
|
package/dist/src/security.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{X,L,ft,zi,qn,Hi,Ki,qi,Vt,Jn,Ut,Ji,pa,ma,ha,ga}from"../chunk-5fgakmq9.js";export{X as DEFAULT_SECURITY_CONFIG,L as SecurityError,pa as createSecureBatchProcessor,Ji as createSecureProcessor,ga as createSecurityMiddleware,qn as isBlockedPath,ha as isSafePath,Ki as isSymlink,ma as sanitizeFilename,Jn as validateFileBatch,Vt as validateFilePath,Hi as validateFileSize,ft as validatePath,zi as validatePaths,qi as validateSymlink,Ut as withTimeout};
|
package/dist/src/source-cache.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{jt,pe,Fn,Bn,_n,jn,Gn}from"../chunk-rnm8937h.js";import"../chunk-j2bapmng.js";import"../chunk-50r5qs7t.js";export{Fn as batchParseSourceFiles,Bn as clearSourceFileCache,jn as getPendingParseCount,jt as getSourceFile,pe as getSourceFileAsync,_n as getSourceFileCacheSize,Gn as shouldUseAsyncParsing};
|
package/dist/src/sourcemap.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{ir,zt,$a,ka,Ea,Aa,Zi,Ta,Pa}from"../chunk-ves5kf6r.js";export{zt as SourceMapConsumer,ir as SourceMapGenerator,Ea as appendInlineSourceMap,ka as appendSourceMapComment,Pa as buildDeclarationMappings,$a as createSourceMap,Ta as extractSourceMap,Zi as readSourceMap,Aa as writeSourceMap};
|
package/dist/src/stx.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{I,Ko,_}from"../chunk-pq6j9bkd.js";import"../chunk-9axwjcna.js";export{I as isStxFile,Ko as parseStxScripts,_ as transformStxToTs};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ie}from"../chunk-yfgm2ccr.js";export{Ie as validateTypeScriptSyntax};
|
package/dist/src/tracking.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Cn,vn,Sn,Ks,qs}from"../chunk-ykxeeekb.js";export{Cn as Tracker,Ks as analyzeImports,qs as analyzeTypes,vn as createTracker,Sn as trackDeclarations};
|
package/dist/src/transformers.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ir,Nr,mn,ss,Wr,os,Re,as,et,cs,Lr,ls,Fr,us,fs,ds,ps,Br,_r,ms,hs,gs,ys,bs,ws,xs,Cs}from"../chunk-0mj07j66.js";import"../chunk-h9gwg4kt.js";export{Nr as cloneDeclaration,os as composeTransformers,Ir as createDeclaration,us as createJSDocTransformer,Br as createModifierTransformer,Cs as createNamespacePrefixPlugin,ps as createParameterTransformer,Lr as createPrefixTransformer,Fr as createRemoveTransformer,cs as createRenameTransformer,ds as createReturnTypeTransformer,gs as createStripTagsTransformer,ls as createSuffixTransformer,et as createTransformerPlugin,fs as createTypeTransformer,ys as createWrapTypeTransformer,xs as declarePlugin,Re as filterByKind,as as filterByPredicate,ss as findDeclarations,Wr as mapDeclarations,hs as optionalTransformer,bs as readonlyPlugin,_r as readonlyTransformer,ms as requiredTransformer,ws as stripPrivatePlugin,mn as walkDeclarations};
|
package/dist/src/tree-shaker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ct,vt,St,Ur,zr,Hr,Os}from"../chunk-yje9ebc0.js";export{Hr as analyzeDependencies,vt as buildDeclarationDependencyGraph,Os as createTreeShaker,St as extractTypeReferences,zr as findUnusedDeclarations,Ct as treeShake,Ur as treeShakeContent};
|
package/dist/src/tsconfig.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{G}from"../chunk-rv597vq5.js";import"../chunk-4ce9a877.js";export{G as readEffectiveTsconfig};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{di,pi,mi,hi,gi,En,ce,to,no,kt,ro}from"../chunk-hd2bq1j5.js";export{En as TypeMapper,ro as TypeTransformers,kt as applyTypeMappings,ce as createTypeMapper,to as defaultTypeMapper,di as defaultTypeMappings,gi as getPresetMappings,mi as readonlyTypeMappings,hi as simplifiedTypeMappings,no as strictTypeMapper,pi as strictTypeMappings};
|
package/dist/src/utils.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{it,po,K,Ai,fe,Tt,Pt,Dt,Rt}from"../chunk-xrtfb38p.js";import"../chunk-795w1bb2.js";import"../chunk-nnayqrp5.js";import"../chunk-yfgm2ccr.js";import"../chunk-e12f4mpd.js";import"../chunk-rv597vq5.js";import"../chunk-4ce9a877.js";import"../chunk-44a6zpxs.js";import"../chunk-bd048mjd.js";export{Rt as addSourceMapComment,po as assertNever,fe as checkIsolatedDeclarationsConfig,Pt as createDiff,Dt as generateDeclarationMap,Ai as getAllTypeScriptFiles,it as sourceMapCommentPrefix,Tt as validateDtsContent,K as writeToFile};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{qt,pr}from"../chunk-peg2exva.js";import"../chunk-cb5dj4qy.js";import"../chunk-ne7q6jf2.js";import"../chunk-30ffarqm.js";import"../chunk-kp395d2p.js";import"../chunk-4th0w19y.js";import"../chunk-gkfchhnr.js";import"../chunk-pjrnfmwm.js";import"../chunk-javyer70.js";import"../chunk-cs6538bw.js";import"../chunk-xz57d151.js";import"../chunk-b5wcbnb8.js";import"../chunk-ke1h5m7f.js";export{qt as inferDeclarationCallTypes,pr as inferDeclarationValueAliases};
|
package/dist/src/vue.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{N,qo,It,Nt,d,_e,st,Wt,Lt,ot,at,ct,Ft,lt,Bt,_t,j}from"../chunk-9axwjcna.js";export{Ft as collapseTypeText,Lt as extractDefaultExportOptions,at as filterLocalValueStatements,_e as findMacroCall,d as findMatching,ot as getOptionValue,N as isVueFile,st as mapRuntimeProps,Nt as maskNonCode,qo as parseVueSfc,ct as removeInlinedDeclaration,Bt as resolveEmitsType,_t as resolveExposedType,lt as resolvePropsType,It as skipNonCode,Wt as stripMacroStatements,j as transformVueSfcToTs};
|
package/dist/src/watcher.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{si,Js,oi,Ys}from"../chunk-veys7ggd.js";export{Ys as createWatchLogger,si as createWatcher,oi as formatWatchResult,Js as watchAndGenerate};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"../chunk-
|
|
2
|
+
import"../chunk-50r5qs7t.js";import"../chunk-ke1h5m7f.js";import"../chunk-b5wcbnb8.js";import"../chunk-9axwjcna.js";import"../chunk-pq6j9bkd.js";import"../chunk-j2bapmng.js";import"../chunk-javyer70.js";import"../chunk-p15wwraa.js";import"../chunk-xz57d151.js";import"../chunk-30ffarqm.js";import"../chunk-be7f8t6b.js";import"../chunk-cs6538bw.js";import"../chunk-pjrnfmwm.js";import"../chunk-gkfchhnr.js";import"../chunk-4th0w19y.js";import"../chunk-kp395d2p.js";import"../chunk-27hrxxsh.js";import"../chunk-ne7q6jf2.js";import"../chunk-cb5dj4qy.js";import"../chunk-wfkkp4tx.js";import"../chunk-5tcpge5e.js";import"../chunk-peg2exva.js";import"../chunk-fwqdc8fd.js";import"../chunk-rnm8937h.js";import{s}from"../chunk-vjmwxye4.js";import"../chunk-s7d3d1wx.js";import"../chunk-j41nnny5.js";import"../chunk-8t9qp0mq.js";import{h}from"../chunk-16rpzfwq.js";import{rt}from"../chunk-yjkhep5n.js";import*as R from"fs";import{parentPort as M}from"worker_threads";var P=typeof Bun<"u"?Bun:null,S=P?null:R,T=Promise.resolve({extractDeclarations:s,processDeclarations:h});async function N(e){let a=Date.now();try{let{extractDeclarations:m,processDeclarations:A}=await T,u=e.config?.keepComments,C=e.config?.isolatedDeclarations,v=e.config?.importOrder,B=e.config?.engine;if(e.type==="process-batch"){let{filePaths:o,outPaths:D}=e,p=o?null:e.files||[],f=o?o.length:p.length,w=e.writeOutput===!0,g=w?null:Array(f),l=null,b=e.sources;if(!b&&f>0){let t=Array(f);for(let r=0;r<f;r++){let n=p?p[r]:null,d=n?n.sourceCode:void 0,i=o?o[r]:n.filePath;if(d!=null)t[r]=Promise.resolve(d);else if(P)t[r]=P.file(i).text();else t[r]=Promise.resolve(S.readFileSync(i,"utf-8"))}b=await Promise.all(t)}let x={filePath:"",sourceCode:"",declarations:[]},O=w&&P?Array(f):null,F=!0;for(let t=0;t<f;t++){let r=p?p[t]:null,n=o?o[t]:r.filePath,d=D?D[t]:r?r.outPath:void 0;try{let i=b?b[t]:r?.sourceCode||"",c=null,y=rt(i,n,u??!0,v??["bun"],C??!1,B);if(y===null)c=m(i,n,u,C),x.filePath=n,x.sourceCode=i,x.declarations=c,y=A(c,x,u??!0,v);if(w){if(!d)throw Error(`Missing outPath for ${n}`);if(P)O[t]=P.write(d,y);else S.writeFileSync(d,y)}else if(g)g[t]={filePath:n,success:!0,content:y,declarations:c}}catch(i){let c=i&&i.message?i.message:String(i);if(w){if(!l)l=[];l.push({filePath:n,success:!1,error:c})}else if(g)g[t]={filePath:n,success:!1,error:c};F=!1}}if(O)await Promise.all(O);let E=l?.length?`${l[0].filePath}: ${l[0].error||"Worker batch failed"}`:void 0;return{id:e.id,success:F,filePath:e.filePath,batchResults:w?l||void 0:g,error:E,duration:Date.now()-a}}if(e.type==="extract"){let o=m(e.sourceCode,e.filePath,u,C);return{id:e.id,success:!0,filePath:e.filePath,declarations:o,duration:Date.now()-a}}if(e.type==="process"){let o=m(e.sourceCode,e.filePath,u,C),D=A(o,{filePath:e.filePath,sourceCode:e.sourceCode,declarations:o},u??!0,v);return{id:e.id,success:!0,filePath:e.filePath,content:D,declarations:o,duration:Date.now()-a}}throw Error(`Unknown task type: ${e.type}`)}catch(m){return{id:e.id,success:!1,filePath:e.filePath,error:m.message,duration:Date.now()-a}}}M?.on("message",async(e)=>{let a=await N(e);M.postMessage(a)});
|
package/dist/src/worker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Yn,Yi,ya,ba,wa}from"../chunk-am4b9zt0.js";import"../chunk-bd048mjd.js";export{Yn as WorkerPool,ba as batchFiles,wa as calculateOptimalBatchSize,Yi as createWorkerPool,ya as parallelProcess};
|
package/dist/src/workspace.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{ai,ci,$n,Xs,li,ui,Qs}from"../chunk-7vjbc4z7.js";import"../chunk-0zwa1tag.js";import"../chunk-fnd5bvfd.js";import"../chunk-5vk2x8ee.js";import"../chunk-hd2bq1j5.js";import"../chunk-r6bagvr6.js";import"../chunk-yjkhep5n.js";import"../chunk-s7d3d1wx.js";import"../chunk-16rpzfwq.js";import"../chunk-j41nnny5.js";import"../chunk-253e6nb4.js";import"../chunk-xrtfb38p.js";import"../chunk-795w1bb2.js";import"../chunk-nnayqrp5.js";import"../chunk-h9gwg4kt.js";import"../chunk-yfgm2ccr.js";import"../chunk-v0gpmwh9.js";import"../chunk-e12f4mpd.js";import"../chunk-r48h4anw.js";import"../chunk-8t9qp0mq.js";import"../chunk-vjmwxye4.js";import"../chunk-fwqdc8fd.js";import"../chunk-pq6j9bkd.js";import"../chunk-9axwjcna.js";import"../chunk-rnm8937h.js";import"../chunk-j2bapmng.js";import"../chunk-50r5qs7t.js";import"../chunk-27rxm6hh.js";import"../chunk-cnb2rfmv.js";import"../chunk-t9w6e58q.js";import"../chunk-chj3hn6f.js";import"../chunk-rv597vq5.js";import"../chunk-4ce9a877.js";import"../chunk-44a6zpxs.js";import"../chunk-5tcpge5e.js";import"../chunk-wfkkp4tx.js";import"../chunk-p15wwraa.js";import"../chunk-27hrxxsh.js";import"../chunk-peg2exva.js";import"../chunk-cb5dj4qy.js";import"../chunk-ne7q6jf2.js";import"../chunk-30ffarqm.js";import"../chunk-kp395d2p.js";import"../chunk-4th0w19y.js";import"../chunk-gkfchhnr.js";import"../chunk-pjrnfmwm.js";import"../chunk-javyer70.js";import"../chunk-cs6538bw.js";import"../chunk-be7f8t6b.js";import"../chunk-xz57d151.js";import"../chunk-b5wcbnb8.js";import"../chunk-ke1h5m7f.js";import"../chunk-bd048mjd.js";export{li as discoverWorkspaceFromPackageJson,ai as discoverWorkspaceProjects,Qs as generateFromPackageWorkspaces,Xs as generateMonorepo,$n as generateWorkspace,ui as resolveWorkspacePatterns,ci as sortProjectsByDependencies};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
package/dist/chunk-0a1xppye.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{V}from"./chunk-mew3f4wh.js";import{Le,_n}from"./chunk-vt5hr8vs.js";import{ue,Gn}from"./chunk-tw99ftp1.js";function Mi(){Gn(),_n()}function r(e,t,c=!0,n=!1,o){return Le(e,t,c,n,o)}async function Wn(e,t,c=!0,n={}){return await ue(t,e,n),r(e,t,c)}async function Oi(e,t={}){let c=V(t.concurrency,4),n=new Map;for(let o=0;o<e.length;o+=c){let s=e.slice(o,o+c),i=await Promise.all(s.map(async(a)=>({path:a.filePath,declarations:await Wn(a.sourceCode,a.filePath,a.keepComments,t)})));for(let a of i)n.set(a.path,a.declarations)}return n}
|
|
3
|
-
export{Mi,r,Wn,Oi};
|
package/dist/chunk-0d5nemtn.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var wi=[{pattern:/^Promise<void>$/,replacement:"Promise<void>",priority:-1},{pattern:/^Record<string,\s*any>$/,replacement:"Record<string, unknown>",priority:0},{pattern:/^Array<([^<>]+)>$/,replacement:"$1[]",priority:0}],xi=[{pattern:/\bany\b/,replacement:"unknown",global:!0,priority:10},{pattern:/^object$/,replacement:"Record<string, unknown>",priority:10},{pattern:/^Function$/,replacement:"(...args: unknown[]) => unknown",priority:10}],Ci=[{pattern:/^(\w+)\[\]$/,replacement:"readonly $1[]",priority:5},{pattern:/^Array<(.+)>$/,replacement:"ReadonlyArray<$1>",priority:5},{pattern:/^Map<(.+),\s*(.+)>$/,replacement:"ReadonlyMap<$1, $2>",priority:5},{pattern:/^Set<(.+)>$/,replacement:"ReadonlySet<$1>",priority:5}],vi=[{pattern:/^Partial<Partial<(.+)>>$/,replacement:"Partial<$1>",priority:5},{pattern:/^Required<Required<(.+)>>$/,replacement:"Required<$1>",priority:5},{pattern:/^Pick<Omit<(.+),\s*(.+)>,\s*(.+)>$/,replacement:"Pick<$1, $3>",priority:5}];function Si(e){switch(e){case"strict":return xi;case"readonly":return Ci;case"simplified":return vi;case"nullable":return[{pattern:/^(.+)\s*\|\s*undefined$/,replacement:"$1 | undefined",priority:5}];case"branded":return[{pattern:/^string$/,replacement:"string",condition:(r)=>r.declarationKind==="variable"&&(r.declarationName?.includes("path")??!1),priority:5}];default:return[]}}var u=/[.*+?^${}()|[\]\\]/g,c=2048;class Mn{rules;compiled=[];cache=new Map;constructor(e={rules:[]}){if(this.rules=[],e.includeDefaults!==!1)this.rules.push(...wi);if(e.presets)for(let r of e.presets)this.rules.push(...Si(r));this.rules.push(...e.rules),this.rules.sort((r,t)=>(t.priority||0)-(r.priority||0)),this.recompile()}recompile(){let e=Array(this.rules.length);for(let r=0;r<this.rules.length;r++){let t=this.rules[r],i=typeof t.pattern==="string"?new RegExp(t.pattern.replace(u,"\\$&"),t.global?"g":""):t.pattern;e[r]={rule:t,regex:i}}this.compiled=e}map(e,r={}){let i=!r.declarationName&&!r.declarationKind&&!r.filePath&&!r.isReturnType&&!r.isParameterType&&!r.isPropertyType?e:`${e}\x00${r.declarationName??""}\x00${r.declarationKind??""}\x00${r.filePath??""}\x00${r.isReturnType?"r":""}${r.isParameterType?"p":""}${r.isPropertyType?"P":""}`,l=this.cache.get(i);if(l!==void 0)return l;let a=e,o=null;for(let s=0;s<this.compiled.length;s++){let{rule:p,regex:n}=this.compiled[s];if(p.condition){if(!o)o={type:e,...r};if(!p.condition(o))continue}if(n.lastIndex=0,n.test(a)){if(n.lastIndex=0,a=a.replace(n,p.replacement),n.lastIndex=0,!p.global)break}}if(this.cache.size>=c){let s=Math.ceil(c*0.1),p=0;for(let n of this.cache.keys()){if(p++>=s)break;this.cache.delete(n)}}return this.cache.set(i,a),a}mapAll(e,r={}){return e.map((t)=>this.map(t,{...r,type:t}))}addRule(e){this.rules.push(e),this.rules.sort((r,t)=>(t.priority||0)-(r.priority||0)),this.recompile(),this.cache.clear()}removeRules(e){let r=this.rules.length;return this.rules=this.rules.filter((t)=>{let i=typeof t.pattern==="string"?t.pattern:t.pattern.source;if(e instanceof RegExp)e.lastIndex=0;return typeof e==="string"?i!==e:!e.test(i)}),this.recompile(),this.cache.clear(),r-this.rules.length}clearCache(){this.cache.clear()}getRules(){return this.rules}}function ie(e={rules:[]}){return new Mn(e)}var Lo=ie({rules:[]}),No=ie({rules:[],presets:["strict"]});function Rt(e,r,t={}){return e.replace(/:\s*([^;,)\]}]+)/g,(i,l)=>`: ${r.map(l.trim(),t)}`)}var Fo={makeReadonly:(e)=>{if(e.endsWith("[]"))return`readonly ${e}`;if(e.startsWith("Array<"))return e.replace("Array<","ReadonlyArray<");return e},makeNullable:(e)=>{if(e.includes("| null")||e.includes("| undefined"))return e;return`${e} | null`},makeOptional:(e)=>{if(e.includes("| undefined"))return e;return`${e} | undefined`},makeRequired:(e)=>e.replace(/\s*\|\s*null/g,"").replace(/\s*\|\s*undefined/g,"").trim(),promisify:(e)=>{if(e.startsWith("Promise<"))return e;return`Promise<${e}>`},unpromisify:(e)=>{let r=e.match(/^Promise<(.+)>$/);return r?r[1]:e},arrayify:(e)=>{if(e.endsWith("[]")||e.startsWith("Array<"))return e;return`${e}[]`},unarrayify:(e)=>{if(e.endsWith("[]"))return e.slice(0,-2);let r=e.match(/^(?:Readonly)?Array<(.+)>$/);return r?r[1]:e}};
|
|
3
|
-
export{wi,xi,Ci,vi,Si,Mn,ie,Lo,No,Rt,Fo};
|
package/dist/chunk-1t77gtcx.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{u}from"./chunk-6b6rt0yh.js";import{e}from"./chunk-8vvryt8p.js";import{E,b}from"./chunk-t5nmnzy6.js";import{ce}from"./chunk-x6ddycvm.js";import{existsSync as T,readFileSync as N,realpathSync as w,statSync as q}from"fs";import{builtinModules as X}from"module";import{dirname as I,extname as F,isAbsolute as A,join as J,relative as U,resolve as S}from"path";var B=[".ts",".tsx",".mts",".cts",".vue",".stx",".js",".jsx",".mjs",".cjs",".d.ts",".d.mts",".d.cts"],V={".js":[".ts",".tsx",".d.ts"],".jsx":[".tsx",".ts",".d.ts"],".mjs":[".mts",".d.mts"],".cjs":[".cts",".d.cts"]};function k(t){try{return q(t).isFile()}catch{return!1}}function ae(t,i){let s=t.replace(/[?#].*$/,"");if(!(s.startsWith("./")||s.startsWith("../")||s==="."||s==="..")&&!A(s))return{resolved:null,isRelative:!1};let a=I(i),c=S(a,s);if(k(c))return{resolved:c,isRelative:!0};let p=F(c),d=V[p];if(d){let f=c.slice(0,-p.length);for(let r of d){let o=f+r;if(k(o))return{resolved:o,isRelative:!0}}}for(let f of B){let r=c+f;if(k(r))return{resolved:r,isRelative:!0}}if(T(c))for(let f of B){let r=J(c,`index${f}`);if(k(r))return{resolved:r,isRelative:!0}}return{resolved:null,isRelative:!0}}function C(t,i){let s=t.indexOf("*");return s===-1?i===t:i.startsWith(t.slice(0,s))&&i.endsWith(t.slice(s+1))&&i.length>=t.length-1}function K(t,i){if(Object.hasOwn(t,i))return t[i]!==null;let s=Object.keys(t).filter((l)=>l.includes("*")&&C(l,i)).sort((l,a)=>a.indexOf("*")-l.indexOf("*")||a.length-l.length)[0];return s!==void 0&&t[s]!==null}function D(t,i){if(!t.name||i!==t.name&&!i.startsWith(`${t.name}/`))return!1;if(t.exports===void 0)return!0;let s=i===t.name?".":`.${i.slice(t.name.length)}`;if(typeof t.exports==="string"||Array.isArray(t.exports))return s===".";if(!t.exports||typeof t.exports!=="object")return!1;let l=t.exports;if(!Object.keys(l).some((c)=>c.startsWith(".")))return s===".";return K(l,s)}function W(t,i){let s=U(t,i);return s!==".."&&!s.startsWith(`..${process.platform==="win32"?"\\":"/"}`)&&!A(s)}async function Oe(t){let i=await ce(S(t.cwd,t.tsconfigPath||"tsconfig.json")),s=Object.entries(i?.paths??{});if(s.length===0){let r=(o,n)=>ae(o,n);return r.cacheKey=(o)=>JSON.stringify(o.map((n)=>({file:n,references:P(N(n,"utf8"),{includeImports:!0}).map((g)=>({specifier:g.specifier,resolution:r(g.specifier,n)}))}))),r}let l=i?.baseUrl??i?.pathsBasePath??t.cwd,a=S(t.cwd,t.root),c=new Map,p=new Set([...X,"bun"]),d=(r)=>{let o=I(r),n=[];while(!0){if(c.has(o)){let m=c.get(o);for(let x of n)c.set(x,m);return m}n.push(o);let g=J(o,"package.json");if(T(g)){let x={...JSON.parse(N(g,"utf8")),directory:w(o)};for(let O of n)c.set(O,x);return x}let v=I(o);if(v===o)return;o=v}},f=(r,o)=>{if(r.startsWith(".")||A(r))return ae(r,o);if(r.startsWith("node:")||r.startsWith("bun:")||p.has(r))return{resolved:null,isRelative:!1};let n=d(o),g=r.startsWith("@")?/^@[^/]+\/[^/]+/.exec(r)?.[0]:r.split("/")[0];if(n&&(D(n,r)||K(n.imports??{},r)||g&&[n.dependencies,n.devDependencies,n.peerDependencies,n.optionalDependencies].some((h)=>Object.hasOwn(h??{},g))))return{resolved:null,isRelative:!1};let v=s.filter(([h])=>C(h,r)).sort(([h],[y])=>{if(!h.includes("*"))return-1;if(!y.includes("*"))return 1;return y.indexOf("*")-h.indexOf("*")})[0];if(!v)return{resolved:null,isRelative:!1};let[m,x]=v,O=m.indexOf("*"),L=O===-1?"":r.slice(O,r.length-(m.length-O-1));for(let h of x){let y=S(l,h.replace("*",L)),M=d(y);if(M&&D(M,r)&&!M.private&&M.directory!==n?.directory)return{resolved:null,isRelative:!1};let j=ae(y,o);if(!j.resolved)continue;let R=w(j.resolved),_=t.outputStructure==="flat"||T(a)&&W(w(a),R);if(!n||!W(n.directory,R)||!_||d(R)?.directory!==n.directory||/\.d\.(?:ts|mts|cts)$/.test(R))throw Error(`Local alias ${JSON.stringify(r)} from ${o} resolves outside its emitted package source: ${R}`);return e.debug(`Resolved local declaration alias ${r} from ${o} to ${R}`),{resolved:t.outputStructure==="flat"?j.resolved:S(a,U(w(a),R)),isRelative:!0,isAlias:!0,suffix:y.match(/[?#].*$/)?.[0]??""}}throw Error(`Cannot resolve local alias ${JSON.stringify(r)} from ${o} using ${t.tsconfigPath||"tsconfig.json"} (${JSON.stringify(m)})`)};return f.isPackageLocal=(r,o)=>{let n=d(r);return!!n&&d(o)?.directory===n.directory&&W(n.directory,w(o))},f.cacheKey=(r)=>{let o=r.map((g)=>({file:g,references:P(N(g,"utf8"),{includeImports:!0}).map((v)=>({specifier:v.specifier,resolution:f(v.specifier,g)}))})),n=[...new Set(c.values())].filter((g)=>g!==void 0).sort((g,v)=>g.directory.localeCompare(v.directory));return JSON.stringify({root:a,compilerOptions:i,packages:n,edges:o})},f}function P(t,i={}){let s=b(t);return(i.includeImports?["export","static-import","import-type","augmentation"]:["export"]).flatMap((a)=>s.filter((c)=>c.category===a).map(({specifier:c,kind:p,isTypeOnly:d})=>({specifier:c,kind:p,isTypeOnly:d})))}function Bn(t,i){let s=[];for(let a of b(t)){let c=i(a.specifier);if(c!==a.specifier)s.push({start:a.start,end:a.end,value:E(c,t[a.start])})}let l=t;for(let a of s.reverse())l=l.slice(0,a.start)+a.value+l.slice(a.end);return l}async function Z(t,i={}){let s=new Set,l=new Map,a=[],c=new Map,p=[];for(let d of t){let f=S(d);if(!s.has(f))s.add(f),p.push(f)}while(p.length>0){let d=p.shift(),f;try{f=await u(d)}catch{continue}c.set(d,f);let r=P(f,i);l.set(d,r);for(let o of r){let n=(i.resolveSpecifier??ae)(o.specifier,d);if(!n.isRelative)continue;if(n.resolved){if(!s.has(n.resolved))s.add(n.resolved),p.push(n.resolved)}else a.push({from:d,specifier:o.specifier,isTypeOnly:o.isTypeOnly})}}return{reachable:s,reExports:l,unresolved:a,sources:c}}
|
|
3
|
-
export{ae,Oe,P,Bn,Z};
|
package/dist/chunk-20jq5v1p.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{st}from"./chunk-6b6rt0yh.js";import{D}from"./chunk-2qbj76ap.js";import{On}from"./chunk-v22xpr7j.js";import{ke}from"./chunk-hgg4aqvf.js";import{ce}from"./chunk-x6ddycvm.js";import y from"process";import{readdir as v}from"fs/promises";import{join as C,resolve as b}from"path";function tt(){return`${String.fromCharCode(47,47,35)} sourceMappingURL=`}function Oo(n,r){throw Error(r||`Unexpected value: ${n}`)}async function Y(n,r,o="lf"){let t=r.replace(/\r\n/g,`
|
|
3
|
-
`);if(!t.endsWith(`
|
|
4
|
-
`))t+=`
|
|
5
|
-
`;if(o==="crlf")t=t.replace(/\n/g,`\r
|
|
6
|
-
`);if(await st(n,t)!==Buffer.byteLength(t,"utf8"))throw Error(`Incomplete declaration write: ${n}`)}async function bi(n){let r=n??D.root,o=await v(r,{withFileTypes:!0});return(await Promise.all(o.map((i)=>{let c=C(r,i.name);return i.isDirectory()?bi(c):c}))).flat(1/0).filter((i)=>{if(typeof i!=="string")return!1;return/\.(?:ts|tsx|mts|cts)$/.test(i)&&!/\.d\.(?:ts|mts|cts)$/.test(i)})}async function re(n){try{let r=n?.cwd||y.cwd();return(await ce(b(r,n?.tsconfigPath||"tsconfig.json"),{allowCircular:!0}))?.isolatedDeclarations??!1}catch{return!1}}function Tt(n,r){let o={isValid:!0,errors:[]};for(let t of ke(n))o.errors.push({line:t.line,column:t.column,message:t.message,code:t.code});for(let t of On(n))o.errors.push({line:t.line,column:1,message:`'${t.name}' is used but never declared or imported here, so it resolves to an error type for anything consuming this file. It is most likely an ambient global in the source project \u2014 import it explicitly. Referenced by: ${t.context}`,code:"dangling-type-reference"});return o.isValid=o.errors.length===0,o}function At(n,r,o){if(n===r)return"";let t=n.split(`
|
|
7
|
-
`),i=r.split(`
|
|
8
|
-
`),c=new Map,a=new Map;for(let e=0;e<t.length;e++)c.set(t[e],(c.get(t[e])??0)+1);for(let e=0;e<i.length;e++)a.set(i[e],(a.get(i[e])??0)+1);let g=[],u=[];for(let[e,s]of c){let m=s-(a.get(e)??0);for(let l=0;l<m;l++)g.push(e)}for(let[e,s]of a){let m=s-(c.get(e)??0);for(let l=0;l<m;l++)u.push(e)}if(g.length===0&&u.length===0)return"";let p=[`--- ${o}`,`+++ ${o}`];for(let e=0;e<g.length;e++)p.push(`- ${g[e]}`);for(let e=0;e<u.length;e++)p.push(`+ ${u[e]}`);return p.join(`
|
|
9
|
-
`)}function Dt(n,r,o,t){let i=n.split(`
|
|
10
|
-
`),c=[];function a(s){let l="",f=s<0?-s<<1|1:s<<1;do{let d=f&31;if(f>>>=5,f>0)d|=32;l+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[d]}while(f>0);return l}let g=0,u=0,p=0,e=t.split(`
|
|
11
|
-
`).length;for(let s=0;s<i.length;s++){if(i[s].trim()===""){c.push("");continue}g=0;let l=Math.min(s,e-1),f=[],d=0-g,h=0,w=l-u,x=0-p;f.push(a(d)+a(h)+a(w)+a(x)),g=0,u=l,p=0,c.push(f.join(","))}return{version:3,file:r,sourceRoot:"",sources:[o],sourcesContent:[t],mappings:c.join(";")}}function Pt(n,r){return`${n}
|
|
12
|
-
${tt()}${r}
|
|
13
|
-
`}
|
|
14
|
-
export{tt,Oo,Y,bi,re,Tt,At,Dt,Pt};
|
package/dist/chunk-38r6thfe.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{u}from"./chunk-6b6rt0yh.js";import{b}from"./chunk-t5nmnzy6.js";import{C}from"./chunk-9mdgtq38.js";import{r}from"./chunk-0a1xppye.js";import{Me}from"./chunk-bt2n0b75.js";function oa(c){if(!c.includes("declare")||!c.includes("module"))return[];return b(c).filter((d)=>d.category==="augmentation").map((d)=>d.specifier)}function A(c,d){let m=new Set([c]);for(let S of m)for(let p of d(S))m.add(p);return m}async function Re(c,d,m=!1,S){let p=new Map,v=new Map;for(let e of c){let g=S?.get(e)??await u(e);p.set(e,g);let s=oa(g);if(s.length)v.set(e,s)}let w=new Map;if(v.size===0)return w;let l=new Map,x=(e,g)=>{let s=d(e,g);if(s.resolved)return s.resolved;if(!s.isRelative&&!s.isAlias)return`external:${e}`;return};for(let[e,g]of p){let s=r(g,e,!1,m),a=Me(s),f={edges:[],declarations:new Set,augmentations:new Set},h=(n,i,t)=>{let o=x(n.specifier,e);if(!o)return;if(p.has(o))f.edges.push({specifier:n.specifier,target:o,import:i});if(t)f.declarations.add(o)};for(let n of s){if(n.kind!=="import")continue;let i=n.isSideEffect||C(n.text).some((t)=>a.usedItems.has(t));for(let t of b(n.text))h(t,!0,!!i)}for(let n of b(a.referenceText))h(n,!1,!0);for(let n of v.get(e)??[]){let i=x(n,e);if(i)f.augmentations.add(i),f.declarations.add(i)}l.set(e,f)}let y=!0;while(y){y=!1;for(let[e,g]of l){let s=A(e,(a)=>l.get(a)?.declarations??[]);for(let[a,f]of l){if(s.has(a)||!f.augmentations.size||![...f.augmentations].some((t)=>s.has(t)))continue;let h=[e],n=new Map,i=new Set([e]);for(let t of h){if(t===a)break;for(let o of l.get(t).edges){if(i.has(o.target))continue;i.add(o.target),n.set(o.target,{from:t,edge:o}),h.push(o.target)}}if(!n.has(a))continue;for(let t=a;t!==e;){let{from:o,edge:R}=n.get(t),I=l.get(o);if(R.import){let M=w.get(o);if(!M)M=new Set,w.set(o,M);M.add(R.specifier)}if(!I.declarations.has(t))I.declarations.add(t),y=!0;t=o}}}}return w}
|
|
3
|
-
export{oa,Re};
|
package/dist/chunk-4cr1q0yf.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{t,m}from"./chunk-t5nmnzy6.js";import{Ge}from"./chunk-gwa4hmfa.js";function ft(l){let u=t(l);if(u.length!==1||u[0].kind!=="word")return;let f=l.slice(u[0].start,u[0].end);return["true","false","null","undefined","this","super"].includes(f)?void 0:f}function Vt(l){let u=t(l);if(u.length===0)return!0;let f=u[u.length-1],g=l.slice(f.start,f.end);if(f.kind==="word"&&["is","extends","keyof","readonly"].includes(g))return!0;if(g==="|"||g==="&"||g==="?"||g===":")return!0;let o=u[u.length-2];return g===">"&&o!==void 0&&l.slice(o.start,o.end)==="="}function z(l){return C(l,m(l))}function tr(l){for(let u=1024;u<l.length;u*=8){let f=l.slice(0,u),g=I(f,t(f),u);if(g!==void 0)return g}return C(l,t(l))}function C(l,u){return I(l,u,1/0)??!1}function I(l,u,f){let g=0;for(let o=0;o<u.length;o++){let e=u[o];if(e.end>=f)return;if(e.kind==="punctuation"){let a=l.charCodeAt(e.start);if(a===123||a===40||a===91)g++;else if(a===125||a===41||a===93)g--;continue}if(g!==0||e.kind!=="word"||e.end-e.start!==6)continue;let b=l.slice(e.start,e.end);if(b==="export")return!0;if(b==="import"){let a=u[o+1];if(a===void 0?f!==1/0:a.end>=f)return;let w=a?l.slice(a.start,a.end):"";if(w!=="("&&w!==".")return!0}}return f===1/0?!1:void 0}function nr(l){if(l.isExported)return!1;if(["function","variable","interface","type","class","enum","namespace"].includes(l.kind))return!0;return l.kind==="module"&&(l.moduleForm==="namespace"||l.moduleForm==="identifier")}function rr(l,u,f){let g=l.text,o=t(g),e=(s)=>o[s]?g.slice(o[s].start,o[s].end):"",b=(s)=>o[s]?.kind==="word",a=new Map,w=new Map,y=[];for(let s=0;s<o.length;s++){let n=e(s);if(n==="("||n==="["||n==="{"||n==="<")y.push(s);else if(n===")"||n==="]"||n==="}"||n===">"&&e(s-1)!=="="){let i=y.at(-1);if(i!==void 0&&(e(i)==="("&&n===")"||e(i)==="["&&n==="]"||e(i)==="{"&&n==="}"||e(i)==="<"&&n===">")){if(y.pop(),a.set(i,s),e(i)==="<")w.set(s,i)}}}let O=(s)=>{let n=s;while(["readonly","public","private","protected","static","abstract","override","declare","accessor","get","set","async"].includes(e(n))&&(b(n+1)||o[n+1]?.kind==="quoted"||e(n+1)==="["||/^[0-9]/.test(e(n+1))))n++;if(e(n)==="(")return e((a.get(n)??o.length)+1)===":";if(e(n)==="<")return e((a.get(n)??o.length)+1)==="(";let i=n+1;if(e(n)==="[")i=(a.get(n)??o.length)+1;else if(g.charCodeAt(o[n]?.start??g.length)>=48&&g.charCodeAt(o[n]?.start??g.length)<=57)while(i<o.length&&o[i-1].end===o[i].start&&/^[\da-fxob_e.+-]+$/i.test(e(i)))i++;else if(!b(n)&&o[n]?.kind!=="quoted"&&o[n]?.kind!=="literal")return!1;if(e(i)==="?")i++;if(e(i)==="<")i=(a.get(i)??o.length)+1;return e(i)===":"||e(i)==="("},D=[],A=[];for(let s=0;s<o.length;s++){if(e(s)!=="(")continue;let n=a.get(s);if(n===void 0||!(e(n+1)===":"||e(n+1)==="="&&e(n+2)===">"))continue;let i=new Set,h=s+1;while(h<n){let p=h;while(p<n&&e(p)!==","){let x=a.get(p);if(x!==void 0)p=x+1;else p++}let r=h;while(r<p&&e(r)!==":"&&e(r)!=="="){let x=a.get(r);if(x!==void 0)r=x+1;else r++}let c=h;while([".","public","private","protected","readonly","override"].includes(e(c)))c++;if(e(c)==="{"||e(c)==="[")for(let x of Ge(g.slice(o[c].start,o[r-1].end)))i.add(x);else if(b(c))i.add(e(c));h=p+1}let d=n+(e(n+1)===":"?2:3);while(d<o.length){if(d>n+2&&g.slice(o[d-1].end,o[d].start).includes(`
|
|
3
|
-
`)&&!["|","&","?","extends","keyof","typeof","readonly","new","infer","is"].includes(e(d-1))&&O(d))break;if([";",",",")","]","}"].includes(e(d))||e(d)===">"&&e(d-1)!=="=")break;let p=a.get(d);if(p!==void 0)d=p+1;else d++}D.push({start:s,end:d,names:i});let k=w.get(s-1);if(f&&k!==void 0){let p=new Set,r=k+1;while(r<s-1){while(["const","in","out"].includes(e(r)))r++;if(b(r))p.add(e(r));while(r<s-1&&e(r)!==",")r=(a.get(r)??r)+1;r++}A.push({start:k,end:d,names:p})}}let v=f?new Set:void 0,S=(s)=>{if(!b(s))return;v?.add(o[s].start);let n=e(s);if(!D.some((i)=>s>=i.start&&s<i.end&&i.names.has(n)))u.add(n)},T=(s,n)=>{for(let i=s;i<n;i++){if(e(i)==="<"&&a.has(i)){i=a.get(i);continue}if(!b(i)||e(i-1)==="."||e(i+1)===":")continue;if(["true","false","null","undefined","new","this","super","as","satisfies","typeof","void","keyof"].includes(e(i)))continue;S(i)}};for(let s=0;s<o.length;s++){if(e(s)==="typeof")S(s+1);if(e(s)==="export"){let n=s+1;if(e(n)==="default"){if(!["function","class","abstract"].includes(e(n+1))){if(T(n+1,o.length),b(n+1)&&f?.candidates.has(e(n+1))&&(e(n+2)===";"||n+2===o.length))f.references.add(e(n+1))}continue}let i=e(n)==="type";if(i)n++;if(e(n)==="{"){let h=a.get(n);if(h===void 0||e(h+1)==="from")continue;for(let d=n+1;d<h;){let k=e(d)==="type"&&b(d+1)&&e(d+1)!=="as";if(k)d++;let p=f?.candidates.has(e(d));if(p)f.references.add(e(d));if(!p||!i&&!k)S(d);else v?.add(o[d].start);while(d<h&&e(d)!==",")d++;d++}}}if(e(s)==="["){let n=a.get(s);if(n!==void 0&&[":","?","("].includes(e(n+1))&&e(s+2)!==":"&&e(s+2)!=="in")T(s+1,n)}}if(l.kind==="class"){let s=-1;for(let n=0;n<o.length&&e(n)!=="{";n++)if(e(n)==="<"&&a.has(n))n=a.get(n);else if(e(n)==="extends"){s=n;break}if(s!==-1){let n=s+1;while(n<o.length&&e(n)!=="{"&&e(n)!=="implements"){let i=a.get(n);if(i!==void 0)n=i+1;else n++}T(s+1,n)}}if(f){let s=new Set,n=t(l.generics??""),i=0,h=!1;for(let r of n){let c=(l.generics??"").slice(r.start,r.end);if(["<","(","[","{"].includes(c)){if(i++,c==="<"&&i===1)h=!0}else if([">",")","]","}"].includes(c)&&!(c===">"&&(l.generics??"").slice(r.start-1,r.start)==="="))i--;else if(c===","&&i===1)h=!0;else if(h&&i===1&&r.kind==="word"&&!["const","in","out"].includes(c))s.add(c),h=!1}let d=A.flatMap((r)=>[...r.names].flatMap((c)=>[{index:r.start,name:c,delta:1},{index:r.end,name:c,delta:-1}])).sort((r,c)=>r.index-c.index),k=new Map,p=0;for(let r=0;r<o.length;r++){while(p<d.length&&d[p].index<=r){let M=d[p++];k.set(M.name,(k.get(M.name)??0)+M.delta)}if(!b(r)||v?.has(o[r].start)||!f.candidates.has(e(r))||s.has(e(r))||(k.get(e(r))??0)>0)continue;let c=e(r-1),x=e(r+1);if(c==="."||c==="as"&&l.kind==="export"||["const","let","var","function","class","interface","type","enum","namespace","module"].includes(c))continue;if(x===":"&&c!=="?"||x==="?"&&[":","("].includes(e(r+2))||x==="("||x==="<"&&e((a.get(r+1)??o.length)+1)==="(")continue;f.references.add(e(r))}}}
|
|
4
|
-
export{ft,Vt,z,tr,nr,rr};
|
package/dist/chunk-555w3kcr.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{t,m}from"./chunk-t5nmnzy6.js";import{n}from"./chunk-7rdazac9.js";function Hn(p,k,b,h){let r=new Map,i=new Map;for(let e of[...k,...b.values(),...[...h.values()].flat()])if(r.set(e.name,e),e.kind==="function"&&!i.has(e.name))i.set(e.name,e);for(let[e,o]of h)if(o.length)i.set(e,o[0]);if(!i.size)return;let u=new Set;for(let[e,o]of h)if(o.length>1)u.add(e);let a=new Map;for(let e of k)if(e.kind==="function"){let o=(a.get(e.name)??0)+1;if(a.set(e.name,o),o>1)u.add(e.name)}let s=m(p),d=(e)=>s[e]?p.slice(s[e].start,s[e].end):"",g=new Map,x=0;for(let e=0;e<s.length;e++){let o=s[e];if(o.kind==="punctuation"){let l=p.charCodeAt(o.start);if(l===40||l===91||l===123)x++;else if(l===41||l===93||l===125)x--;continue}if(x||s[e+2]?.kind!=="word"||d(e+1)!=="."||d(e+3)!=="=")continue;let c=d(e);if(!i.has(c))continue;let M=d(e+2),w=e+4,f=w,y=0;for(;f<s.length;f++){let l=d(f);if(!y&&l===";")break;if(!y&&f>w&&/[\r\n]/.test(p.slice(s[f-1].end,s[f].start))&&(["export","const","let","var","function","class"].includes(l)||i.has(l)&&d(f+1)==="."))break;if(["(","[","{"].includes(l))y++;else if([")","]","}"].includes(l))y--}if(f===w)continue;let D=R(p.slice(s[w].start,s[f-1].end),r,u),v=g.get(c);if(!v)g.set(c,v=new Map);let A=v.get(M);if(!A)v.set(M,A=[]);if(!A.includes(D))A.push(D);e=f-1}for(let[e,o]of g){let c=i.get(e),M=[...o].map(([f,y])=>` let ${f}: ${y.map((D)=>D.includes("=>")&&y.length>1?`(${D})`:D).join(" | ")};`).join(`
|
|
3
|
-
`),w=c.isExported&&!c.isDefault?"export ":"";if(c.isDefault)c.text=c.text.replace("export default function ","declare function ");if(c.text+=`
|
|
4
|
-
${w}declare namespace ${e} {
|
|
5
|
-
${M}
|
|
6
|
-
}`,c.isDefault)c.text+=`
|
|
7
|
-
export default ${e};`}}function R(p,k,b,h=0){let r=p.trim(),i=k.get(r);if(i?.kind==="variable"&&h<64){if(i.typeAnnotation)return i.typeAnnotation==="unique symbol"?`typeof ${r}`:i.typeAnnotation;if(typeof i.value==="string")return R(i.value,k,b,h+1)}let u=n(r,!1);if(u!=="unknown")return u;let a=t(r);if(a[0]?.kind==="word"&&a[1]&&r.slice(a[1].start,a[1].end)==="("&&r.endsWith(")")){let s=0,d=-1;for(let e=1;e<a.length;e++){let o=r.slice(a[e].start,a[e].end);if(o==="(")s++;else if(o===")"&&--s===0){d=e;break}}if(d!==a.length-1)return u;let g=r.slice(a[0].start,a[0].end),x=k.get(g);if(x?.kind==="function"&&!x.generics&&!b.has(g))return`ReturnType<typeof ${g}>`}if(/^[$A-Z_a-z][$\w]*(?:\.[$A-Z_a-z][$\w]*)*$/.test(r))return`typeof ${r}`;return u}
|
|
8
|
-
export{Hn};
|