-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
120 lines (120 loc) · 3.92 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"name": "@toa.io/toa",
"private": true,
"description": "Microservice operations distributed runtime",
"homepage": "https://toa.io",
"author": {
"name": "Artem Gurtovoi",
"url": "https://github.com/temich"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/toa-io/toa.git"
},
"bugs": {
"url": "https://github.com/toa-io/toa/issues"
},
"workspaces": [
"runtime/*",
"connectors/*",
"extensions/*",
"libraries/*",
"operations",
"userland",
"types"
],
"engines": {
"node": ">= 18.0.0"
},
"bin": {
"toa": "runtime/runtime/bin/toa"
},
"devDependencies": {
"@commitlint/cli": "14.1.0",
"@commitlint/config-conventional": "14.1.0",
"@cucumber/cucumber": "10.0.1",
"@google-cloud/pubsub": "4.3.3",
"@types/jest": "29.5.3",
"@types/node": "20.8.10",
"@types/randomstring": "1.1.8",
"clone-deep": "4.0.1",
"cucumber-tsflow": "4.2.1",
"dotenv": "16.0.3",
"eslint": "8.56.0",
"eslint-config-prettier": "9.1.0",
"eslint-config-standard-with-typescript": "43.0.1",
"execa": "5.1.1",
"husky": "8.0.3",
"jest": "29.5.0",
"jest-diff": "29.6.2",
"json-schema-to-typescript": "13.1.2",
"knex": "2.4.2",
"lerna": "8.1.2",
"mongodb": "6.7.0",
"msw": "2.2.1",
"randomstring": "1.3.0",
"testcontainers": "10.2.2",
"ts-jest": "29.1.0",
"ts-node": "10.9.1",
"typescript": "^5.3.3"
},
"scripts": {
"prepare": "husky install",
"install": "npm run transpile",
"test": "npm run lint && npm run test:unit",
"test:unit": "jest --roots runtime connectors extensions operations libraries features userland",
"test:stage": "jest --roots userland/example/stage --testPathIgnorePatterns .*/transpiled/",
"test:integration": "jest --roots integration --runInBand --testTimeout 180000",
"features": "cucumber-js -t 'not @skip' && npm run features --workspaces --if-present",
"test:all": "npm run test && npm run test:integration && npm run test:stage && npm run features",
"lint": "eslint .",
"lint:diff": "eslint $(git diff --name-only --diff-filter=d HEAD | grep -E '\\.ts$' | xargs)",
"npm:login:local": "npm adduser --registry http://localhost:4873 --auth-type=legacy",
"version:local": "lerna version --conventional-prerelease --preid local --no-commit-hooks --no-changelog --yes --no-git-tag-version && git commit -am 'chore: local bump' --no-verify",
"publish:canary": "lerna publish --canary --preid local --registry http://localhost:4873",
"cluster": "chmod +x ./integration/scripts/cluster.sh && ./integration/scripts/cluster.sh",
"buildx": "docker buildx create --name toa --use && docker buildx inspect --bootstrap",
"setup": "docker compose up -d && npm run cluster && npm run buildx && npm run publish:local && npm ci && toa deploy ./integration/context",
"ci": "rm -rf node_modules && npm exec --workspaces -c \"rm -rf node_modules transpiled\" && npm i",
"transpile": "lerna run transpile",
"retranspile": "npm exec --workspaces -c \"rm -rf transpiled\" && npm run transpile",
"compose": "docker compose rm -f -s -v && docker compose up -d"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"coverageProvider": "v8",
"coverageReporters": [
"lcov",
"text",
"text-summary",
"json"
],
"coveragePathIgnorePatterns": [
"node_modules/",
"transpiled/"
],
"collectCoverageFrom": [
"**/source/**"
],
"roots": [
"<rootDir>/runtime",
"<rootDir>/connectors",
"<rootDir>/extensions",
"<rootDir>/operations",
"<rootDir>/libraries",
"<rootDir>/integration",
"<rootDir>/features",
"<rootDir>/userland"
],
"testMatch": [
"**/(*.)+(test).(js|ts)"
],
"testPathIgnorePatterns": [
".*/transpiled/",
"<rootDir>/userland/example/stage"
],
"bail": true
}
}