@sanity/color-input 6.0.11 → 6.0.13

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/index.js CHANGED
@@ -1,138 +1,149 @@
1
- import { defineType, definePlugin } from "sanity";
2
- import { jsx } from "react/jsx-runtime";
1
+ import { definePlugin, defineType } from "sanity";
3
2
  import { lazy } from "react";
4
- const ColorInput = lazy(() => import("./_chunks-es/ColorInput.js")), round = (val = 1) => Math.round(val * 100), colorTypeName = "color", color = defineType({
5
- name: colorTypeName,
6
- type: "object",
7
- title: "Color",
8
- components: {
9
- input: ColorInput
10
- },
11
- fields: [{
12
- title: "Hex",
13
- name: "hex",
14
- type: "string"
15
- }, {
16
- title: "Alpha",
17
- name: "alpha",
18
- type: "number"
19
- }, {
20
- title: "Hue Saturation Lightness",
21
- name: "hsl",
22
- type: "hslaColor"
23
- }, {
24
- title: "Hue Saturation Value",
25
- name: "hsv",
26
- type: "hsvaColor"
27
- }, {
28
- title: "Red Green Blue (rgb)",
29
- name: "rgb",
30
- type: "rgbaColor"
31
- }],
32
- preview: {
33
- select: {
34
- title: "hex",
35
- alpha: "alpha",
36
- hex: "hex",
37
- hsl: "hsl"
38
- },
39
- prepare({
40
- title,
41
- hex,
42
- hsl,
43
- alpha
44
- }) {
45
- let subtitle = hex || "No color set";
46
- return hsl && (subtitle = `H:${round(hsl.h)} S:${round(hsl.s)} L:${round(hsl.l)} A:${round(alpha)}`), {
47
- title,
48
- subtitle,
49
- media: () => /* @__PURE__ */ jsx("div", { style: {
50
- backgroundColor: hex ?? "#000",
51
- opacity: alpha ?? 1,
52
- position: "absolute",
53
- height: "100%",
54
- width: "100%",
55
- top: "0",
56
- left: "0"
57
- } })
58
- };
59
- }
60
- }
3
+ import { jsx } from "react/jsx-runtime";
4
+ const ColorInput = lazy(() => import("./_chunks-es/ColorInput.js")), round = (val = 1) => Math.round(val * 100), color = defineType({
5
+ name: "color",
6
+ type: "object",
7
+ title: "Color",
8
+ components: { input: ColorInput },
9
+ fields: [
10
+ {
11
+ title: "Hex",
12
+ name: "hex",
13
+ type: "string"
14
+ },
15
+ {
16
+ title: "Alpha",
17
+ name: "alpha",
18
+ type: "number"
19
+ },
20
+ {
21
+ title: "Hue Saturation Lightness",
22
+ name: "hsl",
23
+ type: "hslaColor"
24
+ },
25
+ {
26
+ title: "Hue Saturation Value",
27
+ name: "hsv",
28
+ type: "hsvaColor"
29
+ },
30
+ {
31
+ title: "Red Green Blue (rgb)",
32
+ name: "rgb",
33
+ type: "rgbaColor"
34
+ }
35
+ ],
36
+ preview: {
37
+ select: {
38
+ title: "hex",
39
+ alpha: "alpha",
40
+ hex: "hex",
41
+ hsl: "hsl"
42
+ },
43
+ prepare({ title, hex, hsl, alpha }) {
44
+ let subtitle = hex || "No color set";
45
+ return hsl && (subtitle = `H:${round(hsl.h)} S:${round(hsl.s)} L:${round(hsl.l)} A:${round(alpha)}`), {
46
+ title,
47
+ subtitle,
48
+ media: () => /* @__PURE__ */ jsx("div", { style: {
49
+ backgroundColor: hex ?? "#000",
50
+ opacity: alpha ?? 1,
51
+ position: "absolute",
52
+ height: "100%",
53
+ width: "100%",
54
+ top: "0",
55
+ left: "0"
56
+ } })
57
+ };
58
+ }
59
+ }
61
60
  }), hslaColor = defineType({
62
- title: "Hue Saturation Lightness",
63
- name: "hslaColor",
64
- type: "object",
65
- fields: [{
66
- name: "h",
67
- type: "number",
68
- title: "Hue"
69
- }, {
70
- name: "s",
71
- type: "number",
72
- title: "Saturation"
73
- }, {
74
- name: "l",
75
- type: "number",
76
- title: "Lightness"
77
- }, {
78
- name: "a",
79
- type: "number",
80
- title: "Alpha"
81
- }]
61
+ title: "Hue Saturation Lightness",
62
+ name: "hslaColor",
63
+ type: "object",
64
+ fields: [
65
+ {
66
+ name: "h",
67
+ type: "number",
68
+ title: "Hue"
69
+ },
70
+ {
71
+ name: "s",
72
+ type: "number",
73
+ title: "Saturation"
74
+ },
75
+ {
76
+ name: "l",
77
+ type: "number",
78
+ title: "Lightness"
79
+ },
80
+ {
81
+ name: "a",
82
+ type: "number",
83
+ title: "Alpha"
84
+ }
85
+ ]
82
86
  }), hsvaColor = defineType({
83
- title: "Hue Saturation Value",
84
- name: "hsvaColor",
85
- type: "object",
86
- fields: [{
87
- name: "h",
88
- type: "number",
89
- title: "Hue"
90
- }, {
91
- name: "s",
92
- type: "number",
93
- title: "Saturation"
94
- }, {
95
- name: "v",
96
- type: "number",
97
- title: "Value"
98
- }, {
99
- name: "a",
100
- type: "number",
101
- title: "Alpha"
102
- }]
87
+ title: "Hue Saturation Value",
88
+ name: "hsvaColor",
89
+ type: "object",
90
+ fields: [
91
+ {
92
+ name: "h",
93
+ type: "number",
94
+ title: "Hue"
95
+ },
96
+ {
97
+ name: "s",
98
+ type: "number",
99
+ title: "Saturation"
100
+ },
101
+ {
102
+ name: "v",
103
+ type: "number",
104
+ title: "Value"
105
+ },
106
+ {
107
+ name: "a",
108
+ type: "number",
109
+ title: "Alpha"
110
+ }
111
+ ]
103
112
  }), rgbaColor = defineType({
104
- title: "Red Green Blue (rgb)",
105
- name: "rgbaColor",
106
- type: "object",
107
- fields: [{
108
- name: "r",
109
- type: "number",
110
- title: "Red"
111
- }, {
112
- name: "g",
113
- type: "number",
114
- title: "Green"
115
- }, {
116
- name: "b",
117
- type: "number",
118
- title: "Blue"
119
- }, {
120
- name: "a",
121
- type: "number",
122
- title: "Alpha"
123
- }]
113
+ title: "Red Green Blue (rgb)",
114
+ name: "rgbaColor",
115
+ type: "object",
116
+ fields: [
117
+ {
118
+ name: "r",
119
+ type: "number",
120
+ title: "Red"
121
+ },
122
+ {
123
+ name: "g",
124
+ type: "number",
125
+ title: "Green"
126
+ },
127
+ {
128
+ name: "b",
129
+ type: "number",
130
+ title: "Blue"
131
+ },
132
+ {
133
+ name: "a",
134
+ type: "number",
135
+ title: "Alpha"
136
+ }
137
+ ]
124
138
  }), colorInput = definePlugin({
125
- name: "@sanity/color-input",
126
- schema: {
127
- types: [hslaColor, hsvaColor, rgbaColor, color]
128
- }
139
+ name: "@sanity/color-input",
140
+ schema: { types: [
141
+ hslaColor,
142
+ hsvaColor,
143
+ rgbaColor,
144
+ color
145
+ ] }
129
146
  });
130
- export {
131
- ColorInput,
132
- color,
133
- colorInput,
134
- hslaColor,
135
- hsvaColor,
136
- rgbaColor
137
- };
138
- //# sourceMappingURL=index.js.map
147
+ export { ColorInput, color, colorInput, hslaColor, hsvaColor, rgbaColor };
148
+
149
+ //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/LazyColorInput.tsx","../src/schemas/color.tsx","../src/schemas/hslaColor.ts","../src/schemas/hsvaColor.ts","../src/schemas/rgbaColor.ts","../src/index.ts"],"sourcesContent":["import {lazy} from 'react'\n\nexport const ColorInput = lazy(() => import('./ColorInput'))\n","import {defineType, type ObjectDefinition} from 'sanity'\n\nimport {ColorInput} from '../LazyColorInput'\nimport {type ColorOptions} from '../types'\n\nconst round = (val: number = 1) => Math.round(val * 100)\n\nconst colorTypeName = 'color'\n\n/**\n * @public\n */\nexport interface ColorDefinition extends Omit<ObjectDefinition, 'type' | 'fields' | 'options'> {\n type: typeof colorTypeName\n options?: ColorOptions\n}\n\ndeclare module 'sanity' {\n // makes type: 'color' narrow correctly when using defineType/defineField/defineArrayMember\n export interface IntrinsicDefinitions {\n color: ColorDefinition\n }\n}\n\nexport const color = defineType({\n name: colorTypeName,\n type: 'object',\n title: 'Color',\n components: {input: ColorInput},\n fields: [\n {\n title: 'Hex',\n name: 'hex',\n type: 'string',\n },\n {\n title: 'Alpha',\n name: 'alpha',\n type: 'number',\n },\n {\n title: 'Hue Saturation Lightness',\n name: 'hsl',\n type: 'hslaColor',\n },\n {\n title: 'Hue Saturation Value',\n name: 'hsv',\n type: 'hsvaColor',\n },\n {\n title: 'Red Green Blue (rgb)',\n name: 'rgb',\n type: 'rgbaColor',\n },\n ],\n preview: {\n select: {\n title: 'hex',\n alpha: 'alpha',\n hex: 'hex',\n hsl: 'hsl',\n },\n prepare({\n title,\n hex,\n hsl,\n alpha,\n }: {\n title: string\n alpha?: number\n hex?: string\n hsl?: {h: number; s: number; l: number}\n }) {\n let subtitle = hex || 'No color set'\n if (hsl) {\n subtitle = `H:${round(hsl.h)} S:${round(hsl.s)} L:${round(hsl.l)} A:${round(alpha)}`\n }\n return {\n title: title,\n subtitle: subtitle,\n media: () => (\n <div\n style={{\n backgroundColor: hex ?? '#000',\n opacity: alpha ?? 1,\n position: 'absolute',\n height: '100%',\n width: '100%',\n top: '0',\n left: '0',\n }}\n />\n ),\n }\n },\n },\n})\n","import {defineType} from 'sanity'\n\nexport const hslaColor = defineType({\n title: 'Hue Saturation Lightness',\n name: 'hslaColor',\n type: 'object',\n fields: [\n {name: 'h', type: 'number', title: 'Hue'},\n {name: 's', type: 'number', title: 'Saturation'},\n {name: 'l', type: 'number', title: 'Lightness'},\n {name: 'a', type: 'number', title: 'Alpha'},\n ],\n})\n","import {defineType} from 'sanity'\n\nexport const hsvaColor = defineType({\n title: 'Hue Saturation Value',\n name: 'hsvaColor',\n type: 'object',\n fields: [\n {name: 'h', type: 'number', title: 'Hue'},\n {name: 's', type: 'number', title: 'Saturation'},\n {name: 'v', type: 'number', title: 'Value'},\n {name: 'a', type: 'number', title: 'Alpha'},\n ],\n})\n","import {defineType} from 'sanity'\n\nexport const rgbaColor = defineType({\n title: 'Red Green Blue (rgb)',\n name: 'rgbaColor',\n type: 'object',\n fields: [\n {name: 'r', type: 'number', title: 'Red'},\n {name: 'g', type: 'number', title: 'Green'},\n {name: 'b', type: 'number', title: 'Blue'},\n {name: 'a', type: 'number', title: 'Alpha'},\n ],\n})\n","import {definePlugin} from 'sanity'\n\nimport {color, type ColorDefinition} from './schemas/color'\nimport {hslaColor} from './schemas/hslaColor'\nimport {hsvaColor} from './schemas/hsvaColor'\nimport {rgbaColor} from './schemas/rgbaColor'\n\nexport const colorInput = definePlugin({\n name: '@sanity/color-input',\n schema: {\n types: [hslaColor, hsvaColor, rgbaColor, color],\n },\n})\n\nexport {color, hslaColor, hsvaColor, rgbaColor}\nexport {ColorInput} from './LazyColorInput'\nexport type {ColorDefinition}\nexport type {ColorInputProps, ColorOptions, ColorSchemaType, ColorValue} from './types'\n"],"names":["ColorInput","lazy","round","val","Math","colorTypeName","color","defineType","name","type","title","components","input","fields","preview","select","alpha","hex","hsl","prepare","subtitle","h","s","l","media","backgroundColor","opacity","position","height","width","top","left","hslaColor","hsvaColor","rgbaColor","colorInput","definePlugin","schema","types"],"mappings":";;;AAEO,MAAMA,aAAaC,KAAK,MAAM,OAAO,4BAAc,CAAC,GCGrDC,QAAQA,CAACC,MAAc,MAAMC,KAAKF,MAAMC,MAAM,GAAG,GAEjDE,gBAAgB,SAiBTC,QAAQC,WAAW;AAAA,EAC9BC,MAAMH;AAAAA,EACNI,MAAM;AAAA,EACNC,OAAO;AAAA,EACPC,YAAY;AAAA,IAACC,OAAOZ;AAAAA,EAAAA;AAAAA,EACpBa,QAAQ,CACN;AAAA,IACEH,OAAO;AAAA,IACPF,MAAM;AAAA,IACNC,MAAM;AAAA,EAAA,GAER;AAAA,IACEC,OAAO;AAAA,IACPF,MAAM;AAAA,IACNC,MAAM;AAAA,EAAA,GAER;AAAA,IACEC,OAAO;AAAA,IACPF,MAAM;AAAA,IACNC,MAAM;AAAA,EAAA,GAER;AAAA,IACEC,OAAO;AAAA,IACPF,MAAM;AAAA,IACNC,MAAM;AAAA,EAAA,GAER;AAAA,IACEC,OAAO;AAAA,IACPF,MAAM;AAAA,IACNC,MAAM;AAAA,EAAA,CACP;AAAA,EAEHK,SAAS;AAAA,IACPC,QAAQ;AAAA,MACNL,OAAO;AAAA,MACPM,OAAO;AAAA,MACPC,KAAK;AAAA,MACLC,KAAK;AAAA,IAAA;AAAA,IAEPC,QAAQ;AAAA,MACNT;AAAAA,MACAO;AAAAA,MACAC;AAAAA,MACAF;AAAAA,IAAAA,GAMC;AACD,UAAII,WAAWH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IAAKC,MAAM;AAAA,IAAUC,OAAO;AAAA,EAAA,CAAQ;AAE/C,CAAC,GCVYwB,YAAY3B,WAAW;AAAA,EAClCG,OAAO;AAAA,EACPF,MAAM;AAAA,EACNC,MAAM;AAAA,EACNI,QAAQ,CACN;AAAA,IAACL,MAAM;AAAA,IAAKC,MAAM;AAAA,IAAUC,OAAO;AAAA,EAAA,GACnC;AAAA,IAACF,MAAM;AAAA,IAAKC,MAAM;AAAA,IAAUC,OAAO;AAAA,EAAA,GACnC;AAAA,IAACF,MAAM;AAAA,IAAKC,MAAM;AAAA,IAAUC,OAAO;AAAA,EAAA,GACnC;AAAA,IAACF,MAAM;AAAA,IAAKC,MAAM;AAAA,IAAUC,OAAO;AAAA,EAAA,CAAQ;AAE/C,CAAC,GCLYyB,aAAaC,aAAa;AAAA,EACrC5B,MAAM;AAAA,EACN6B,QAAQ;AAAA,IACNC,OAAO,CAACN,WAAWC,WAAWC,WAAW5B,KAAK;AAAA,EAAA;AAElD,CAAC;"}
1
+ {"version":3,"file":"index.js","names":["lazy","ColorInput","defineType","ObjectDefinition","ColorInput","ColorOptions","round","val","Math","colorTypeName","ColorDefinition","Omit","type","options","IntrinsicDefinitions","color","name","title","components","input","fields","preview","select","alpha","hex","hsl","prepare","h","s","l","subtitle","media","backgroundColor","opacity","position","height","width","top","left","defineType","hslaColor","title","name","type","fields","defineType","hsvaColor","title","name","type","fields","defineType","rgbaColor","title","name","type","fields","definePlugin","color","ColorDefinition","hslaColor","hsvaColor","rgbaColor","colorInput","name","schema","types","ColorInput","ColorInputProps","ColorOptions","ColorSchemaType","ColorValue"],"sources":["../src/LazyColorInput.tsx","../src/schemas/color.tsx","../src/schemas/hslaColor.ts","../src/schemas/hsvaColor.ts","../src/schemas/rgbaColor.ts","../src/index.ts"],"sourcesContent":["import {lazy} from 'react'\n\nexport const ColorInput = lazy(() => import('./ColorInput'))\n","import {defineType, type ObjectDefinition} from 'sanity'\n\nimport {ColorInput} from '../LazyColorInput'\nimport {type ColorOptions} from '../types'\n\nconst round = (val: number = 1) => Math.round(val * 100)\n\nconst colorTypeName = 'color'\n\n/**\n * @public\n */\nexport interface ColorDefinition extends Omit<ObjectDefinition, 'type' | 'fields' | 'options'> {\n type: typeof colorTypeName\n options?: ColorOptions\n}\n\ndeclare module 'sanity' {\n // makes type: 'color' narrow correctly when using defineType/defineField/defineArrayMember\n export interface IntrinsicDefinitions {\n color: ColorDefinition\n }\n}\n\nexport const color = defineType({\n name: colorTypeName,\n type: 'object',\n title: 'Color',\n components: {input: ColorInput},\n fields: [\n {\n title: 'Hex',\n name: 'hex',\n type: 'string',\n },\n {\n title: 'Alpha',\n name: 'alpha',\n type: 'number',\n },\n {\n title: 'Hue Saturation Lightness',\n name: 'hsl',\n type: 'hslaColor',\n },\n {\n title: 'Hue Saturation Value',\n name: 'hsv',\n type: 'hsvaColor',\n },\n {\n title: 'Red Green Blue (rgb)',\n name: 'rgb',\n type: 'rgbaColor',\n },\n ],\n preview: {\n select: {\n title: 'hex',\n alpha: 'alpha',\n hex: 'hex',\n hsl: 'hsl',\n },\n prepare({\n title,\n hex,\n hsl,\n alpha,\n }: {\n title: string\n alpha?: number\n hex?: string\n hsl?: {h: number; s: number; l: number}\n }) {\n let subtitle = hex || 'No color set'\n if (hsl) {\n subtitle = `H:${round(hsl.h)} S:${round(hsl.s)} L:${round(hsl.l)} A:${round(alpha)}`\n }\n return {\n title: title,\n subtitle: subtitle,\n media: () => (\n <div\n style={{\n backgroundColor: hex ?? '#000',\n opacity: alpha ?? 1,\n position: 'absolute',\n height: '100%',\n width: '100%',\n top: '0',\n left: '0',\n }}\n />\n ),\n }\n },\n },\n})\n","import {defineType} from 'sanity'\n\nexport const hslaColor = defineType({\n title: 'Hue Saturation Lightness',\n name: 'hslaColor',\n type: 'object',\n fields: [\n {name: 'h', type: 'number', title: 'Hue'},\n {name: 's', type: 'number', title: 'Saturation'},\n {name: 'l', type: 'number', title: 'Lightness'},\n {name: 'a', type: 'number', title: 'Alpha'},\n ],\n})\n","import {defineType} from 'sanity'\n\nexport const hsvaColor = defineType({\n title: 'Hue Saturation Value',\n name: 'hsvaColor',\n type: 'object',\n fields: [\n {name: 'h', type: 'number', title: 'Hue'},\n {name: 's', type: 'number', title: 'Saturation'},\n {name: 'v', type: 'number', title: 'Value'},\n {name: 'a', type: 'number', title: 'Alpha'},\n ],\n})\n","import {defineType} from 'sanity'\n\nexport const rgbaColor = defineType({\n title: 'Red Green Blue (rgb)',\n name: 'rgbaColor',\n type: 'object',\n fields: [\n {name: 'r', type: 'number', title: 'Red'},\n {name: 'g', type: 'number', title: 'Green'},\n {name: 'b', type: 'number', title: 'Blue'},\n {name: 'a', type: 'number', title: 'Alpha'},\n ],\n})\n","import {definePlugin} from 'sanity'\n\nimport {color, type ColorDefinition} from './schemas/color'\nimport {hslaColor} from './schemas/hslaColor'\nimport {hsvaColor} from './schemas/hsvaColor'\nimport {rgbaColor} from './schemas/rgbaColor'\n\nexport const colorInput = definePlugin({\n name: '@sanity/color-input',\n schema: {\n types: [hslaColor, hsvaColor, rgbaColor, color],\n },\n})\n\nexport {color, hslaColor, hsvaColor, rgbaColor}\nexport {ColorInput} from './LazyColorInput'\nexport type {ColorDefinition}\nexport type {ColorInputProps, ColorOptions, ColorSchemaType, ColorValue} from './types'\n"],"mappings":";;;AAEA,MAAaC,aAAaD,WAAW,OAAO,6BAAe,GCGrDM,SAASC,MAAc,MAAMC,KAAKF,MAAMC,MAAM,GAAG,GAmB1CQ,QAAQb,WAAW;CAC9Bc,MAAMP;CACNG,MAAM;CACNK,OAAO;CACPC,YAAY,EAACC,OAAOf,WAAU;CAC9BgB,QAAQ;EACN;GACEH,OAAO;GACPD,MAAM;GACNJ,MAAM;EACR;EACA;GACEK,OAAO;GACPD,MAAM;GACNJ,MAAM;EACR;EACA;GACEK,OAAO;GACPD,MAAM;GACNJ,MAAM;EACR;EACA;GACEK,OAAO;GACPD,MAAM;GACNJ,MAAM;EACR;EACA;GACEK,OAAO;GACPD,MAA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;EAAK;EACxC;GAACC,MAAM;GAAKC,MAAM;GAAUF,OAAO;EAAO;EAC1C;GAACC,MAAM;GAAKC,MAAM;GAAUF,OAAO;EAAM;EACzC;GAACC,MAAM;GAAKC,MAAM;GAAUF,OAAO;EAAO;CAAC;AAE/C,CAAC,GCLYU,aAAaN,aAAa;CACrCO,MAAM;CACNC,QAAQ,EACNC,OAAO;EAACN;EAAWC;EAAWC;EAAWJ;CAAK,EAChD;AACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/color-input",
3
- "version": "6.0.11",
3
+ "version": "6.0.13",
4
4
  "description": "Color input",
5
5
  "keywords": [
6
6
  "cms",
@@ -33,23 +33,22 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@sanity/icons": "^5.0.0",
36
- "@sanity/ui": "^3.3.0",
36
+ "@sanity/ui": "^3.3.5",
37
37
  "lodash-es": "^4.18.1",
38
38
  "tinycolor2": "^1.6.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@sanity/pkg-utils": "^10.9.0",
42
- "@sanity/tsconfig": "^2.1.0",
41
+ "@sanity/tsconfig": "^2.2.0",
42
+ "@sanity/tsdown-config": "^0.13.1",
43
43
  "@types/lodash-es": "^4.17.12",
44
- "@types/node": "^24.13.2",
44
+ "@types/node": "^24.13.3",
45
45
  "@types/react": "^19.2.17",
46
46
  "@types/tinycolor2": "^1.4.6",
47
47
  "babel-plugin-react-compiler": "^1.0.0",
48
- "babel-plugin-styled-components": "^2.3.0",
49
48
  "react": "^19.2.7",
50
49
  "sanity": "^6.3.0",
51
50
  "styled-components": "^6.4.3",
52
- "@repo/package.config": "0.0.0"
51
+ "tsdown": "^0.22.5"
53
52
  },
54
53
  "peerDependencies": {
55
54
  "react": "^19.2",
@@ -60,6 +59,6 @@
60
59
  "node": ">=20.19 <22 || >=22.12"
61
60
  },
62
61
  "scripts": {
63
- "build": "pkg build --strict --check --clean"
62
+ "build": "tsdown"
64
63
  }
65
64
  }