@wolfcola/treeshake-check 0.0.0 → 1.0.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/lib/schemas.d.ts
CHANGED
|
@@ -57,8 +57,7 @@ export declare const PackageJsonHints: Schema.Struct<{
|
|
|
57
57
|
recommendations: Schema.Array$<typeof Schema.String>;
|
|
58
58
|
}>;
|
|
59
59
|
export type PackageJsonHints = typeof PackageJsonHints.Type;
|
|
60
|
-
export declare const TreeshakeResult: Schema.Union<[Schema.
|
|
61
|
-
_tag: Schema.Literal<["FullyTreeshakeable"]>;
|
|
60
|
+
export declare const TreeshakeResult: Schema.Union<[Schema.TaggedStruct<"FullyTreeshakeable", {
|
|
62
61
|
hints: Schema.Struct<{
|
|
63
62
|
hasSideEffectsField: typeof Schema.Boolean;
|
|
64
63
|
sideEffectsValue: Schema.optional<Schema.Union<[typeof Schema.Boolean, Schema.Array$<typeof Schema.String>]>>;
|
|
@@ -66,8 +65,7 @@ export declare const TreeshakeResult: Schema.Union<[Schema.Struct<{
|
|
|
66
65
|
hasTypeModule: typeof Schema.Boolean;
|
|
67
66
|
recommendations: Schema.Array$<typeof Schema.String>;
|
|
68
67
|
}>;
|
|
69
|
-
}>, Schema.
|
|
70
|
-
_tag: Schema.Literal<["HasSideEffects"]>;
|
|
68
|
+
}>, Schema.TaggedStruct<"HasSideEffects", {
|
|
71
69
|
totalOriginalBytes: typeof Schema.Number;
|
|
72
70
|
totalRenderedBytes: typeof Schema.Number;
|
|
73
71
|
modules: Schema.Array$<Schema.Struct<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/lib/schemas.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,eAAO,MAAM,gBAAgB,4EAA4D,CAAC;AAG1F,eAAO,MAAM,iBAAiB,mGAG5B,CAAC;AAGH,eAAO,M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AAC,IAAI,CAAC;AAIxD,eAAO,MAAM,aAAa;;;;;;;;;EAWxB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,IAAI,CAAC;AAItD,eAAO,MAAM,gBAAgB;;;;;;EAM3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC,IAAI,CAAC;AAI5D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAY3B,CAAC;AACF,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,IAAI,CAAC"}
|
package/dist/lib/schemas.js
CHANGED
|
@@ -55,11 +55,9 @@ export const PackageJsonHints = Schema.Struct({
|
|
|
55
55
|
recommendations: Schema.Array(Schema.String),
|
|
56
56
|
});
|
|
57
57
|
// ─── Top-level result ────────────────────────────────────────────────────────
|
|
58
|
-
export const TreeshakeResult = Schema.Union(Schema.
|
|
59
|
-
_tag: Schema.Literal('FullyTreeshakeable'),
|
|
58
|
+
export const TreeshakeResult = Schema.Union(Schema.TaggedStruct('FullyTreeshakeable', {
|
|
60
59
|
hints: PackageJsonHints,
|
|
61
|
-
}), Schema.
|
|
62
|
-
_tag: Schema.Literal('HasSideEffects'),
|
|
60
|
+
}), Schema.TaggedStruct('HasSideEffects', {
|
|
63
61
|
totalOriginalBytes: Schema.Number,
|
|
64
62
|
totalRenderedBytes: Schema.Number,
|
|
65
63
|
modules: Schema.Array(ModuleAnalysis),
|