cli-api 0.1.2 → 0.2.1
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/README.md +25 -25
- package/dist/index.d.mts +439 -0
- package/dist/index.mjs +3 -0
- package/dist/interfaces-CfKTHP7y.mjs +510 -0
- package/dist/run-DEkBUX4b.mjs +1374 -0
- package/package.json +37 -37
- package/.hgignore +0 -12
- package/Makefile +0 -14
- package/babel.config.json +0 -33
- package/dist/cjs/index.js +0 -588
- package/dist/cjs/index.js.map +0 -1
- package/dist/es/index.mjs +0 -578
- package/dist/es/index.mjs.map +0 -1
- package/dist/types/app-help.d.ts +0 -3
- package/dist/types/commands/command-help.d.ts +0 -2
- package/dist/types/commands/version.d.ts +0 -2
- package/dist/types/constants.d.ts +0 -4
- package/dist/types/index.d.ts +0 -3
- package/dist/types/interfaces.d.ts +0 -79
- package/dist/types/options.d.ts +0 -7
- package/dist/types/print-command-help.d.ts +0 -2
- package/dist/types/run.d.ts +0 -2
- package/dist/types/utils.d.ts +0 -17
- package/rollup.config.js +0 -44
- package/tsconfig.json +0 -32
package/package.json
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cli-api",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"private": false,
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
6
|
+
"type": "module",
|
|
7
|
+
"types": "./dist/index.d.mts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"README.md"
|
|
11
|
+
],
|
|
12
|
+
"exports": {
|
|
13
|
+
".": "./dist/index.mjs",
|
|
14
|
+
"./package.json": "./package.json"
|
|
15
|
+
},
|
|
9
16
|
"devDependencies": {
|
|
10
|
-
"@
|
|
11
|
-
"@
|
|
12
|
-
"@
|
|
13
|
-
"@
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"@types/node": "^12",
|
|
19
|
-
"builtin-modules": "^3.1.0",
|
|
20
|
-
"cross-env": "^7.0.2",
|
|
21
|
-
"dotenv": "^8.2.0",
|
|
22
|
-
"npm-run-all": "^4.1.5",
|
|
23
|
-
"rollup": "^2.12.0",
|
|
24
|
-
"rollup-plugin-node-externals": "^2.2.0",
|
|
25
|
-
"source-map-support": "^0.5.19",
|
|
26
|
-
"ts-json-schema-generator": "^0.68.1",
|
|
27
|
-
"typescript": "^3.7",
|
|
17
|
+
"@types/bun": "^1.3.11",
|
|
18
|
+
"@types/eslint": "^8.56.12",
|
|
19
|
+
"@types/node": "^12.20.55",
|
|
20
|
+
"@typescript-eslint/eslint-plugin": "^8.57.0",
|
|
21
|
+
"eslint": "^8.57.1",
|
|
22
|
+
"eslint-plugin-unused-imports": "^4.4.1",
|
|
23
|
+
"tsdown": "^0.16.8",
|
|
24
|
+
"typescript": "^5.9.3",
|
|
28
25
|
"typescript-json-schema": "^0.42.0"
|
|
29
26
|
},
|
|
30
27
|
"dependencies": {
|
|
31
|
-
"@types/js-yaml": "^3.12.
|
|
32
|
-
"chalk": "^
|
|
33
|
-
"js-yaml": "^3.14.
|
|
34
|
-
"mysql3": "^0.4.
|
|
35
|
-
"ora": "^4.
|
|
36
|
-
"string-width": "^
|
|
28
|
+
"@types/js-yaml": "^3.12.10",
|
|
29
|
+
"chalk": "^5.6.2",
|
|
30
|
+
"js-yaml": "^3.14.2",
|
|
31
|
+
"mysql3": "^0.4.16",
|
|
32
|
+
"ora": "^4.1.1",
|
|
33
|
+
"string-width": "^8.2.0",
|
|
34
|
+
"tslib": "^2.8.1"
|
|
37
35
|
},
|
|
38
36
|
"engines": {
|
|
39
|
-
"
|
|
37
|
+
"bun": ">=1.2"
|
|
40
38
|
},
|
|
41
39
|
"scripts": {
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
40
|
+
"build": "bun run --bun tsdown",
|
|
41
|
+
"dev": "tsdown --watch",
|
|
42
|
+
"test:tsc": "tsc --noEmit && echo \"tsc: no errors\"",
|
|
43
|
+
"test:bun": "bun test",
|
|
44
|
+
"test": "bun run --parallel 'test:*'",
|
|
45
|
+
"lint": "bun run --bun eslint --fix --",
|
|
46
|
+
"prepublishOnly": "bun run --parallel build test"
|
|
49
47
|
},
|
|
50
48
|
"repository": {
|
|
51
49
|
"type": "git",
|
|
52
50
|
"url": "https://github.com/mnpenner/node-cli-api.git"
|
|
53
|
-
}
|
|
51
|
+
},
|
|
52
|
+
"main": "./dist/index.mjs",
|
|
53
|
+
"module": "./dist/index.mjs"
|
|
54
54
|
}
|
package/.hgignore
DELETED
package/Makefile
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
MAKEFLAGS += --no-builtin-rules
|
|
2
|
-
.SUFFIXES:
|
|
3
|
-
|
|
4
|
-
build: node_modules/.yarn-integrity
|
|
5
|
-
@yarn tsdecls
|
|
6
|
-
@yarn build
|
|
7
|
-
|
|
8
|
-
node_modules/.yarn-integrity: yarn.lock
|
|
9
|
-
@yarn install --frozen-lockfile --production=false --check-files
|
|
10
|
-
@touch -mr $@ $<
|
|
11
|
-
|
|
12
|
-
yarn.lock: package.json
|
|
13
|
-
@yarn check --integrity
|
|
14
|
-
@touch -mr $@ $<
|
package/babel.config.json
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"presets": [
|
|
3
|
-
"@babel/preset-typescript"
|
|
4
|
-
],
|
|
5
|
-
"env": {
|
|
6
|
-
"development": {
|
|
7
|
-
"presets": [
|
|
8
|
-
[
|
|
9
|
-
"@babel/preset-env",
|
|
10
|
-
{
|
|
11
|
-
"targets": {
|
|
12
|
-
"node": "current"
|
|
13
|
-
},
|
|
14
|
-
"loose": true
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
]
|
|
18
|
-
},
|
|
19
|
-
"production": {
|
|
20
|
-
"presets": [
|
|
21
|
-
[
|
|
22
|
-
"@babel/preset-env",
|
|
23
|
-
{
|
|
24
|
-
"targets": {
|
|
25
|
-
"node": "10"
|
|
26
|
-
},
|
|
27
|
-
"loose": true
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
]
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|