-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
73 lines (73 loc) · 3.29 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
{
"name": "@openfeed/sdk-js",
"version": "1.3.1",
"description": "JavaScript SDK for Barchart OpenFeed",
"main": "dist/node.js",
"browser": "dist/index.js",
"type": "module",
"types": "dist/src/index.d.ts",
"repository": "https://github.com/openfeed-org/sdk-js",
"author": "Dejan Maksimovic <maximovic.d@gmail.com>",
"license": "MIT",
"scripts": {
"prepare": "husky install",
"generate:proto": "cd node_modules\\proto && ..\\..\\protoc --plugin=..\\..\\node_modules\\.bin\\protoc-gen-ts_proto --ts_proto_opt=outputJsonMethods=false --ts_proto_opt=outputPartialMethods=false --ts_proto_opt=exportCommonSymbols=false --ts_proto_opt=esModuleInterop=true --ts_proto_opt=forceLong=long --ts_proto_opt=useExactTypes=false --ts_proto_out=../../generated *.proto",
"generate:version": "genversion --es6 -s -d ./generated/version.ts",
"generate:process": "tsx ./scripts/process.ts",
"generate": "yarn generate:proto && yarn generate:process",
"build:clear": "rimraf dist",
"build:node": "esbuild --bundle --outfile=dist/node.js --platform=node --target=node16 --format=esm --banner:js=\"import { createRequire } from 'module';const require = createRequire(import.meta.url);\" src/index.ts",
"build:ts": "yarn generate:version && vite build",
"build:types": "tsc -p tsconfig.types.json",
"build:test-release": "standard-version --dry-run",
"build:prepare-release": "standard-version -t ''",
"run:browser": "yarn generate:version && vite dev",
"run:node": "yarn generate:version && tsx ./src/test.ts"
},
"devDependencies": {
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
"@types/jest": "^29.5.4",
"@types/node": "^20.5.6",
"@types/ws": "^8.5.5",
"@typescript-eslint/eslint-plugin": "^6.4.1",
"@typescript-eslint/parser": "^6.4.1",
"eslint": "^8.47.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-prettier": "^5.0.0",
"genversion": "^3.1.1",
"google-protobuf": "^3.21.2",
"husky": "^8.0.0",
"jest": "^29.6.4",
"prettier": "^3.0.2",
"proto": "git+ssh://git@github.com/openfeed-org/proto.git#master",
"standard-version": "^9.5.0",
"ts-jest": "^29.1.1",
"ts-proto": "^1.156.7",
"tsx": "^3.12.7",
"typescript": "^5.2.2",
"vite": "^4.4.9"
},
"packageManager": "yarn@1.22.19",
"dependencies": {
"isomorphic-ws": "^5.0.0",
"long": "^5.2.3",
"ws": "^8.13.0"
},
"files": [
"dist",
"package.json",
"*.md",
"LICENSE",
"tsconfig.json"
],
"standard-version": {
"scripts": {
"prechangelog": "node -e \"const fs = require('fs'), path = require('path'); const version = JSON.parse(fs.readFileSync('package.json')).version; fs.mkdirSync('.releases', { recursive: true }); fs.renameSync('CHANGELOG.md', path.join('.releases', 'CHANGELOG-' + version + '.md'));\"",
"postcommit": "git add .releases/CHANGELOG-*.md && git commit --amend --no-edit"
}
}
}