cli-api 0.1.1 → 0.2.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/README.md +22 -25
- package/dist/index.d.mts +394 -0
- package/dist/index.mjs +3 -0
- package/dist/interfaces-COq24bNI.mjs +391 -0
- package/dist/run-C903J5ca.mjs +1137 -0
- package/package.json +37 -37
- package/.hgignore +0 -12
- package/.idea/$CACHE_FILE$ +0 -6
- package/.idea/clap.iml +0 -8
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/deployment.xml +0 -63
- package/.idea/inspectionProfiles/Project_Default.xml +0 -10
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- 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/src/app-help.ts +0 -34
- package/src/commands/command-help.ts +0 -28
- package/src/commands/version.ts +0 -11
- package/src/constants.ts +0 -4
- package/src/index.ts +0 -3
- package/src/interfaces.ts +0 -89
- package/src/options.ts +0 -266
- package/src/print-command-help.ts +0 -78
- package/src/run.ts +0 -45
- package/src/utils.ts +0 -86
- package/tsconfig.json +0 -32
package/package.json
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cli-api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
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/.idea/$CACHE_FILE$
DELETED
package/.idea/clap.iml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="WEB_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$" />
|
|
5
|
-
<orderEntry type="inheritedJdk" />
|
|
6
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
7
|
-
</component>
|
|
8
|
-
</module>
|
package/.idea/deployment.xml
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="PublishConfigData">
|
|
4
|
-
<serverData>
|
|
5
|
-
<paths name="home">
|
|
6
|
-
<serverdata>
|
|
7
|
-
<mappings>
|
|
8
|
-
<mapping local="$PROJECT_DIR$" web="/" />
|
|
9
|
-
</mappings>
|
|
10
|
-
</serverdata>
|
|
11
|
-
</paths>
|
|
12
|
-
<paths name="home-media">
|
|
13
|
-
<serverdata>
|
|
14
|
-
<mappings>
|
|
15
|
-
<mapping local="$PROJECT_DIR$" web="/" />
|
|
16
|
-
</mappings>
|
|
17
|
-
</serverdata>
|
|
18
|
-
</paths>
|
|
19
|
-
<paths name="kymarkbookings.com">
|
|
20
|
-
<serverdata>
|
|
21
|
-
<mappings>
|
|
22
|
-
<mapping local="$PROJECT_DIR$" web="/" />
|
|
23
|
-
</mappings>
|
|
24
|
-
</serverdata>
|
|
25
|
-
</paths>
|
|
26
|
-
<paths name="mpen.ca">
|
|
27
|
-
<serverdata>
|
|
28
|
-
<mappings>
|
|
29
|
-
<mapping local="$PROJECT_DIR$" web="/" />
|
|
30
|
-
</mappings>
|
|
31
|
-
</serverdata>
|
|
32
|
-
</paths>
|
|
33
|
-
<paths name="partybus.net">
|
|
34
|
-
<serverdata>
|
|
35
|
-
<mappings>
|
|
36
|
-
<mapping local="$PROJECT_DIR$" web="/" />
|
|
37
|
-
</mappings>
|
|
38
|
-
</serverdata>
|
|
39
|
-
</paths>
|
|
40
|
-
<paths name="seasonseventgroup FTP">
|
|
41
|
-
<serverdata>
|
|
42
|
-
<mappings>
|
|
43
|
-
<mapping local="$PROJECT_DIR$" web="/" />
|
|
44
|
-
</mappings>
|
|
45
|
-
</serverdata>
|
|
46
|
-
</paths>
|
|
47
|
-
<paths name="seasonseventgroup.com">
|
|
48
|
-
<serverdata>
|
|
49
|
-
<mappings>
|
|
50
|
-
<mapping local="$PROJECT_DIR$" web="/" />
|
|
51
|
-
</mappings>
|
|
52
|
-
</serverdata>
|
|
53
|
-
</paths>
|
|
54
|
-
<paths name="software.limo">
|
|
55
|
-
<serverdata>
|
|
56
|
-
<mappings>
|
|
57
|
-
<mapping local="$PROJECT_DIR$" web="/" />
|
|
58
|
-
</mappings>
|
|
59
|
-
</serverdata>
|
|
60
|
-
</paths>
|
|
61
|
-
</serverData>
|
|
62
|
-
</component>
|
|
63
|
-
</project>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<component name="InspectionProjectProfileManager">
|
|
2
|
-
<profile version="1.0">
|
|
3
|
-
<option name="myName" value="Project Default" />
|
|
4
|
-
<inspection_tool class="SpellCheckingInspection" enabled="false" level="TYPO" enabled_by_default="false">
|
|
5
|
-
<option name="processCode" value="true" />
|
|
6
|
-
<option name="processLiterals" value="true" />
|
|
7
|
-
<option name="processComments" value="true" />
|
|
8
|
-
</inspection_tool>
|
|
9
|
-
</profile>
|
|
10
|
-
</component>
|
package/.idea/misc.xml
DELETED
package/.idea/modules.xml
DELETED
package/.idea/vcs.xml
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
|
-
}
|