@ghostty-webgpu/shader-abi 0.0.0-stage → 0.0.1
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/LICENSE +21 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3 -0
- package/dist/types.d.ts +23 -0
- package/dist/types.js +2 -0
- package/dist/uniforms.d.ts +130 -0
- package/dist/uniforms.js +126 -0
- package/dist/vertices.d.ts +4 -0
- package/dist/vertices.js +26 -0
- package/package.json +39 -4
- package/README.md +0 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Shaul Lavo
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { SHADER_SCHEMA_VERSION, SHADER_UNIFORM_LAYOUT } from './types.js';
|
|
2
|
+
export type { CompiledGhosttyShader, ShaderUniformField, ShaderVector2, ShaderVector3, ShaderVector4, } from './types.js';
|
|
3
|
+
export { packShaderUniforms, SHADER_UNIFORM_BYTE_LENGTH, SHADER_UNIFORM_FIELDS, type ShaderUniformValues, } from './uniforms.js';
|
|
4
|
+
export { FULLSCREEN_VERTEX_GLSL, FULLSCREEN_VERTEX_WGSL } from './vertices.js';
|
package/dist/index.js
ADDED
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const SHADER_SCHEMA_VERSION: 1;
|
|
2
|
+
export declare const SHADER_UNIFORM_LAYOUT: 'ghostty-v1';
|
|
3
|
+
export type ShaderVector2 = readonly [number, number];
|
|
4
|
+
export type ShaderVector3 = readonly [number, number, number];
|
|
5
|
+
export type ShaderVector4 = readonly [number, number, number, number];
|
|
6
|
+
export interface CompiledGhosttyShader {
|
|
7
|
+
readonly schemaVersion: typeof SHADER_SCHEMA_VERSION;
|
|
8
|
+
readonly uniformLayout: typeof SHADER_UNIFORM_LAYOUT;
|
|
9
|
+
readonly glsl: string;
|
|
10
|
+
readonly wgsl: string;
|
|
11
|
+
readonly entryPoint: 'main';
|
|
12
|
+
readonly webgl: {
|
|
13
|
+
readonly uniformBlock: string | null;
|
|
14
|
+
readonly channel0: string | null;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface ShaderUniformField {
|
|
18
|
+
readonly name: string;
|
|
19
|
+
readonly type: 'float' | 'int' | 'vec3' | 'vec4';
|
|
20
|
+
readonly offset: number;
|
|
21
|
+
readonly count: number;
|
|
22
|
+
readonly stride: number;
|
|
23
|
+
}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import type { ShaderUniformField, ShaderVector3, ShaderVector4 } from './types.js';
|
|
2
|
+
declare const UNIFORM_DEFINITIONS: readonly [{
|
|
3
|
+
readonly name: "iResolution";
|
|
4
|
+
readonly type: "vec3";
|
|
5
|
+
readonly count: 1;
|
|
6
|
+
}, {
|
|
7
|
+
readonly name: "iTime";
|
|
8
|
+
readonly type: "float";
|
|
9
|
+
readonly count: 1;
|
|
10
|
+
}, {
|
|
11
|
+
readonly name: "iTimeDelta";
|
|
12
|
+
readonly type: "float";
|
|
13
|
+
readonly count: 1;
|
|
14
|
+
}, {
|
|
15
|
+
readonly name: "iFrameRate";
|
|
16
|
+
readonly type: "float";
|
|
17
|
+
readonly count: 1;
|
|
18
|
+
}, {
|
|
19
|
+
readonly name: "iFrame";
|
|
20
|
+
readonly type: "int";
|
|
21
|
+
readonly count: 1;
|
|
22
|
+
}, {
|
|
23
|
+
readonly name: "iChannelTime";
|
|
24
|
+
readonly type: "float";
|
|
25
|
+
readonly count: 4;
|
|
26
|
+
}, {
|
|
27
|
+
readonly name: "iChannelResolution";
|
|
28
|
+
readonly type: "vec3";
|
|
29
|
+
readonly count: 4;
|
|
30
|
+
}, {
|
|
31
|
+
readonly name: "iMouse";
|
|
32
|
+
readonly type: "vec4";
|
|
33
|
+
readonly count: 1;
|
|
34
|
+
}, {
|
|
35
|
+
readonly name: "iDate";
|
|
36
|
+
readonly type: "vec4";
|
|
37
|
+
readonly count: 1;
|
|
38
|
+
}, {
|
|
39
|
+
readonly name: "iSampleRate";
|
|
40
|
+
readonly type: "float";
|
|
41
|
+
readonly count: 1;
|
|
42
|
+
}, {
|
|
43
|
+
readonly name: "iCurrentCursor";
|
|
44
|
+
readonly type: "vec4";
|
|
45
|
+
readonly count: 1;
|
|
46
|
+
}, {
|
|
47
|
+
readonly name: "iPreviousCursor";
|
|
48
|
+
readonly type: "vec4";
|
|
49
|
+
readonly count: 1;
|
|
50
|
+
}, {
|
|
51
|
+
readonly name: "iCurrentCursorColor";
|
|
52
|
+
readonly type: "vec4";
|
|
53
|
+
readonly count: 1;
|
|
54
|
+
}, {
|
|
55
|
+
readonly name: "iPreviousCursorColor";
|
|
56
|
+
readonly type: "vec4";
|
|
57
|
+
readonly count: 1;
|
|
58
|
+
}, {
|
|
59
|
+
readonly name: "iCurrentCursorStyle";
|
|
60
|
+
readonly type: "int";
|
|
61
|
+
readonly count: 1;
|
|
62
|
+
}, {
|
|
63
|
+
readonly name: "iPreviousCursorStyle";
|
|
64
|
+
readonly type: "int";
|
|
65
|
+
readonly count: 1;
|
|
66
|
+
}, {
|
|
67
|
+
readonly name: "iCursorVisible";
|
|
68
|
+
readonly type: "int";
|
|
69
|
+
readonly count: 1;
|
|
70
|
+
}, {
|
|
71
|
+
readonly name: "iTimeCursorChange";
|
|
72
|
+
readonly type: "float";
|
|
73
|
+
readonly count: 1;
|
|
74
|
+
}, {
|
|
75
|
+
readonly name: "iTimeFocus";
|
|
76
|
+
readonly type: "float";
|
|
77
|
+
readonly count: 1;
|
|
78
|
+
}, {
|
|
79
|
+
readonly name: "iFocus";
|
|
80
|
+
readonly type: "int";
|
|
81
|
+
readonly count: 1;
|
|
82
|
+
}, {
|
|
83
|
+
readonly name: "iPalette";
|
|
84
|
+
readonly type: "vec3";
|
|
85
|
+
readonly count: 256;
|
|
86
|
+
}, {
|
|
87
|
+
readonly name: "iBackgroundColor";
|
|
88
|
+
readonly type: "vec3";
|
|
89
|
+
readonly count: 1;
|
|
90
|
+
}, {
|
|
91
|
+
readonly name: "iForegroundColor";
|
|
92
|
+
readonly type: "vec3";
|
|
93
|
+
readonly count: 1;
|
|
94
|
+
}, {
|
|
95
|
+
readonly name: "iCursorColor";
|
|
96
|
+
readonly type: "vec3";
|
|
97
|
+
readonly count: 1;
|
|
98
|
+
}, {
|
|
99
|
+
readonly name: "iCursorText";
|
|
100
|
+
readonly type: "vec3";
|
|
101
|
+
readonly count: 1;
|
|
102
|
+
}, {
|
|
103
|
+
readonly name: "iSelectionForegroundColor";
|
|
104
|
+
readonly type: "vec3";
|
|
105
|
+
readonly count: 1;
|
|
106
|
+
}, {
|
|
107
|
+
readonly name: "iSelectionBackgroundColor";
|
|
108
|
+
readonly type: "vec3";
|
|
109
|
+
readonly count: 1;
|
|
110
|
+
}];
|
|
111
|
+
interface UniformTypeValues {
|
|
112
|
+
readonly float: number;
|
|
113
|
+
readonly int: number;
|
|
114
|
+
readonly vec3: ShaderVector3;
|
|
115
|
+
readonly vec4: ShaderVector4;
|
|
116
|
+
}
|
|
117
|
+
interface UniformCountValues<T> {
|
|
118
|
+
readonly 1: T;
|
|
119
|
+
readonly 4: readonly [T, T, T, T];
|
|
120
|
+
readonly 256: readonly T[];
|
|
121
|
+
}
|
|
122
|
+
type UniformValue<T extends (typeof UNIFORM_DEFINITIONS)[number]> = UniformCountValues<UniformTypeValues[T['type']]>[T['count']];
|
|
123
|
+
export type ShaderUniformValues = {
|
|
124
|
+
readonly [Field in (typeof UNIFORM_DEFINITIONS)[number] as Field['name']]: UniformValue<Field>;
|
|
125
|
+
};
|
|
126
|
+
export declare const SHADER_UNIFORM_FIELDS: readonly ShaderUniformField[];
|
|
127
|
+
export declare const SHADER_UNIFORM_BYTE_LENGTH: number;
|
|
128
|
+
/** Packs the shared std140 ABI. Omitted values are zero; iResolution.z defaults to one. */
|
|
129
|
+
export declare function packShaderUniforms(values?: Partial<ShaderUniformValues>, output?: ArrayBuffer): ArrayBuffer;
|
|
130
|
+
export {};
|
package/dist/uniforms.js
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
function defineUniforms(fields) {
|
|
2
|
+
return fields;
|
|
3
|
+
}
|
|
4
|
+
const UNIFORM_DEFINITIONS = defineUniforms([
|
|
5
|
+
{ name: 'iResolution', type: 'vec3', count: 1 },
|
|
6
|
+
{ name: 'iTime', type: 'float', count: 1 },
|
|
7
|
+
{ name: 'iTimeDelta', type: 'float', count: 1 },
|
|
8
|
+
{ name: 'iFrameRate', type: 'float', count: 1 },
|
|
9
|
+
{ name: 'iFrame', type: 'int', count: 1 },
|
|
10
|
+
{ name: 'iChannelTime', type: 'float', count: 4 },
|
|
11
|
+
{ name: 'iChannelResolution', type: 'vec3', count: 4 },
|
|
12
|
+
{ name: 'iMouse', type: 'vec4', count: 1 },
|
|
13
|
+
{ name: 'iDate', type: 'vec4', count: 1 },
|
|
14
|
+
{ name: 'iSampleRate', type: 'float', count: 1 },
|
|
15
|
+
{ name: 'iCurrentCursor', type: 'vec4', count: 1 },
|
|
16
|
+
{ name: 'iPreviousCursor', type: 'vec4', count: 1 },
|
|
17
|
+
{ name: 'iCurrentCursorColor', type: 'vec4', count: 1 },
|
|
18
|
+
{ name: 'iPreviousCursorColor', type: 'vec4', count: 1 },
|
|
19
|
+
{ name: 'iCurrentCursorStyle', type: 'int', count: 1 },
|
|
20
|
+
{ name: 'iPreviousCursorStyle', type: 'int', count: 1 },
|
|
21
|
+
{ name: 'iCursorVisible', type: 'int', count: 1 },
|
|
22
|
+
{ name: 'iTimeCursorChange', type: 'float', count: 1 },
|
|
23
|
+
{ name: 'iTimeFocus', type: 'float', count: 1 },
|
|
24
|
+
{ name: 'iFocus', type: 'int', count: 1 },
|
|
25
|
+
{ name: 'iPalette', type: 'vec3', count: 256 },
|
|
26
|
+
{ name: 'iBackgroundColor', type: 'vec3', count: 1 },
|
|
27
|
+
{ name: 'iForegroundColor', type: 'vec3', count: 1 },
|
|
28
|
+
{ name: 'iCursorColor', type: 'vec3', count: 1 },
|
|
29
|
+
{ name: 'iCursorText', type: 'vec3', count: 1 },
|
|
30
|
+
{ name: 'iSelectionForegroundColor', type: 'vec3', count: 1 },
|
|
31
|
+
{ name: 'iSelectionBackgroundColor', type: 'vec3', count: 1 },
|
|
32
|
+
]);
|
|
33
|
+
const COMPONENTS = { float: 1, int: 1, vec3: 3, vec4: 4 };
|
|
34
|
+
function align(offset, alignment) {
|
|
35
|
+
return Math.ceil(offset / alignment) * alignment;
|
|
36
|
+
}
|
|
37
|
+
function uniformFields() {
|
|
38
|
+
let end = 0;
|
|
39
|
+
return Object.freeze(UNIFORM_DEFINITIONS.map((definition) => {
|
|
40
|
+
const components = COMPONENTS[definition.type];
|
|
41
|
+
const array = definition.count > 1;
|
|
42
|
+
const alignment = array || components >= 3 ? 16 : 4;
|
|
43
|
+
const offset = align(end, alignment);
|
|
44
|
+
const stride = array ? 16 : components * 4;
|
|
45
|
+
end = offset + stride * definition.count;
|
|
46
|
+
return Object.freeze({ ...definition, offset, stride });
|
|
47
|
+
}));
|
|
48
|
+
}
|
|
49
|
+
export const SHADER_UNIFORM_FIELDS = uniformFields();
|
|
50
|
+
function uniformByteLength() {
|
|
51
|
+
let end = 0;
|
|
52
|
+
for (const field of SHADER_UNIFORM_FIELDS) {
|
|
53
|
+
end = Math.max(end, field.offset + field.stride * field.count);
|
|
54
|
+
}
|
|
55
|
+
return align(end, 16);
|
|
56
|
+
}
|
|
57
|
+
export const SHADER_UNIFORM_BYTE_LENGTH = uniformByteLength();
|
|
58
|
+
function checkedNumber(value, integer, name) {
|
|
59
|
+
if (typeof value !== 'number' || !Number.isFinite(value)) {
|
|
60
|
+
throw new TypeError(`${name} must be a finite number`);
|
|
61
|
+
}
|
|
62
|
+
if (!integer && !Number.isFinite(Math.fround(value))) {
|
|
63
|
+
throw new RangeError(`${name} must fit in a 32-bit float`);
|
|
64
|
+
}
|
|
65
|
+
if (integer && (!Number.isInteger(value) || value < -2147483648 || value > 2147483647)) {
|
|
66
|
+
throw new RangeError(`${name} must be a signed 32-bit integer`);
|
|
67
|
+
}
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
function writeValue(view, field, value, index) {
|
|
71
|
+
const offset = field.offset + field.stride * index;
|
|
72
|
+
const components = COMPONENTS[field.type];
|
|
73
|
+
if (components === 1) {
|
|
74
|
+
const number = checkedNumber(value, field.type === 'int', field.name);
|
|
75
|
+
if (field.type === 'int')
|
|
76
|
+
view.setInt32(offset, number, true);
|
|
77
|
+
if (field.type === 'float')
|
|
78
|
+
view.setFloat32(offset, number, true);
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
if (!Array.isArray(value) || value.length !== components) {
|
|
82
|
+
throw new TypeError(`${field.name} must contain ${components} numbers per vector`);
|
|
83
|
+
}
|
|
84
|
+
for (let component = 0; component < components; component += 1) {
|
|
85
|
+
const number = checkedNumber(value[component], false, field.name);
|
|
86
|
+
view.setFloat32(offset + component * 4, number, true);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
function writeField(view, field, value) {
|
|
90
|
+
if (field.count === 1)
|
|
91
|
+
return writeValue(view, field, value, 0);
|
|
92
|
+
if (!Array.isArray(value) || value.length !== field.count) {
|
|
93
|
+
throw new TypeError(`${field.name} must contain ${field.count} entries`);
|
|
94
|
+
}
|
|
95
|
+
for (let index = 0; index < field.count; index += 1) {
|
|
96
|
+
writeValue(view, field, value[index], index);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
const UNIFORM_NAMES = new Set(SHADER_UNIFORM_FIELDS.map((field) => field.name));
|
|
100
|
+
const DEFAULT_VALUES = { iResolution: [0, 0, 1] };
|
|
101
|
+
function validateValues(values) {
|
|
102
|
+
if (values === null || typeof values !== 'object' || Array.isArray(values)) {
|
|
103
|
+
throw new TypeError('Shader uniform values must be an object');
|
|
104
|
+
}
|
|
105
|
+
for (const name of Object.keys(values)) {
|
|
106
|
+
if (!UNIFORM_NAMES.has(name))
|
|
107
|
+
throw new TypeError(`Unknown shader uniform: ${name}`);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
/** Packs the shared std140 ABI. Omitted values are zero; iResolution.z defaults to one. */
|
|
111
|
+
export function packShaderUniforms(values = {}, output = new ArrayBuffer(SHADER_UNIFORM_BYTE_LENGTH)) {
|
|
112
|
+
validateValues(values);
|
|
113
|
+
if (!(output instanceof ArrayBuffer) || output.byteLength !== SHADER_UNIFORM_BYTE_LENGTH) {
|
|
114
|
+
throw new RangeError(`Shader uniform output must be a ${SHADER_UNIFORM_BYTE_LENGTH}-byte ArrayBuffer`);
|
|
115
|
+
}
|
|
116
|
+
new Uint8Array(output).fill(0);
|
|
117
|
+
const view = new DataView(output);
|
|
118
|
+
for (const field of SHADER_UNIFORM_FIELDS) {
|
|
119
|
+
const value = Reflect.get(values, field.name);
|
|
120
|
+
const effectiveValue = value === undefined ? Reflect.get(DEFAULT_VALUES, field.name) : value;
|
|
121
|
+
if (effectiveValue === undefined)
|
|
122
|
+
continue;
|
|
123
|
+
writeField(view, field, effectiveValue);
|
|
124
|
+
}
|
|
125
|
+
return output;
|
|
126
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Draw three vertices. Channel textures use row zero as the logical bottom row. */
|
|
2
|
+
export declare const FULLSCREEN_VERTEX_WGSL = "struct VertexOutput {\n @builtin(position) position: vec4<f32>,\n @location(0) uv: vec2<f32>,\n}\n\n@vertex\nfn main(@builtin(vertex_index) index: u32) -> VertexOutput {\n let uv = vec2<f32>(f32((index << 1u) & 2u), f32(index & 2u));\n var output: VertexOutput;\n output.position = vec4<f32>(uv * 2.0 - 1.0, 0.0, 1.0);\n output.uv = uv;\n return output;\n}\n";
|
|
3
|
+
/** Draw three vertices with no vertex buffers. Matches the WGSL vertex output. */
|
|
4
|
+
export declare const FULLSCREEN_VERTEX_GLSL = "#version 300 es\nprecision highp float;\nout vec2 _vs2fs_location0;\n\nvoid main() {\n vec2 uv = vec2(float((gl_VertexID << 1) & 2), float(gl_VertexID & 2));\n gl_Position = vec4(uv * 2.0 - 1.0, 0.0, 1.0);\n _vs2fs_location0 = uv;\n}\n";
|
package/dist/vertices.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** Draw three vertices. Channel textures use row zero as the logical bottom row. */
|
|
2
|
+
export const FULLSCREEN_VERTEX_WGSL = `struct VertexOutput {
|
|
3
|
+
@builtin(position) position: vec4<f32>,
|
|
4
|
+
@location(0) uv: vec2<f32>,
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@vertex
|
|
8
|
+
fn main(@builtin(vertex_index) index: u32) -> VertexOutput {
|
|
9
|
+
let uv = vec2<f32>(f32((index << 1u) & 2u), f32(index & 2u));
|
|
10
|
+
var output: VertexOutput;
|
|
11
|
+
output.position = vec4<f32>(uv * 2.0 - 1.0, 0.0, 1.0);
|
|
12
|
+
output.uv = uv;
|
|
13
|
+
return output;
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
16
|
+
/** Draw three vertices with no vertex buffers. Matches the WGSL vertex output. */
|
|
17
|
+
export const FULLSCREEN_VERTEX_GLSL = `#version 300 es
|
|
18
|
+
precision highp float;
|
|
19
|
+
out vec2 _vs2fs_location0;
|
|
20
|
+
|
|
21
|
+
void main() {
|
|
22
|
+
vec2 uv = vec2(float((gl_VertexID << 1) & 2), float(gl_VertexID & 2));
|
|
23
|
+
gl_Position = vec4(uv * 2.0 - 1.0, 0.0, 1.0);
|
|
24
|
+
_vs2fs_location0 = uv;
|
|
25
|
+
}
|
|
26
|
+
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ghostty-webgpu/shader-abi",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Uniform ABI and fullscreen vertex shaders for compiled Ghostty effects",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/ShaulLavo/ghostty-webgpu.git",
|
|
9
|
+
"directory": "packages/shader-abi"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"LICENSE"
|
|
14
|
+
],
|
|
15
|
+
"type": "module",
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.js"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public",
|
|
25
|
+
"provenance": true
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "node --input-type=module -e \"import { rmSync } from 'node:fs'; rmSync('dist', { force: true, recursive: true })\" && tsc -p tsconfig.build.json",
|
|
29
|
+
"typecheck": "tsc --noEmit",
|
|
30
|
+
"test": "vitest run",
|
|
31
|
+
"test:package": "node scripts/package-smoke.mjs"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"typescript": "7.0.2",
|
|
35
|
+
"vitest": "5.0.2"
|
|
36
|
+
},
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=20"
|
|
39
|
+
},
|
|
40
|
+
"packageManager": "bun@1.4.4"
|
|
41
|
+
}
|
package/README.md
DELETED