-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
156 lines (156 loc) · 5.32 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
{
"name": "@beecode/msh-test-contractor",
"version": "0.3.9",
"description": "Test Contractor",
"keywords": [],
"homepage": "https://github.com/beecode-rs/msh-test-contractor#readme",
"bugs": {
"url": "https://github.com/beecode-rs/msh-test-contractor/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/beecode-rs/msh-test-contractor.git"
},
"license": "mit",
"author": "Milos Bugarinovic <milos.bugarinovic@gmail.com> (https://milos.bugarinovic.com)",
"type": "module",
"imports": {
"#packageJson": "./package.json",
"#src": "./dist/index.js",
"#src/*": "./dist/*.js"
},
"exports": {
".": {
"import": "./dist/index.js",
"require": "./lib/index.js",
"types": "./dist/index.d.ts"
},
"./*": {
"import": "./dist/*.js",
"types": "./dist/*.d.ts"
},
"./lib/*": {
"require": "./lib/*.js",
"types": "./lib/*.d.ts"
}
},
"main": "./lib/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"./dist",
"./lib"
],
"scripts": {
"babel": "npx babel --extensions .ts",
"build": "npm run clean && npm run tsc",
"build-cjs": "npm run clean-cjs && npm run tsc-cjs && npm run tsc-types && npm run tsc-types-alias && npm run fix-hybrid-lib-cjs",
"clean": "rimraf ./dist",
"clean-cjs": "rimraf ./lib",
"doc": "concurrently -c auto 'npm:doc:*'",
"doc:api": "npx typedoc --tsconfig tsconfig.build.json",
"doc:toc": "npx markdown-toc -i ./README.md",
"docker-build": "docker build -f ./resource/docker/Dockerfile -t bc-msh-test-contractor ./",
"docker-rmi": "docker rmi bc-msh-test-contractor",
"docker-run-package-lock-update": "docker run --rm -v ./:/usr/app/ milosbugarinovic/msh-lib-base:node20.12.2-alpine3.19 npm i --package-lock-only",
"docker-run-sh": "docker run --rm -it bc-msh-test-contractor sh",
"fix-hybrid-lib-cjs": "mkdir -p ./lib && echo '{\"type\": \"commonjs\"}' > ./lib/package.json",
"init": "concurrently -c auto 'npm:init:*'",
"init:git-config": "git config include.path ./.git-config",
"init:husky": "npx husky install",
"lint": "npm run lint-prettier && npm run lint-eslint && npm run lint-json",
"lint-eslint": "eslint ./ --quiet",
"lint-eslint-fix": "npm run lint-eslint -- --fix",
"lint-fix": "npm run lint-prettier-fix && npm run lint-eslint-fix && npm run lint-json-fix",
"lint-json": "npm run lint-json-fix -- -c",
"lint-json-fix": "jsonsort * .*.json '!./dist' '!./lib' '!./test/node_modules' '!./resource' '!**/.env*' '!**/.gitignore' -t",
"lint-prettier": "prettier --check {**/*,*}.{js,jsx,ts,tsx}",
"lint-prettier-fix": "prettier --write {**/*,*}.{js,jsx,ts,tsx}",
"npm-bump-version": "npm --no-git-tag-version version",
"npm-lock-file-generate": "npm i --package-lock-only --prefix ./",
"npm-ncu-check": "npx ncu",
"npm-ncu-update": "npx ncu -u",
"npm-pack": "mkdir -p packages && npm pack --pack-destination=./packages",
"npm-semantic-release": "semantic-release",
"npm-semantic-release-check": "npm run npm-semantic-release -- --dry-run --no-ci",
"test": "concurrently -c auto 'npm:test:*'",
"test-coverage-unit": "npm run test:unit -- --coverage",
"test-coverage-unit-publish": "codecov",
"test:e2e": "cd test && npm run test",
"test:int": "vitest --config=./vitest.config.int.ts",
"test:unit": "vitest --config=./vitest.config.unit.ts",
"tsc": "tsc -p tsconfig.build.json",
"tsc-check": "npm run tsc -- --noEmit",
"tsc-cjs": "npm run babel -- --out-dir ./lib ./src",
"tsc-cleaner": "ts-cleaner --dist ./dist",
"tsc-cleaner-watch": "npm run tsc-cleaner -- --watch",
"tsc-time": "npm run tsc -- --diagnostics",
"tsc-types": "tsc -p tsconfig.build.json --emitDeclarationOnly --outDir ./lib",
"tsc-types-alias": "tsc-alias -p tsconfig.build.json --outDir ./lib --resolve-full-paths",
"tsc-watch": "npm run tsc -- -w --preserveWatchOutput",
"watch": "concurrently -c auto -n build,clean 'npm run tsc-watch' 'npm run tsc-cleaner-watch'"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"lint-staged": {
"**/*.json": [
"npm run lint-json"
],
"**/*.{ts,tsx,js,jsx}": [
"eslint",
"prettier --check"
]
},
"config": {
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
}
},
"dependencies": {
"@beecode/msh-config": "1.1.0",
"@beecode/msh-logger": "1.1.0",
"dotenv": "16.4.5",
"fast-deep-equal": "3.1.3",
"glob": "10.3.12"
},
"devDependencies": {
"@babel/cli": "7.24.5",
"@babel/core": "7.24.5",
"@babel/plugin-proposal-decorators": "7.24.1",
"@babel/plugin-transform-modules-commonjs": "7.24.1",
"@babel/preset-env": "7.24.5",
"@babel/preset-typescript": "7.24.1",
"@commitlint/cli": "19.3.0",
"@commitlint/config-conventional": "19.2.2",
"@commitlint/prompt": "19.3.0",
"@types/deep-equal": "1.0.4",
"@types/glob": "8.1.0",
"@types/node": "20.12.10",
"@vitest/coverage-v8": "1.6.0",
"commitizen": "4.3.0",
"concurrently": "8.2.2",
"husky": "9.0.11",
"json-sort-cli": "4.0.3",
"lint-staged": "15.2.2",
"markdown-toc": "1.2.0",
"prettier": "3.2.5",
"rimraf": "5.0.5",
"source-map-support": "0.5.21",
"ts-cleaner": "1.0.5",
"ts-node": "10.9.2",
"tsc-alias": "1.8.8",
"tsc-watch": "6.2.0",
"typedoc": "0.25.13",
"typedoc-plugin-markdown": "4.0.1",
"typescript": "5.4.5",
"vite-tsconfig-paths": "4.3.2",
"vitest": "1.6.0"
},
"engines": {
"node": ">=20.8.1",
"npm": ">=10.1.0"
}
}