@nmakarov/cli-toolkit 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/db.cjs +351 -0
- package/dist/db.cjs.map +1 -0
- package/dist/db.js +314 -0
- package/dist/db.js.map +1 -0
- package/dist/index.cjs +297 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +296 -0
- package/dist/index.js.map +1 -1
- package/package.json +22 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nmakarov/cli-toolkit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "A comprehensive toolkit for building CLI applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -56,6 +56,11 @@
|
|
|
56
56
|
"types": "./dist/filedatabase.d.ts",
|
|
57
57
|
"import": "./dist/filedatabase.js",
|
|
58
58
|
"require": "./dist/filedatabase.cjs"
|
|
59
|
+
},
|
|
60
|
+
"./db": {
|
|
61
|
+
"types": "./dist/db.d.ts",
|
|
62
|
+
"import": "./dist/db.js",
|
|
63
|
+
"require": "./dist/db.cjs"
|
|
59
64
|
}
|
|
60
65
|
},
|
|
61
66
|
"scripts": {
|
|
@@ -65,7 +70,7 @@
|
|
|
65
70
|
"test:watch": "vitest --watch",
|
|
66
71
|
"test:coverage": "vitest --coverage",
|
|
67
72
|
"test:coverage:open": "vitest --coverage && open coverage/index.html",
|
|
68
|
-
"test:ci": "vitest run src/args/tests/args.ci.test.ts src/params/tests/params.ci.test.ts src/errors/tests/errors.ci.test.ts src/screen/tests/screen.ci.test.ts src/logger/tests/logger.ci.test.ts src/filedatabase/tests/filestore.ci.test.ts src/filedatabase/tests/synopsis-functions.ci.test.ts src/http-client/tests/http-client.ci.test.ts src/mock-server/tests/mock-server.ci.test.ts src/utils/tests/format-utils.ci.test.ts src/utils/tests/date-utils.ci.test.ts src/utils/tests/crypto-utils.ci.test.ts src/utils/tests/fs-utils.ci.test.ts --coverage",
|
|
73
|
+
"test:ci": "vitest run src/args/tests/args.ci.test.ts src/params/tests/params.ci.test.ts src/errors/tests/errors.ci.test.ts src/screen/tests/screen.ci.test.ts src/logger/tests/logger.ci.test.ts src/filedatabase/tests/filestore.ci.test.ts src/filedatabase/tests/synopsis-functions.ci.test.ts src/http-client/tests/http-client.ci.test.ts src/mock-server/tests/mock-server.ci.test.ts src/db/tests/db.ci.test.ts src/utils/tests/format-utils.ci.test.ts src/utils/tests/date-utils.ci.test.ts src/utils/tests/crypto-utils.ci.test.ts src/utils/tests/fs-utils.ci.test.ts --coverage",
|
|
69
74
|
"test:args": "vitest run src/args/tests",
|
|
70
75
|
"test:args:ci": "vitest run src/args/tests/args.ci.test.ts --coverage",
|
|
71
76
|
"test:params": "vitest run src/params/tests",
|
|
@@ -86,6 +91,8 @@
|
|
|
86
91
|
"test:mock-server": "vitest run src/mock-server/tests",
|
|
87
92
|
"test:mock-server:ci": "vitest run src/mock-server/tests/mock-server.ci.test.ts --coverage",
|
|
88
93
|
"test:mock-server:coverage": "vitest run src/mock-server/tests --coverage",
|
|
94
|
+
"test:db": "vitest run src/db/tests",
|
|
95
|
+
"test:db:ci": "vitest run src/db/tests/db.ci.test.ts --coverage",
|
|
89
96
|
"test:utils": "vitest run src/utils/tests",
|
|
90
97
|
"test:utils:ci": "vitest run src/utils/tests/*.ci.test.ts --coverage",
|
|
91
98
|
"lint": "eslint src/",
|
|
@@ -145,13 +152,25 @@
|
|
|
145
152
|
"dotenv": "^17.2.3",
|
|
146
153
|
"express": "^4.18.0",
|
|
147
154
|
"joi": "^18.0.1",
|
|
148
|
-
"
|
|
155
|
+
"knex": "^3.1.0",
|
|
156
|
+
"morgan": "^1.10.0",
|
|
157
|
+
"mysql": "^2.18.1"
|
|
149
158
|
},
|
|
150
159
|
"engines": {
|
|
151
160
|
"node": ">=20.0.0"
|
|
152
161
|
},
|
|
153
162
|
"peerDependencies": {
|
|
154
163
|
"ink": "^4.0.0",
|
|
164
|
+
"mysql2": "^3.0.0",
|
|
165
|
+
"pg": "^8.16.3",
|
|
155
166
|
"react": "^18.0.0"
|
|
167
|
+
},
|
|
168
|
+
"peerDependenciesMeta": {
|
|
169
|
+
"pg": {
|
|
170
|
+
"optional": true
|
|
171
|
+
},
|
|
172
|
+
"mysql2": {
|
|
173
|
+
"optional": true
|
|
174
|
+
}
|
|
156
175
|
}
|
|
157
176
|
}
|