-
Notifications
You must be signed in to change notification settings - Fork 75
/
package.json
76 lines (76 loc) · 2.38 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"name": "@bufbuild/protobuf",
"version": "2.2.3",
"license": "(Apache-2.0 AND BSD-3-Clause)",
"description": "A complete implementation of Protocol Buffers in TypeScript, suitable for web browsers and Node.js.",
"keywords": [
"protobuf",
"schema",
"typescript",
"ecmascript"
],
"repository": {
"type": "git",
"url": "https://github.com/bufbuild/protobuf-es.git",
"directory": "packages/protobuf"
},
"scripts": {
"prebuild": "rm -rf ./dist/*",
"build": "npm run build:cjs && npm run build:esm",
"build:cjs": "../../node_modules/typescript/bin/tsc --project tsconfig.json --module commonjs --verbatimModuleSyntax false --moduleResolution node10 --outDir ./dist/cjs && echo >./dist/cjs/package.json '{\"type\":\"commonjs\"}'",
"build:esm": "../../node_modules/typescript/bin/tsc --project tsconfig.json --outDir ./dist/esm",
"bootstrap:inject": "node scripts/bootstrap-inject.mjs src",
"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) && license-header src/wkt/gen",
"format": "prettier --write --ignore-unknown '.' '!dist' '!src/wkt/gen'",
"license-header": "license-header --ignore 'src/wire/varint.ts'",
"lint": "eslint --max-warnings 0 .",
"attw": "attw --pack"
},
"type": "module",
"sideEffects": false,
"main": "./dist/cjs/index.js",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
},
"./codegenv1": {
"import": "./dist/esm/codegenv1/index.js",
"require": "./dist/cjs/codegenv1/index.js"
},
"./reflect": {
"import": "./dist/esm/reflect/index.js",
"require": "./dist/cjs/reflect/index.js"
},
"./wkt": {
"import": "./dist/esm/wkt/index.js",
"require": "./dist/cjs/wkt/index.js"
},
"./wire": {
"import": "./dist/esm/wire/index.js",
"require": "./dist/cjs/wire/index.js"
}
},
"typesVersions": {
"*": {
"codegenv1": [
"./dist/cjs/codegenv1/index.d.ts"
],
"reflect": [
"./dist/cjs/reflect/index.d.ts"
],
"wkt": [
"./dist/cjs/wkt/index.d.ts"
],
"wire": [
"./dist/cjs/wire/index.d.ts"
]
}
},
"devDependencies": {
"upstream-protobuf": "*"
},
"files": [
"dist/**"
]
}