1+ {
2+ "name" : " @commontools/data" ,
3+ "author" : " The Common Authors" ,
4+ "version" : " 0.0.1" ,
5+ "description" : " " ,
6+ "license" : " UNLICENSED" ,
7+ "private" : true ,
8+ "type" : " module" ,
9+ "files" : [
10+ " ./lib/**/*"
11+ ],
12+ "exports" : {
13+ "." : {
14+ "types" : " ./lib/index.d.ts" ,
15+ "default" : " ./lib/index.js"
16+ },
17+ "./interfaces/common-data-types.js" : {
18+ "types" : " ./lib/interfaces/common-data-types.js"
19+ }
20+ },
21+ "scripts" : {
22+ "build" : " wireit" ,
23+ "clean" : " wireit" ,
24+ "update:wit" : " wireit" ,
25+ "lint:wit" : " wireit" ,
26+ "build:wit" : " wireit"
27+ },
28+ "repository" : {
29+ "type" : " git" ,
30+ "url" : " git+https://github.com/commontoolsinc/labs.git"
31+ },
32+ "bugs" : {
33+ "url" : " https://github.com/commontoolsinc/labs/issues"
34+ },
35+ "homepage" : " https://github.com/commontoolsinc/labs#readme" ,
36+ "dependencies" : {},
37+ "devDependencies" : {
38+ "@bytecodealliance/jco" : " ^1.2.4" ,
39+ "typescript" : " ^5.2.2" ,
40+ "wireit" : " ^0.14.4"
41+ },
42+ "wireit" : {
43+ "install:wit" : {
44+ "command" : " wit-deps" ,
45+ "files" : [
46+ " ./wit/deps.*"
47+ ],
48+ "output" : [
49+ " ./wit/deps/**/*"
50+ ]
51+ },
52+ "lint:wit" : {
53+ "dependencies" : [
54+ " install:wit"
55+ ],
56+ "command" : " wasm-tools component wit ./wit" ,
57+ "files" : [
58+ " ./wit/**/*"
59+ ]
60+ },
61+ "update:wit" : {
62+ "command" : " wit-deps update" ,
63+ "files" : [
64+ " ./wit/deps.toml"
65+ ],
66+ "output" : [
67+ " ./wit/deps.lock" ,
68+ " ./wit/deps/**/*"
69+ ]
70+ },
71+ "build:jco" : {
72+ "dependencies" : [
73+ " install:wit" ,
74+ " lint:wit"
75+ ],
76+ "command" : " jco types -o ./lib --name index ./wit" ,
77+ "files" : [
78+ " ./wit/**/*"
79+ ],
80+ "output" : [
81+ " ./lib/**/*"
82+ ]
83+ },
84+ "build:wit:index" : {
85+ "dependencies" : [
86+ " build:jco"
87+ ],
88+ "command" : " cat ./wit/*.wit | ./scripts/generate-wit-module.sh > ./lib/index.js" ,
89+ "files" : [
90+ " ./scripts/generate-wit-module.sh" ,
91+ " ./wit/*.wit"
92+ ]
93+ },
94+ "build:wit:types" : {
95+ "dependencies" : [
96+ " build:jco"
97+ ],
98+ "command" : " echo 'export const wit: string;' >> ./lib/index.d.ts" ,
99+ "files" : [
100+ " ./lib/index.d.ts"
101+ ]
102+ },
103+ "build:wit" : {
104+ "dependencies" : [
105+ " build:wit:index" ,
106+ " build:wit:types"
107+ ]
108+ },
109+ "build" : {
110+ "dependencies" : [
111+ " build:jco" ,
112+ " build:wit"
113+ ]
114+ },
115+ "clean" : {
116+ "command" : " rm -rf ./src ./lib ./.wireit"
117+ }
118+ }
119+ }
0 commit comments