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/package.json CHANGED
@@ -1,54 +1,54 @@
1
1
  {
2
2
  "name": "cli-api",
3
- "version": "0.1.2",
3
+ "version": "0.2.1",
4
4
  "license": "UNLICENSED",
5
5
  "private": false,
6
- "main": "dist/cjs/index.js",
7
- "module": "dist/es/index.mjs",
8
- "types": "dist/types/index.d.ts",
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
- "@babel/cli": "^7.7",
11
- "@babel/core": "^7.7",
12
- "@babel/node": "^7.7",
13
- "@babel/preset-env": "^7.7",
14
- "@babel/preset-typescript": "^7.7",
15
- "@rollup/plugin-babel": "^5.3.0",
16
- "@rollup/plugin-json": "^4.0.3",
17
- "@rollup/plugin-node-resolve": "^8.0.0",
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.4",
32
- "chalk": "^4.0.0",
33
- "js-yaml": "^3.14.0",
34
- "mysql3": "^0.4.13",
35
- "ora": "^4.0.4",
36
- "string-width": "^4.2.0"
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
- "node": ">=10"
37
+ "bun": ">=1.2"
40
38
  },
41
39
  "scripts": {
42
- "preinstall": "npx only-allow pnpm",
43
- "tsdecls": "tsc --emitDeclarationOnly",
44
- "lint": "tsc --noEmit",
45
- "clean": "rm -rf dist yarn-error.log",
46
- "build": "cross-env BABEL_ENV=production rollup -c",
47
- "dev": "cross-env BABEL_ENV=development rollup -cw",
48
- "prod": "npm-run-all clean --parallel tsdecls build"
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
@@ -1,12 +0,0 @@
1
- syntax: regexp
2
-
3
- ^node_modules/
4
- ^\.idea/
5
- ^dist/
6
- \.log$
7
- ~$
8
- (?<![^/])Thumbs\.db$
9
- (?<![^/])\.gitattributes$
10
- (?<![^/])\.gitignore$
11
- (?<![^/])\.env$
12
- (?<![^/])\.(?![^/]+(ignore|rc)$) # all dotfiles except *ignore and *rc files
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
- }