| 1 |
{ |
| 2 |
"name": "@bufbuild/protobuf", |
| 3 |
"version": "2.15.0", |
| 4 |
"license": "(Apache-2.0 AND BSD-3-Clause)", |
| 5 |
"description": "Protocol Buffers for ECMAScript. Fully compliant with the Protobuf conformance tests.", |
| 6 |
"keywords": [ |
| 7 |
"protobuf", |
| 8 |
"schema", |
| 9 |
"typescript", |
| 10 |
"ecmascript" |
| 11 |
], |
| 12 |
"homepage": "https://protobufes.com/", |
| 13 |
"repository": { |
| 14 |
"type": "git", |
| 15 |
"url": "https://github.com/bufbuild/protobuf-es.git", |
| 16 |
"directory": "packages/protobuf" |
| 17 |
}, |
| 18 |
"scripts": { |
| 19 |
"build": "tshy", |
| 20 |
"bootstrap": "npm run bootstrap:inject && npm run bootstrap:wkt", |
| 21 |
"bootstrap:inject": "node scripts/bootstrap-inject.mjs src", |
| 22 |
"bootstrap:wkt": "protoc --es_out=src/wkt/gen --es_opt=bootstrap_wkt=true,target=ts,import_extension=js,json_types=true --proto_path $(upstream-include wkt) $(upstream-files wkt)", |
| 23 |
"postbootstrap:wkt": "license-header src/wkt/gen", |
| 24 |
"format": "biome format --write", |
| 25 |
"license-header": "license-header --ignore 'src/wire/varint.ts'", |
| 26 |
"lint": "biome lint --error-on-warnings", |
| 27 |
"attw": "attw --pack" |
| 28 |
}, |
| 29 |
"type": "module", |
| 30 |
"sideEffects": false, |
| 31 |
"tshy": { |
| 32 |
"selfLink": false, |
| 33 |
"exports": { |
| 34 |
".": "./src/index.ts", |
| 35 |
"./codegenv1": "./src/codegenv1/index.ts", |
| 36 |
"./codegenv2": "./src/codegenv2/index.ts", |
| 37 |
"./reflect": "./src/reflect/index.ts", |
| 38 |
"./wkt": "./src/wkt/index.ts", |
| 39 |
"./wire": "./src/wire/index.ts", |
| 40 |
"./txtpb": "./src/txtpb/index.ts" |
| 41 |
} |
| 42 |
}, |
| 43 |
"devDependencies": { |
| 44 |
"tshy": "^4.1.3", |
| 45 |
"upstream-protobuf": "*" |
| 46 |
}, |
| 47 |
"files": [ |
| 48 |
"dist/**" |
| 49 |
], |
| 50 |
"exports": { |
| 51 |
".": { |
| 52 |
"import": { |
| 53 |
"types": "./dist/esm/index.d.ts", |
| 54 |
"default": "./dist/esm/index.js" |
| 55 |
}, |
| 56 |
"require": { |
| 57 |
"types": "./dist/commonjs/index.d.ts", |
| 58 |
"default": "./dist/commonjs/index.js" |
| 59 |
} |
| 60 |
}, |
| 61 |
"./codegenv1": { |
| 62 |
"import": { |
| 63 |
"types": "./dist/esm/codegenv1/index.d.ts", |
| 64 |
"default": "./dist/esm/codegenv1/index.js" |
| 65 |
}, |
| 66 |
"require": { |
| 67 |
"types": "./dist/commonjs/codegenv1/index.d.ts", |
| 68 |
"default": "./dist/commonjs/codegenv1/index.js" |
| 69 |
} |
| 70 |
}, |
| 71 |
"./codegenv2": { |
| 72 |
"import": { |
| 73 |
"types": "./dist/esm/codegenv2/index.d.ts", |
| 74 |
"default": "./dist/esm/codegenv2/index.js" |
| 75 |
}, |
| 76 |
"require": { |
| 77 |
"types": "./dist/commonjs/codegenv2/index.d.ts", |
| 78 |
"default": "./dist/commonjs/codegenv2/index.js" |
| 79 |
} |
| 80 |
}, |
| 81 |
"./reflect": { |
| 82 |
"import": { |
| 83 |
"types": "./dist/esm/reflect/index.d.ts", |
| 84 |
"default": "./dist/esm/reflect/index.js" |
| 85 |
}, |
| 86 |
"require": { |
| 87 |
"types": "./dist/commonjs/reflect/index.d.ts", |
| 88 |
"default": "./dist/commonjs/reflect/index.js" |
| 89 |
} |
| 90 |
}, |
| 91 |
"./wkt": { |
| 92 |
"import": { |
| 93 |
"types": "./dist/esm/wkt/index.d.ts", |
| 94 |
"default": "./dist/esm/wkt/index.js" |
| 95 |
}, |
| 96 |
"require": { |
| 97 |
"types": "./dist/commonjs/wkt/index.d.ts", |
| 98 |
"default": "./dist/commonjs/wkt/index.js" |
| 99 |
} |
| 100 |
}, |
| 101 |
"./wire": { |
| 102 |
"import": { |
| 103 |
"types": "./dist/esm/wire/index.d.ts", |
| 104 |
"default": "./dist/esm/wire/index.js" |
| 105 |
}, |
| 106 |
"require": { |
| 107 |
"types": "./dist/commonjs/wire/index.d.ts", |
| 108 |
"default": "./dist/commonjs/wire/index.js" |
| 109 |
} |
| 110 |
}, |
| 111 |
"./txtpb": { |
| 112 |
"import": { |
| 113 |
"types": "./dist/esm/txtpb/index.d.ts", |
| 114 |
"default": "./dist/esm/txtpb/index.js" |
| 115 |
}, |
| 116 |
"require": { |
| 117 |
"types": "./dist/commonjs/txtpb/index.d.ts", |
| 118 |
"default": "./dist/commonjs/txtpb/index.js" |
| 119 |
} |
| 120 |
} |
| 121 |
}, |
| 122 |
"main": "./dist/commonjs/index.js", |
| 123 |
"types": "./dist/commonjs/index.d.ts", |
| 124 |
"module": "./dist/esm/index.js", |
| 125 |
"typesVersions": { |
| 126 |
"*": { |
| 127 |
"codegenv1": [ |
| 128 |
"./dist/commonjs/codegenv1/index.d.ts" |
| 129 |
], |
| 130 |
"codegenv2": [ |
| 131 |
"./dist/commonjs/codegenv2/index.d.ts" |
| 132 |
], |
| 133 |
"reflect": [ |
| 134 |
"./dist/commonjs/reflect/index.d.ts" |
| 135 |
], |
| 136 |
"wkt": [ |
| 137 |
"./dist/commonjs/wkt/index.d.ts" |
| 138 |
], |
| 139 |
"wire": [ |
| 140 |
"./dist/commonjs/wire/index.d.ts" |
| 141 |
], |
| 142 |
"txtpb": [ |
| 143 |
"./dist/commonjs/txtpb/index.d.ts" |
| 144 |
] |
| 145 |
} |
| 146 |
} |
| 147 |
} |